@event-chat/antd-item 0.3.0 → 0.3.1
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/FormEvent.d.ts +3 -3
- package/dist/FormEvent.d.ts.map +1 -1
- package/dist/FormInput.d.ts +4 -4
- package/dist/FormInput.d.ts.map +1 -1
- package/dist/FormItem.d.ts +3 -3
- package/dist/FormItem.d.ts.map +1 -1
- package/dist/FormList.d.ts +2 -2
- package/dist/FormList.d.ts.map +1 -1
- package/dist/utils.d.ts +11 -10
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +4 -1
- package/package.json +1 -1
package/dist/FormEvent.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FormProps as FormRawProps } from 'antd';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
import { FormEventInstance } from './utils';
|
|
4
|
-
declare const FormEvent: <
|
|
4
|
+
declare const FormEvent: <Name extends string, Group extends string | undefined = undefined, ValuesType = unknown>({ children, form, group, name, ...props }: PropsWithChildren<FormProps<Name, Group, ValuesType>>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default FormEvent;
|
|
6
|
-
interface FormProps<
|
|
7
|
-
form?: FormEventInstance<Name, Group>;
|
|
6
|
+
interface FormProps<Name extends string = string, Group extends string | undefined = undefined, ValuesType = unknown> extends Omit<FormRawProps<ValuesType>, 'form'> {
|
|
7
|
+
form?: FormEventInstance<Name, Group, ValuesType>;
|
|
8
8
|
group?: Group;
|
|
9
9
|
name?: Name;
|
|
10
10
|
}
|
package/dist/FormEvent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormEvent.d.ts","sourceRoot":"","sources":["../src/FormEvent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAM,iBAAiB,EAAiB,MAAM,OAAO,CAAC;AAC7D,OAAO,EAGL,iBAAiB,EAIlB,MAAM,SAAS,CAAC;AAmCjB,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"FormEvent.d.ts","sourceRoot":"","sources":["../src/FormEvent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAM,iBAAiB,EAAiB,MAAM,OAAO,CAAC;AAC7D,OAAO,EAGL,iBAAiB,EAIlB,MAAM,SAAS,CAAC;AAmCjB,QAAA,MAAM,SAAS,GACb,IAAI,SAAS,MAAM,EACnB,KAAK,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,EAC5C,UAAU,GAAG,OAAO,EACpB,2CAMC,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,4CAwBvD,CAAC;AAEF,eAAe,SAAS,CAAC;AAGzB,UAAU,SAAS,CACjB,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,KAAK,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,EAC5C,UAAU,GAAG,OAAO,CACpB,SAAQ,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC9C,IAAI,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;IAClD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
|
package/dist/FormInput.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { EventChatOptions, NamepathType, useEventChat } from '@event-chat/core';
|
|
2
2
|
import { ForwardedRef } from 'react';
|
|
3
3
|
import { ZodType } from 'zod';
|
|
4
|
-
declare const InputInner: <Name extends NamepathType, Schema extends ZodType | undefined = undefined
|
|
5
|
-
declare const FormInput: (<Name extends NamepathType, Schema extends ZodType | undefined = undefined
|
|
4
|
+
declare const InputInner: <Name extends NamepathType, Schema extends ZodType | undefined = undefined>({ name, callback, onChange, ...props }: FormInputProps<Name, Schema>, ref?: ForwardedRef<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const FormInput: (<Name extends NamepathType, Schema extends ZodType | undefined = undefined>(props: FormInputProps<Name, Schema> & {
|
|
6
6
|
ref?: ForwardedRef<HTMLInputElement>;
|
|
7
7
|
}) => ReturnType<typeof InputInner>) & {
|
|
8
8
|
displayName?: string;
|
|
9
9
|
};
|
|
10
10
|
export default FormInput;
|
|
11
|
-
export interface FormInputProps<Name extends NamepathType, Schema extends ZodType | undefined = undefined
|
|
11
|
+
export interface FormInputProps<Name extends NamepathType, Schema extends ZodType | undefined = undefined> extends Omit<EventChatOptions<NamepathType, Schema, string, string, undefined>, 'group'> {
|
|
12
12
|
name?: Name;
|
|
13
|
-
onChange?: (value: Parameters<NonNullable<EventChatOptions<NamepathType, Schema, string,
|
|
13
|
+
onChange?: (value: Parameters<NonNullable<EventChatOptions<NamepathType, Schema, string, string, undefined>['callback']>>[0]['detail'], options: ReturnType<typeof useEventChat>) => void;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=FormInput.d.ts.map
|
package/dist/FormInput.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../src/FormInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAe,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAO9B,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../src/FormInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAe,YAAY,EAAE,MAAM,kBAAkB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@@ -4,10 +4,10 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
import { ZodType } from 'zod';
|
|
5
5
|
import { FormInputProps } from './FormInput';
|
|
6
6
|
import { FormEventInstance } from './utils';
|
|
7
|
-
declare const FormItem: <Name extends NamepathType, Schema extends ZodType | undefined = undefined,
|
|
7
|
+
declare const FormItem: <Name extends NamepathType, Schema extends ZodType | undefined = undefined, ValueType = unknown>({ async, children, initialValue, name, rules, schema, type, callback, debug, onChange, transform, ...props }: FormItemProps<Name, Schema, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default FormItem;
|
|
9
|
-
interface FormItemProps<Name extends NamepathType, Schema extends ZodType | undefined = undefined,
|
|
10
|
-
children?: ReactNode | ((form: FormEventInstance<Name, string | undefined>) => ReactNode);
|
|
9
|
+
interface FormItemProps<Name extends NamepathType, Schema extends ZodType | undefined = undefined, ValueType = unknown> extends Omit<FormItemRawProps, 'children' | 'initialValue' | 'name'>, FormInputProps<Name, Schema> {
|
|
10
|
+
children?: ReactNode | ((form: FormEventInstance<Name, string | undefined, ValueType>) => ReactNode);
|
|
11
11
|
initialValue?: unknown;
|
|
12
12
|
transform?: (value: unknown) => unknown;
|
|
13
13
|
}
|
package/dist/FormItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormItem.d.ts","sourceRoot":"","sources":["../src/FormItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAA+B,MAAM,SAAS,CAAC;AAEzE,QAAA,MAAM,QAAQ,GACZ,I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import { Form as FormRaw } from 'antd';
|
|
|
3
3
|
import { ComponentProps } from 'react';
|
|
4
4
|
import { ZodType } from 'zod';
|
|
5
5
|
import { FormInputProps } from './FormInput';
|
|
6
|
-
declare const FormList: <Name extends NamepathType, Schema extends ZodType | undefined = undefined
|
|
6
|
+
declare const FormList: <Name extends NamepathType, Schema extends ZodType | undefined = undefined>({ async, initialValue, name, rules, schema, type, callback, children, debug, onChange, ...props }: FormListProps<Name, Schema>) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
export default FormList;
|
|
8
|
-
interface FormListProps<Name extends NamepathType, Schema extends ZodType | undefined = undefined
|
|
8
|
+
interface FormListProps<Name extends NamepathType, Schema extends ZodType | undefined = undefined> extends Omit<ComponentProps<typeof FormRaw.List>, 'name'>, Omit<FormInputProps<Name, Schema>, 'name'> {
|
|
9
9
|
name: Name;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=FormList.d.ts.map
|
package/dist/FormList.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormList.d.ts","sourceRoot":"","sources":["../src/FormList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,cAAc,EAAwC,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAcxD,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"FormList.d.ts","sourceRoot":"","sources":["../src/FormList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,cAAc,EAAwC,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAcxD,QAAA,MAAM,QAAQ,GAAI,IAAI,SAAS,YAAY,EAAE,MAAM,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,mGAY1F,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,mDA0C7B,CAAC;AAEF,eAAe,QAAQ,CAAC;AAIxB,UAAU,aAAa,CAAC,IAAI,SAAS,YAAY,EAAE,MAAM,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,CAC/F,SACE,IAAI,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,EACjD,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAC5C,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const AntdCom: {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const FormEventContext: import("react").Context<FormEventContextInstance>;
|
|
8
8
|
export declare const getStringValue: <T extends NamepathType | undefined>(values: T[]) => T | undefined;
|
|
9
|
-
export declare const useForm: <Name extends string, Group extends string | undefined = undefined>(options?: FormOptions<Name, Group>, formInit?: FormEventInstance<Name, Group>) => readonly [import("antd").FormInstance<
|
|
9
|
+
export declare const useForm: <Name extends string, Group extends string | undefined = undefined, ValueType = unknown>(options?: FormOptions<Name, Group>, formInit?: FormEventInstance<Name, Group, ValueType>) => readonly [import("antd").FormInstance<ValueType> & {
|
|
10
10
|
group: Group | undefined;
|
|
11
11
|
name: string;
|
|
12
12
|
emit: <Detail, CustomName extends NamepathType>(detail: Omit<EventDetailType<Detail, CustomName>, "group" | "id" | "origin" | "time" | "type">) => void;
|
|
@@ -18,7 +18,7 @@ export declare const useFormInstance: <ValueType>() => Omit<import("antd").FormI
|
|
|
18
18
|
name: NamepathType | undefined;
|
|
19
19
|
emit: (<Detail, CustomName extends NamepathType>(record: Omit<EventDetailType<Detail, CustomName>, "group" | "id" | "origin" | "time" | "type">) => void) | undefined;
|
|
20
20
|
};
|
|
21
|
-
export declare const useFormCom: () => FormBaseInstance
|
|
21
|
+
export declare const useFormCom: <ValueType = unknown>() => FormBaseInstance<ValueType>;
|
|
22
22
|
export declare const useFormEvent: () => FormEventContextInstance;
|
|
23
23
|
export interface FormEventContextInstance {
|
|
24
24
|
group?: string;
|
|
@@ -26,22 +26,23 @@ export interface FormEventContextInstance {
|
|
|
26
26
|
parent?: NamepathType;
|
|
27
27
|
emit?: <Detail, CustomName extends NamepathType>(record: Omit<EventDetailType<Detail, CustomName>, 'group' | 'id' | 'origin' | 'time' | 'type'>) => void;
|
|
28
28
|
}
|
|
29
|
-
export interface FormEventInstance<Name extends NamepathType, Group extends string | undefined = undefined> extends FormInsType
|
|
29
|
+
export interface FormEventInstance<Name extends NamepathType, Group extends string | undefined = undefined, ValueType = unknown> extends FormInsType<ValueType>, FormOptions<Name, Group> {
|
|
30
30
|
emit?: <Detail, CustomName extends NamepathType>(record: Omit<EventDetailType<Detail, CustomName>, 'group' | 'id' | 'origin' | 'time' | 'type'>) => void;
|
|
31
31
|
}
|
|
32
|
-
type
|
|
33
|
-
group?: Group;
|
|
34
|
-
name?: Name;
|
|
35
|
-
};
|
|
36
|
-
export interface FormBaseInstance extends FC<Pick<ComponentProps<typeof Form>, 'children' | 'form' | 'name'>> {
|
|
32
|
+
export type FormBaseInstance<ValueType = unknown> = FormType<ValueType> & {
|
|
37
33
|
Item: FC<Pick<FormItemProps, 'hidden' | 'initialValue' | 'name' | 'rules'> & {
|
|
38
|
-
children?: ReactNode | ((form: FormInsType) => ReactNode);
|
|
34
|
+
children?: ReactNode | ((form: FormInsType<ValueType>) => ReactNode);
|
|
39
35
|
}>;
|
|
40
36
|
List: FC<Pick<ComponentProps<typeof Form.List>, 'children' | 'initialValue' | 'name' | 'rules'>>;
|
|
41
37
|
useFormInstance: <Value>() => FormInsType<Value>;
|
|
42
|
-
}
|
|
38
|
+
};
|
|
43
39
|
export type FormInsType<ValueType = unknown> = Omit<NonNullable<ComponentProps<typeof Form<ValueType>>['form']>, 'focusField'> & {
|
|
44
40
|
focusField?: NonNullable<ComponentProps<typeof Form>['form']>['focusField'];
|
|
45
41
|
};
|
|
42
|
+
type FormOptions<Name extends NamepathType, Group extends string | undefined = undefined> = {
|
|
43
|
+
group?: Group;
|
|
44
|
+
name?: Name;
|
|
45
|
+
};
|
|
46
|
+
type FormType<ValueType = unknown> = (props: Pick<ComponentProps<typeof Form<ValueType>>, 'children' | 'form' | 'name'> & React.RefAttributes<FormInsType<ValueType>>) => React.ReactElement;
|
|
46
47
|
export {};
|
|
47
48
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAA6B,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAC;AAG1F,eAAO,MAAM,OAAO,EAAE;IACpB,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACpB,CAAC;AAEP,eAAO,MAAM,gBAAgB,mDAA8C,CAAC;AAC5E,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,YAAY,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,kBACU,CAAC;AAEzF,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAA6B,MAAM,kBAAkB,CAAC;AAC5F,OAA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,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAC3D,YAAY,CACb,GAAG;IACF,UAAU,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;CAC7E,CAAC;AAEF,KAAK,WAAW,CAAC,IAAI,SAAS,YAAY,EAAE,KAAK,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,IAAI;IAC1F,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,KAAK,QAAQ,CAAC,SAAS,GAAG,OAAO,IAAI,CACnC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC,GAC/E,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,KAC1C,KAAK,CAAC,YAAY,CAAC"}
|
package/dist/utils.js
CHANGED
|
@@ -64,7 +64,10 @@ const useFormInstance = ()=>{
|
|
|
64
64
|
emit
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
const useFormCom = ()=>
|
|
67
|
+
const useFormCom = ()=>{
|
|
68
|
+
const CustomForm = AntdCom.form;
|
|
69
|
+
return CustomForm ?? Form;
|
|
70
|
+
};
|
|
68
71
|
const useFormEvent = ()=>{
|
|
69
72
|
const record = useContext(FormEventContext);
|
|
70
73
|
return record;
|