@vunk/form 0.0.1-alpha.14 → 0.0.1-alpha.17
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/components/checkbox/index.d.ts +4 -0
- package/components/checkbox/index.js +107 -0
- package/components/checkbox/src/ctx.d.ts +95 -0
- package/components/checkbox/src/ctx.js +35 -0
- package/components/checkbox/src/index.vue.d.ts +241 -0
- package/components/checkbox/src/types.d.ts +1 -0
- package/components/checkbox/src/types.js +1 -0
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/index.js +72 -0
- package/components/color-picker/src/ctx.d.ts +66 -0
- package/components/color-picker/src/ctx.js +23 -0
- package/components/color-picker/src/index.vue.d.ts +176 -0
- package/components/color-picker/src/types.d.ts +1 -0
- package/components/color-picker/src/types.js +1 -0
- package/components/date-picker/src/ctx.d.ts +1 -1
- package/components/date-picker/src/index.vue.d.ts +17 -17
- package/components/form/src/ctx.d.ts +12 -12
- package/components/form/src/index.vue.d.ts +36 -36
- package/components/form-item-renderer/src/index.vue.d.ts +1 -1
- package/components/form-item-renderer-template-default/index.js +66 -2
- package/components/input/src/ctx.d.ts +3 -3
- package/components/input/src/index.vue.d.ts +24 -24
- package/components/input-number/src/index.vue.d.ts +17 -17
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.js +107 -0
- package/components/radio/src/ctx.d.ts +66 -0
- package/components/radio/src/ctx.js +35 -0
- package/components/radio/src/index.vue.d.ts +179 -0
- package/components/radio/src/types.d.ts +1 -0
- package/components/radio/src/types.js +1 -0
- package/components/select/src/index.vue.d.ts +28 -28
- package/components/switch/src/index.vue.d.ts +7 -7
- package/components/upload/index.css +10 -0
- package/components/upload/index.d.ts +4 -0
- package/components/upload/index.js +473 -0
- package/components/upload/src/ctx.d.ts +160 -0
- package/components/upload/src/ctx.js +38 -0
- package/components/upload/src/file.vue.d.ts +96 -0
- package/components/upload/src/index.vue.d.ts +401 -0
- package/components/upload/src/types.d.ts +1 -0
- package/components/upload/src/types.js +1 -0
- package/index.css +11 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +28 -11
- package/shared/element-plus/index.js +47 -2
- package/shared/element-plus/instances.d.ts +30 -0
- package/shared/types/form/checkbox.d.ts +13 -0
- package/shared/types/form/index.d.ts +2 -0
- package/shared/types/form/index.js +1 -0
- package/shared/types/form/radio.d.ts +8 -0
- package/shared/types/renderer-source/checkbox.d.ts +7 -0
- package/shared/types/renderer-source/color-picker.d.ts +7 -0
- package/shared/types/renderer-source/index.d.ts +9 -1
- package/shared/types/renderer-source/radio.d.ts +7 -0
- package/shared/types/renderer-source/upload.d.ts +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const createInputBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"
|
|
2
|
-
export declare const createInputOnEmits: <T2 extends AnyFunc, EX extends ("
|
|
1
|
+
export declare const createInputBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2>]: T2[k]; }[P]; }>;
|
|
2
|
+
export declare const createInputOnEmits: <T2 extends AnyFunc, EX extends ("input" | "blur" | "change" | "compositionend" | "compositionstart" | "compositionupdate" | "focus" | "keydown" | "mouseenter" | "mouseleave" | "clear" | "update:modelValue")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"input", KE> | Exclude<"blur", KE> | Exclude<"change", KE> | Exclude<"compositionend", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"focus", KE> | Exclude<"keydown", KE> | Exclude<"mouseenter", KE> | Exclude<"mouseleave", KE> | Exclude<"clear", KE> | Exclude<"update:modelValue", KE> : "input" | "blur" | "change" | "compositionend" | "compositionstart" | "compositionupdate" | "focus" | "keydown" | "mouseenter" | "mouseleave" | "clear" | "update:modelValue"]: {
|
|
3
3
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
4
4
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
5
5
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -13,19 +13,19 @@ export declare const createInputOnEmits: <T2 extends AnyFunc, EX extends ("updat
|
|
|
13
13
|
compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
14
14
|
compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
15
15
|
}[P]; };
|
|
16
|
-
export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"
|
|
16
|
+
export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"inline", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"labelSuffix", keyof T2>, KE> | Exclude<Extract<"statusIcon", keyof T2>, KE> | Exclude<Extract<"validateOnRuleChange", keyof T2>, KE> | Exclude<Extract<"hideRequiredAsterisk", keyof T2>, KE> | Exclude<Extract<"scrollToError", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"inline", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"inline", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: T2[k]; }[P]; }>;
|
|
17
17
|
export declare const createFormOnEmits: <T2 extends AnyFunc, EX extends "validate"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> : "validate"]: {
|
|
18
18
|
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
19
19
|
}[P]; };
|
|
20
20
|
export declare const createFormItemBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2>]: T2[k]; }[P]; }>;
|
|
21
|
-
export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"
|
|
22
|
-
export declare const createSwitchOnEmits: <T2 extends AnyFunc, EX extends ("
|
|
21
|
+
export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"borderColor", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"value", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inlinePrompt", keyof T2>, KE> | Exclude<Extract<"activeIcon", keyof T2>, KE> | Exclude<Extract<"inactiveIcon", keyof T2>, KE> | Exclude<Extract<"activeText", keyof T2>, KE> | Exclude<Extract<"inactiveText", keyof T2>, KE> | Exclude<Extract<"activeColor", keyof T2>, KE> | Exclude<Extract<"inactiveColor", keyof T2>, KE> | Exclude<Extract<"activeValue", keyof T2>, KE> | Exclude<Extract<"inactiveValue", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"beforeChange", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"loading", keyof T2> | Extract<"beforeChange", keyof T2>]: T2[k]; }[P]; }>;
|
|
22
|
+
export declare const createSwitchOnEmits: <T2 extends AnyFunc, EX extends ("input" | "change" | "update:modelValue")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"input", KE> | Exclude<"change", KE> | Exclude<"update:modelValue", KE> : "input" | "change" | "update:modelValue"]: {
|
|
23
23
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
24
24
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
25
25
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
26
26
|
}[P]; };
|
|
27
|
-
export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"
|
|
28
|
-
export declare const createSelectOnEmits: <T2 extends AnyFunc, EX extends ("
|
|
27
|
+
export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"automaticDropdown", keyof T2>, KE> | Exclude<Extract<"effect", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"allowCreate", keyof T2>, KE> | Exclude<Extract<"remote", keyof T2>, KE> | Exclude<Extract<"loadingText", keyof T2>, KE> | Exclude<Extract<"noMatchText", keyof T2>, KE> | Exclude<Extract<"noDataText", keyof T2>, KE> | Exclude<Extract<"remoteMethod", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"multipleLimit", keyof T2>, KE> | Exclude<Extract<"defaultFirstOption", keyof T2>, KE> | Exclude<Extract<"reserveKeyword", keyof T2>, KE> | Exclude<Extract<"valueKey", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"persistent", keyof T2>, KE> | Exclude<Extract<"fitInputWidth", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>]: T2[k]; }[P]; }>;
|
|
28
|
+
export declare const createSelectOnEmits: <T2 extends AnyFunc, EX extends ("blur" | "change" | "focus" | "clear" | "update:modelValue" | "visible-change" | "remove-tag")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"blur", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"clear", KE> | Exclude<"update:modelValue", KE> | Exclude<"visible-change", KE> | Exclude<"remove-tag", KE> : "blur" | "change" | "focus" | "clear" | "update:modelValue" | "visible-change" | "remove-tag"]: {
|
|
29
29
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
30
30
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
31
31
|
'remove-tag': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -34,8 +34,8 @@ export declare const createSelectOnEmits: <T2 extends AnyFunc, EX extends ("upda
|
|
|
34
34
|
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
35
35
|
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
36
36
|
}[P]; };
|
|
37
|
-
export declare const createDatePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"
|
|
38
|
-
export declare const createDatePickerOnEmits: <T2 extends AnyFunc, EX extends ("
|
|
37
|
+
export declare const createDatePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"editable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"disabledDate", keyof T2>, KE> | Exclude<Extract<"cellClassName", keyof T2>, KE> | Exclude<Extract<"shortcuts", keyof T2>, KE> | Exclude<Extract<"arrowControl", keyof T2>, KE> | Exclude<Extract<"unlinkPanels", keyof T2>, KE> | Exclude<Extract<"disabledHours", keyof T2>, KE> | Exclude<Extract<"disabledMinutes", keyof T2>, KE> | Exclude<Extract<"disabledSeconds", keyof T2>, KE> | Exclude<Extract<"format", keyof T2>, KE> | Exclude<Extract<"valueFormat", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"editable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"rangeSeparator", keyof T2>, KE> | Exclude<Extract<"startPlaceholder", keyof T2>, KE> | Exclude<Extract<"endPlaceholder", keyof T2>, KE> | Exclude<Extract<"defaultValue", keyof T2>, KE> | Exclude<Extract<"defaultTime", keyof T2>, KE> | Exclude<Extract<"isRange", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"editable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"editable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>]: T2[k]; }[P]; }>;
|
|
38
|
+
export declare const createDatePickerOnEmits: <T2 extends AnyFunc, EX extends ("blur" | "change" | "focus" | "keydown" | "update:modelValue" | "calendar-change" | "panel-change" | "visible-change")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"blur", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"keydown", KE> | Exclude<"update:modelValue", KE> | Exclude<"calendar-change", KE> | Exclude<"panel-change", KE> | Exclude<"visible-change", KE> : "blur" | "change" | "focus" | "keydown" | "update:modelValue" | "calendar-change" | "panel-change" | "visible-change"]: {
|
|
39
39
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
40
40
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
41
41
|
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -45,11 +45,28 @@ export declare const createDatePickerOnEmits: <T2 extends AnyFunc, EX extends ("
|
|
|
45
45
|
'visible-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
46
46
|
keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
47
47
|
}[P]; };
|
|
48
|
-
export declare const createInputNumberBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"
|
|
49
|
-
export declare const createInputNumberOnEmits: <T2 extends AnyFunc, EX extends ("
|
|
48
|
+
export declare const createInputNumberBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"controls", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"controls", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"step", keyof T2>, KE> | Exclude<Extract<"stepStrictly", keyof T2>, KE> | Exclude<Extract<"controlsPosition", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"precision", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"controls", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"controls", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2>]: T2[k]; }[P]; }>;
|
|
49
|
+
export declare const createInputNumberOnEmits: <T2 extends AnyFunc, EX extends ("input" | "blur" | "change" | "focus" | "update:modelValue")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"input", KE> | Exclude<"blur", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"update:modelValue", KE> : "input" | "blur" | "change" | "focus" | "update:modelValue"]: {
|
|
50
50
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
51
51
|
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
52
52
|
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
53
53
|
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
54
54
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
55
55
|
}[P]; };
|
|
56
|
+
export declare const createRadioGroupBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"textColor", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"fill", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"textColor", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"textColor", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"textColor", keyof T2>]: T2[k]; }[P]; }>;
|
|
57
|
+
export declare const createRadioGroupOnEmits: <T2 extends AnyFunc, EX extends ("change" | "update:modelValue")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"change", KE> | Exclude<"update:modelValue", KE> : "change" | "update:modelValue"]: {
|
|
58
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
59
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
60
|
+
}[P]; };
|
|
61
|
+
export declare const createCheckboxGroupBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"textColor", keyof T2> | Extract<"tag", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"fill", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"textColor", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"textColor", keyof T2> | Extract<"tag", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"fill", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"textColor", keyof T2> | Extract<"tag", keyof T2>]: T2[k]; }[P]; }>;
|
|
62
|
+
export declare const createCheckboxGroupOnEmits: <T2 extends AnyFunc, EX extends ("change" | "update:modelValue")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"change", KE> | Exclude<"update:modelValue", KE> : "change" | "update:modelValue"]: {
|
|
63
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
64
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
65
|
+
}[P]; };
|
|
66
|
+
export declare const createUploadBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"data", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"data", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"data", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2>]: T2[k]; }[P]; }>;
|
|
67
|
+
export declare const createColorPickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"showAlpha", keyof T2> | Extract<"colorFormat", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"predefine", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"showAlpha", keyof T2>, KE> | Exclude<Extract<"colorFormat", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"predefine", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"showAlpha", keyof T2> | Extract<"colorFormat", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"predefine", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"showAlpha", keyof T2> | Extract<"colorFormat", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"predefine", keyof T2>]: T2[k]; }[P]; }>;
|
|
68
|
+
export declare const createColorPickerOnEmits: <T2 extends AnyFunc, EX extends ("change" | "update:modelValue" | "active-change")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"change", KE> | Exclude<"update:modelValue", KE> | Exclude<"active-change", KE> : "change" | "update:modelValue" | "active-change"]: {
|
|
69
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
70
|
+
'active-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
71
|
+
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
72
|
+
}[P]; };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits } from 'element-plus';
|
|
1
|
+
import { componentSizes, useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits, radioGroupProps, radioGroupEmits, useCheckboxGroupProps, checkboxGroupEmits, uploadProps } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
3
|
import { openBlock, createElementBlock, createElementVNode } from 'vue';
|
|
4
4
|
|
|
@@ -46,6 +46,14 @@ function _sfc_render50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46
46
|
}
|
|
47
47
|
var circle_close_default = /* @__PURE__ */ export_helper_default(_sfc_main50, [["render", _sfc_render50], ["__file", "circle-close.vue"]]);
|
|
48
48
|
|
|
49
|
+
var _a;
|
|
50
|
+
const isClient = typeof window !== "undefined";
|
|
51
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
52
|
+
|
|
53
|
+
!isClient ? void 0 : document.body;
|
|
54
|
+
|
|
55
|
+
const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
|
|
56
|
+
|
|
49
57
|
var __defProp = Object.defineProperty;
|
|
50
58
|
var __defProps = Object.defineProperties;
|
|
51
59
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -165,6 +173,36 @@ const selectEmits = {
|
|
|
165
173
|
"focus": null,
|
|
166
174
|
"blur": null
|
|
167
175
|
};
|
|
176
|
+
const colorPickerProps = {
|
|
177
|
+
modelValue: String,
|
|
178
|
+
id: String,
|
|
179
|
+
showAlpha: Boolean,
|
|
180
|
+
colorFormat: String,
|
|
181
|
+
disabled: Boolean,
|
|
182
|
+
size: {
|
|
183
|
+
type: String,
|
|
184
|
+
validator: isValidComponentSize
|
|
185
|
+
},
|
|
186
|
+
popperClass: String,
|
|
187
|
+
label: {
|
|
188
|
+
type: String,
|
|
189
|
+
default: void 0
|
|
190
|
+
},
|
|
191
|
+
tabindex: {
|
|
192
|
+
type: [String, Number],
|
|
193
|
+
default: 0
|
|
194
|
+
},
|
|
195
|
+
predefine: Array,
|
|
196
|
+
validateEvent: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
default: true
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const colorPickerEmits = {
|
|
202
|
+
change: null,
|
|
203
|
+
"active-change": null,
|
|
204
|
+
"update:modelValue": null
|
|
205
|
+
};
|
|
168
206
|
|
|
169
207
|
const createInputBindProps = bindPropsFactory(inputProps);
|
|
170
208
|
const createInputOnEmits = onEmitsFactory(inputEmits);
|
|
@@ -179,5 +217,12 @@ const createDatePickerBindProps = bindPropsFactory(datePickerProps);
|
|
|
179
217
|
const createDatePickerOnEmits = onEmitsFactory(datePickerEmits);
|
|
180
218
|
const createInputNumberBindProps = bindPropsFactory(inputNumberProps);
|
|
181
219
|
const createInputNumberOnEmits = onEmitsFactory(inputNumberEmits);
|
|
220
|
+
const createRadioGroupBindProps = bindPropsFactory(radioGroupProps);
|
|
221
|
+
const createRadioGroupOnEmits = onEmitsFactory(radioGroupEmits);
|
|
222
|
+
const createCheckboxGroupBindProps = bindPropsFactory(useCheckboxGroupProps);
|
|
223
|
+
const createCheckboxGroupOnEmits = onEmitsFactory(checkboxGroupEmits);
|
|
224
|
+
const createUploadBindProps = bindPropsFactory(uploadProps);
|
|
225
|
+
const createColorPickerBindProps = bindPropsFactory(colorPickerProps);
|
|
226
|
+
const createColorPickerOnEmits = onEmitsFactory(colorPickerEmits);
|
|
182
227
|
|
|
183
|
-
export { createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, datePickerEmits, datePickerProps, selectEmits, selectProps };
|
|
228
|
+
export { colorPickerEmits, colorPickerProps, createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createColorPickerBindProps, createColorPickerOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, createUploadBindProps, datePickerEmits, datePickerProps, selectEmits, selectProps };
|
|
@@ -182,3 +182,33 @@ export declare const selectEmits: {
|
|
|
182
182
|
focus: null;
|
|
183
183
|
blur: null;
|
|
184
184
|
};
|
|
185
|
+
export declare const colorPickerProps: {
|
|
186
|
+
modelValue: StringConstructor;
|
|
187
|
+
id: StringConstructor;
|
|
188
|
+
showAlpha: BooleanConstructor;
|
|
189
|
+
colorFormat: StringConstructor;
|
|
190
|
+
disabled: BooleanConstructor;
|
|
191
|
+
size: {
|
|
192
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
193
|
+
validator: (val: string) => val is "" | "default" | "small" | "large";
|
|
194
|
+
};
|
|
195
|
+
popperClass: StringConstructor;
|
|
196
|
+
label: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: undefined;
|
|
199
|
+
};
|
|
200
|
+
tabindex: {
|
|
201
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
202
|
+
default: number;
|
|
203
|
+
};
|
|
204
|
+
predefine: ArrayConstructor;
|
|
205
|
+
validateEvent: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
export declare const colorPickerEmits: {
|
|
211
|
+
change: null;
|
|
212
|
+
'active-change': null;
|
|
213
|
+
'update:modelValue': null;
|
|
214
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
value?: string | number;
|
|
3
|
+
label?: string;
|
|
4
|
+
'trueLabel'?: string | number;
|
|
5
|
+
'falseLabel'?: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
border?: boolean;
|
|
8
|
+
size?: '' | 'default' | 'small' | 'large';
|
|
9
|
+
name?: string;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
validateEvent?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VkfCheckbox } from '@vunk/form/components/checkbox';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface VkfCheckboxSource<P extends string = string> extends VueComponentPropsType<typeof VkfCheckbox>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfCheckbox';
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VkfColorPicker } from '@vunk/form/components/color-picker';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface VkfColorPickerSource<P extends string = string> extends VueComponentPropsType<typeof VkfColorPicker>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfColorPicker';
|
|
7
|
+
}
|
|
@@ -4,10 +4,18 @@ import type { VkfInputSource } from './input';
|
|
|
4
4
|
import type { VkfSelectSource } from './select';
|
|
5
5
|
import type { VkfSwitchSource } from './switch';
|
|
6
6
|
import type { VkfInputNumberSource } from './input-number';
|
|
7
|
+
import type { VkfRadioSource } from './radio';
|
|
8
|
+
import type { VkfCheckboxSource } from './checkbox';
|
|
9
|
+
import type { VkfUploadSource } from './upload';
|
|
10
|
+
import type { VkfColorPickerSource } from './color-picker';
|
|
7
11
|
export * from './compoent';
|
|
8
12
|
export * from './date-picker';
|
|
9
13
|
export * from './input';
|
|
10
14
|
export * from './select';
|
|
11
15
|
export * from './switch';
|
|
12
16
|
export * from './input-number';
|
|
13
|
-
export
|
|
17
|
+
export * from './radio';
|
|
18
|
+
export * from './checkbox';
|
|
19
|
+
export * from './upload';
|
|
20
|
+
export * from './color-picker';
|
|
21
|
+
export declare type FormItemRendererSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | ComponentSource;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import VkfRadio from '@vunk/form/components/radio';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface VkfRadioSource<P extends string = string> extends VueComponentPropsType<typeof VkfRadio>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfRadio';
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VkfUpload } from '@vunk/form/components/upload';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface VkfUploadSource<P extends string = string> extends VueComponentPropsType<typeof VkfUpload>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfUpload';
|
|
7
|
+
}
|