@vunk/form 0.0.1-alpha.2 → 0.0.1-alpha.22

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.
Files changed (119) hide show
  1. package/components/button/index.d.ts +4 -0
  2. package/components/button/index.js +121 -0
  3. package/components/button/src/ctx.d.ts +86 -0
  4. package/components/button/src/ctx.js +39 -0
  5. package/components/button/src/index.vue.d.ts +232 -0
  6. package/components/button/src/types.d.ts +7 -0
  7. package/components/button/src/types.js +1 -0
  8. package/components/checkbox/index.css +38 -0
  9. package/components/checkbox/index.d.ts +4 -0
  10. package/components/checkbox/index.js +125 -0
  11. package/components/checkbox/src/ctx.d.ts +107 -0
  12. package/components/checkbox/src/ctx.js +43 -0
  13. package/components/checkbox/src/index.vue.d.ts +270 -0
  14. package/components/checkbox/src/types.d.ts +1 -0
  15. package/components/checkbox/src/types.js +1 -0
  16. package/components/color-picker/index.d.ts +4 -0
  17. package/components/color-picker/index.js +72 -0
  18. package/components/color-picker/src/ctx.d.ts +74 -0
  19. package/components/color-picker/src/ctx.js +23 -0
  20. package/components/color-picker/src/index.vue.d.ts +196 -0
  21. package/components/color-picker/src/types.d.ts +1 -0
  22. package/components/color-picker/src/types.js +1 -0
  23. package/components/date-picker/index.js +11 -5
  24. package/components/date-picker/src/ctx.d.ts +64 -57
  25. package/components/date-picker/src/ctx.js +1 -1
  26. package/components/date-picker/src/index.vue.d.ts +170 -140
  27. package/components/date-picker/src/types.d.ts +7 -7
  28. package/components/form/index.js +23 -7
  29. package/components/form/src/ctx.d.ts +83 -77
  30. package/components/form/src/ctx.js +5 -2
  31. package/components/form/src/index.vue.d.ts +238 -229
  32. package/components/form-item/index.css +4 -0
  33. package/components/form-item/index.js +19 -3
  34. package/components/form-item/src/ctx.d.ts +15 -7
  35. package/components/form-item/src/ctx.js +8 -0
  36. package/components/form-item/src/index.vue.d.ts +43 -13
  37. package/components/form-item-renderer/index.js +15 -1
  38. package/components/form-item-renderer/src/ctx.d.ts +3 -3
  39. package/components/form-item-renderer/src/index.vue.d.ts +9 -9
  40. package/components/form-item-renderer/src/types.d.ts +2 -0
  41. package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
  42. package/components/form-item-renderer-template-default/index.js +112 -19
  43. package/components/form-item-renderer-template-default/src/index.vue.d.ts +6 -6
  44. package/components/form-item-renderer-template-layout/index.js +22 -13
  45. package/components/form-item-renderer-template-layout/src/ctx.d.ts +3 -2
  46. package/components/form-item-renderer-template-layout/src/ctx.js +1 -1
  47. package/components/form-item-renderer-template-layout/src/index.vue.d.ts +18 -6
  48. package/components/input/index.js +23 -4
  49. package/components/input/src/ctx.d.ts +80 -48
  50. package/components/input/src/ctx.js +13 -1
  51. package/components/input/src/index.vue.d.ts +194 -115
  52. package/components/input-number/index.css +14 -0
  53. package/components/input-number/index.d.ts +4 -0
  54. package/components/input-number/index.js +76 -0
  55. package/components/input-number/src/ctx.d.ts +79 -0
  56. package/components/input-number/src/ctx.js +23 -0
  57. package/components/input-number/src/index.vue.d.ts +218 -0
  58. package/components/input-number/src/types.d.ts +1 -0
  59. package/components/input-number/src/types.js +1 -0
  60. package/components/radio/index.css +29 -0
  61. package/components/radio/index.d.ts +4 -0
  62. package/components/radio/index.js +116 -0
  63. package/components/radio/src/ctx.d.ts +74 -0
  64. package/components/radio/src/ctx.js +35 -0
  65. package/components/radio/src/index.vue.d.ts +199 -0
  66. package/components/radio/src/types.d.ts +1 -0
  67. package/components/radio/src/types.js +1 -0
  68. package/components/select/index.css +11 -0
  69. package/components/select/index.js +22 -5
  70. package/components/select/src/ctx.d.ts +33 -25
  71. package/components/select/src/index.vue.d.ts +170 -102
  72. package/components/switch/index.css +11 -0
  73. package/components/switch/index.js +41 -13
  74. package/components/switch/src/ctx.d.ts +36 -9
  75. package/components/switch/src/ctx.js +15 -2
  76. package/components/switch/src/index.vue.d.ts +128 -32
  77. package/components/upload/index.css +20 -0
  78. package/components/upload/index.d.ts +4 -0
  79. package/components/upload/index.js +481 -0
  80. package/components/upload/src/ctx.d.ts +168 -0
  81. package/components/upload/src/ctx.js +38 -0
  82. package/components/upload/src/file.vue.d.ts +96 -0
  83. package/components/upload/src/index.vue.d.ts +422 -0
  84. package/components/upload/src/types.d.ts +1 -0
  85. package/components/upload/src/types.js +1 -0
  86. package/composables/index.d.ts +1 -0
  87. package/composables/index.js +304 -3
  88. package/composables/useForm.d.ts +9 -0
  89. package/index.css +134 -0
  90. package/index.d.ts +1 -0
  91. package/index.esm.js +4 -1
  92. package/package.json +4 -1
  93. package/shared/default-renderer-source/index.d.ts +12 -0
  94. package/shared/default-renderer-source/index.js +83 -0
  95. package/shared/element-plus/ctx.d.ts +76 -11
  96. package/shared/element-plus/index.js +51 -2
  97. package/shared/element-plus/instances.d.ts +56 -26
  98. package/shared/infer-prop/index.d.ts +16 -0
  99. package/shared/infer-prop/index.js +29 -0
  100. package/shared/types/basic-source/index.d.ts +6 -0
  101. package/shared/types/basic-source/index.js +1 -0
  102. package/shared/types/form/checkbox.d.ts +13 -0
  103. package/shared/types/form/index.d.ts +2 -0
  104. package/shared/types/form/index.js +1 -0
  105. package/shared/types/form/radio.d.ts +8 -0
  106. package/shared/types/index.d.ts +1 -0
  107. package/shared/types/layout-source/index.d.ts +6 -4
  108. package/shared/types/renderer-source/button.d.ts +7 -0
  109. package/shared/types/renderer-source/checkbox.d.ts +7 -0
  110. package/shared/types/renderer-source/color-picker.d.ts +7 -0
  111. package/shared/types/renderer-source/compoent.d.ts +2 -0
  112. package/shared/types/renderer-source/date-picker.d.ts +3 -2
  113. package/shared/types/renderer-source/index.d.ts +13 -1
  114. package/shared/types/renderer-source/input-number.d.ts +8 -0
  115. package/shared/types/renderer-source/input.d.ts +3 -2
  116. package/shared/types/renderer-source/radio.d.ts +7 -0
  117. package/shared/types/renderer-source/select.d.ts +3 -2
  118. package/shared/types/renderer-source/switch.d.ts +3 -2
  119. package/shared/types/renderer-source/upload.d.ts +7 -0
@@ -1,11 +1,76 @@
1
- export declare const createInputBindProps: <T2 extends Record<string, any>, EX extends ("type" | "size" | "label" | "tabindex" | "validateEvent" | "id" | "clearable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "type" | "size" | "label" | "tabindex" | "validateEvent" | "id" | "clearable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
2
- export declare const createInputOnEmits: <T2 extends (...args: any) => any, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "clear" | "mouseleave" | "mouseenter" | "compositionstart" | "compositionupdate" | "compositionend")[], K extends "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "clear" | "mouseleave" | "mouseenter" | "compositionstart" | "compositionupdate" | "compositionend">(emit: T2, excludes?: EX) => { [k in K]: T2; };
3
- export declare const createFormBindProps: <T2 extends Record<string, any>, EX extends ("size" | "labelWidth" | "rules" | "inlineMessage" | "showMessage" | "disabled" | "model" | "labelPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "size" | "labelWidth" | "rules" | "inlineMessage" | "showMessage" | "disabled" | "model" | "labelPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
4
- export declare const createFormOnEmits: <T2 extends (...args: any) => any, EX extends "validate"[], K extends "validate">(emit: T2, excludes?: EX) => { [k in K]: T2; };
5
- export declare const createFormItemBindProps: <T2 extends Record<string, any>, EX extends ("required" | "size" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "required" | "size" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
6
- export declare const createSwitchBindProps: <T2 extends Record<string, any>, EX extends ("size" | "value" | "name" | "tabindex" | "validateEvent" | "id" | "disabled" | "modelValue" | "width" | "inlinePrompt" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeColor" | "inactiveColor" | "borderColor" | "activeValue" | "inactiveValue" | "loading" | "beforeChange")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "size" | "value" | "name" | "tabindex" | "validateEvent" | "id" | "disabled" | "modelValue" | "width" | "inlinePrompt" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeColor" | "inactiveColor" | "borderColor" | "activeValue" | "inactiveValue" | "loading" | "beforeChange">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
7
- export declare const createSwitchOnEmits: <T2 extends (...args: any) => any, EX extends ("update:modelValue" | "change" | "input")[], K extends "update:modelValue" | "change" | "input">(emit: T2, excludes?: EX) => { [k in K]: T2; };
8
- export declare const createSelectBindProps: <T2 extends Record<string, any>, EX extends ("size" | "name" | "id" | "popperClass" | "clearable" | "clearIcon" | "disabled" | "placeholder" | "modelValue" | "autocomplete" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multiple" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "fitInputWidth" | "tagType")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "size" | "name" | "id" | "popperClass" | "clearable" | "clearIcon" | "disabled" | "placeholder" | "modelValue" | "autocomplete" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multiple" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "fitInputWidth" | "tagType">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
9
- export declare const createSelectOnEmits: <T2 extends (...args: any) => any, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "visible-change" | "clear" | "remove-tag")[], K extends "update:modelValue" | "change" | "focus" | "blur" | "visible-change" | "clear" | "remove-tag">(emit: T2, excludes?: EX) => { [k in K]: T2; };
10
- export declare const createDatePickerBindProps: <T2 extends Record<string, any>, EX extends ("type" | "size" | "label" | "name" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "tabindex" | "validateEvent" | "unlinkPanels" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "id" | "popperClass" | "format" | "valueFormat" | "clearable" | "clearIcon" | "editable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "popperOptions" | "modelValue" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange")[], K extends Extract<EX extends (infer V)[] ? Exclude<keyof T2, V> : keyof T2, "type" | "size" | "label" | "name" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "tabindex" | "validateEvent" | "unlinkPanels" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "id" | "popperClass" | "format" | "valueFormat" | "clearable" | "clearIcon" | "editable" | "prefixIcon" | "readonly" | "disabled" | "placeholder" | "popperOptions" | "modelValue" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange">>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [k in K]: T2[k]; }>;
11
- export declare const createDatePickerOnEmits: <T2 extends (...args: any) => any, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "calendar-change" | "panel-change" | "visible-change" | "keydown")[], K extends "update:modelValue" | "change" | "focus" | "blur" | "calendar-change" | "panel-change" | "visible-change" | "keydown">(emit: T2, excludes?: EX) => { [k in K]: T2; };
1
+ export declare const createInputBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"readonly", keyof T2> | Extract<"label", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", 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<"readonly", 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<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"modelValue", 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<"readonly", keyof T2> | Extract<"label", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", 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<"readonly", keyof T2> | Extract<"label", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", 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 import("@vunk/core").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
+ "update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
4
+ input: (...e: import("@vunk/core").RestParameters<T2>) => void;
5
+ change: (...e: import("@vunk/core").RestParameters<T2>) => void;
6
+ focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
7
+ blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
8
+ clear: (...e: import("@vunk/core").RestParameters<T2>) => void;
9
+ mouseleave: (...e: import("@vunk/core").RestParameters<T2>) => void;
10
+ mouseenter: (...e: import("@vunk/core").RestParameters<T2>) => void;
11
+ keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
12
+ compositionstart: (...e: import("@vunk/core").RestParameters<T2>) => void;
13
+ compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
14
+ compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
15
+ }[P]; };
16
+ export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", 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<"inline", 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<"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<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", 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<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", 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
+ export declare const createFormOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "validate"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> : "validate"]: {
18
+ validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
19
+ }[P]; };
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<"width", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"disabled", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"loading", 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<"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<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"loading", 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<"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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"loading", 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<"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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"loading", 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<"beforeChange", keyof T2>]: T2[k]; }[P]; }>;
22
+ export declare const createSwitchOnEmits: <T2 extends import("@vunk/core").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
+ "update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
24
+ change: (...e: import("@vunk/core").RestParameters<T2>) => void;
25
+ input: (...e: import("@vunk/core").RestParameters<T2>) => void;
26
+ }[P]; };
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<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"loading", 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<"popperClass", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"suffixIcon", 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<"loading", 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<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"loading", 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<"popperClass", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"loading", 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 import("@vunk/core").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
+ 'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
30
+ change: (...e: import("@vunk/core").RestParameters<T2>) => void;
31
+ 'remove-tag': (...e: import("@vunk/core").RestParameters<T2>) => void;
32
+ clear: (...e: import("@vunk/core").RestParameters<T2>) => void;
33
+ 'visible-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
34
+ focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
35
+ blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
36
+ }[P]; };
37
+ export declare const createDatePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"readonly", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"popperClass", 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<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"modelValue", 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<"readonly", 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<"disabledDate", keyof T2>, KE> | Exclude<Extract<"cellClassName", keyof T2>, KE> | Exclude<Extract<"shortcuts", keyof T2>, KE> | Exclude<Extract<"arrowControl", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", 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<"popperClass", 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<"placeholder", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"modelValue", 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<"readonly", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"popperClass", 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<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"modelValue", 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<"readonly", keyof T2> | Extract<"label", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"name", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"popperClass", 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<"placeholder", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"modelValue", 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 import("@vunk/core").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
+ 'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
40
+ change: (...e: import("@vunk/core").RestParameters<T2>) => void;
41
+ focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
42
+ blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
43
+ 'calendar-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
44
+ 'panel-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
45
+ 'visible-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
46
+ keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
47
+ }[P]; };
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<"validateEvent", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"controls", 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<"validateEvent", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"step", keyof T2>, KE> | Exclude<Extract<"stepStrictly", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"controls", 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<"validateEvent", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"controls", 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<"validateEvent", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"precision", keyof T2>]: T2[k]; }[P]; }>;
49
+ export declare const createInputNumberOnEmits: <T2 extends import("@vunk/core").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
+ change: (...e: import("@vunk/core").RestParameters<T2>) => void;
51
+ blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
52
+ focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
53
+ input: (...e: import("@vunk/core").RestParameters<T2>) => void;
54
+ "update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
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<"validateEvent", keyof T2> | Extract<"modelValue", 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<"validateEvent", keyof T2>, KE> | Exclude<Extract<"modelValue", 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<"validateEvent", keyof T2> | Extract<"modelValue", 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<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"textColor", keyof T2>]: T2[k]; }[P]; }>;
57
+ export declare const createRadioGroupOnEmits: <T2 extends import("@vunk/core").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<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"max", keyof T2> | Extract<"min", 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<"validateEvent", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"min", 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<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"max", keyof T2> | Extract<"min", 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<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"max", keyof T2> | Extract<"min", keyof T2> | Extract<"textColor", keyof T2> | Extract<"tag", keyof T2>]: T2[k]; }[P]; }>;
62
+ export declare const createCheckboxGroupOnEmits: <T2 extends import("@vunk/core").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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"showAlpha", keyof T2> | Extract<"colorFormat", 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<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"showAlpha", keyof T2>, KE> | Exclude<Extract<"colorFormat", 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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"showAlpha", keyof T2> | Extract<"colorFormat", 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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"showAlpha", keyof T2> | Extract<"colorFormat", keyof T2> | Extract<"predefine", keyof T2>]: T2[k]; }[P]; }>;
68
+ export declare const createColorPickerOnEmits: <T2 extends import("@vunk/core").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]; };
73
+ export declare const createButtonBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", 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<"link", keyof T2>, KE> | Exclude<Extract<"circle", keyof T2>, KE> | Exclude<Extract<"text", keyof T2>, KE> | Exclude<Extract<"color", keyof T2>, KE> | Exclude<Extract<"icon", keyof T2>, KE> | Exclude<Extract<"round", keyof T2>, KE> | Exclude<Extract<"dark", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"nativeType", keyof T2>, KE> | Exclude<Extract<"loadingIcon", keyof T2>, KE> | Exclude<Extract<"plain", keyof T2>, KE> | Exclude<Extract<"bg", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"autoInsertSpace", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: T2[k]; }[P]; }>;
74
+ export declare const createButtonOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "click"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"click", KE> : "click"]: {
75
+ click: (...e: import("@vunk/core").RestParameters<T2>) => void;
76
+ }[P]; };
@@ -1,4 +1,4 @@
1
- import { useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits } from 'element-plus';
1
+ import { componentSizes, useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits, radioGroupProps, radioGroupEmits, useCheckboxGroupProps, checkboxGroupEmits, uploadProps, buttonProps, buttonEmits } 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);
@@ -177,5 +215,16 @@ const createSelectBindProps = bindPropsFactory(selectProps);
177
215
  const createSelectOnEmits = onEmitsFactory(selectEmits);
178
216
  const createDatePickerBindProps = bindPropsFactory(datePickerProps);
179
217
  const createDatePickerOnEmits = onEmitsFactory(datePickerEmits);
218
+ const createInputNumberBindProps = bindPropsFactory(inputNumberProps);
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);
227
+ const createButtonBindProps = bindPropsFactory(buttonProps);
228
+ const createButtonOnEmits = onEmitsFactory(buttonEmits);
180
229
 
181
- export { createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, datePickerEmits, datePickerProps, selectEmits, selectProps };
230
+ export { colorPickerEmits, colorPickerProps, createButtonBindProps, createButtonOnEmits, createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createColorPickerBindProps, createColorPickerOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, createUploadBindProps, datePickerEmits, datePickerProps, selectEmits, selectProps };
@@ -7,13 +7,13 @@ export declare const datePickerProps: {
7
7
  disabledDate: {
8
8
  readonly type: PropType<Function>;
9
9
  readonly required: false;
10
- readonly validator: (val: unknown) => boolean;
10
+ readonly validator: ((val: unknown) => boolean) | undefined;
11
11
  __epPropKey: true;
12
12
  };
13
13
  cellClassName: {
14
14
  readonly type: PropType<Function>;
15
15
  readonly required: false;
16
- readonly validator: (val: unknown) => boolean;
16
+ readonly validator: ((val: unknown) => boolean) | undefined;
17
17
  __epPropKey: true;
18
18
  };
19
19
  shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
@@ -25,25 +25,25 @@ export declare const datePickerProps: {
25
25
  disabledHours: {
26
26
  readonly type: PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledHours>;
27
27
  readonly required: false;
28
- readonly validator: (val: unknown) => boolean;
28
+ readonly validator: ((val: unknown) => boolean) | undefined;
29
29
  __epPropKey: true;
30
30
  };
31
31
  disabledMinutes: {
32
32
  readonly type: PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledMinutes>;
33
33
  readonly required: false;
34
- readonly validator: (val: unknown) => boolean;
34
+ readonly validator: ((val: unknown) => boolean) | undefined;
35
35
  __epPropKey: true;
36
36
  };
37
37
  disabledSeconds: {
38
38
  readonly type: PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledSeconds>;
39
39
  readonly required: false;
40
- readonly validator: (val: unknown) => boolean;
40
+ readonly validator: ((val: unknown) => boolean) | undefined;
41
41
  __epPropKey: true;
42
42
  };
43
43
  id: {
44
44
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
45
45
  readonly required: false;
46
- readonly validator: (val: unknown) => boolean;
46
+ readonly validator: ((val: unknown) => boolean) | undefined;
47
47
  __epPropKey: true;
48
48
  };
49
49
  name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
@@ -57,7 +57,7 @@ export declare const datePickerProps: {
57
57
  size: {
58
58
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
59
59
  readonly required: false;
60
- readonly validator: (val: unknown) => boolean;
60
+ readonly validator: ((val: unknown) => boolean) | undefined;
61
61
  __epPropKey: true;
62
62
  };
63
63
  readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -71,33 +71,33 @@ export declare const datePickerProps: {
71
71
  defaultValue: {
72
72
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
73
73
  readonly required: false;
74
- readonly validator: (val: unknown) => boolean;
74
+ readonly validator: ((val: unknown) => boolean) | undefined;
75
75
  __epPropKey: true;
76
76
  };
77
77
  defaultTime: {
78
78
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
79
79
  readonly required: false;
80
- readonly validator: (val: unknown) => boolean;
80
+ readonly validator: ((val: unknown) => boolean) | undefined;
81
81
  __epPropKey: true;
82
82
  };
83
83
  isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
84
84
  };
85
85
  export declare const datePickerEmits: {
86
- 'update:modelValue': any;
87
- change: any;
88
- focus: any;
89
- blur: any;
90
- 'calendar-change': any;
91
- 'panel-change': any;
92
- 'visible-change': any;
93
- keydown: any;
86
+ 'update:modelValue': null;
87
+ change: null;
88
+ focus: null;
89
+ blur: null;
90
+ 'calendar-change': null;
91
+ 'panel-change': null;
92
+ 'visible-change': null;
93
+ keydown: null;
94
94
  };
95
95
  export declare const selectProps: {
96
96
  name: StringConstructor;
97
97
  id: StringConstructor;
98
98
  modelValue: {
99
99
  type: (StringConstructor | BooleanConstructor | NumberConstructor | ObjectConstructor | ArrayConstructor)[];
100
- default: any;
100
+ default: undefined;
101
101
  };
102
102
  autocomplete: {
103
103
  type: StringConstructor;
@@ -169,16 +169,46 @@ export declare const selectProps: {
169
169
  default: string;
170
170
  type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown>>;
171
171
  required: false;
172
- validator: (val: unknown) => boolean;
172
+ validator: ((val: unknown) => boolean) | undefined;
173
173
  __epPropKey: true;
174
174
  };
175
175
  };
176
176
  export declare const selectEmits: {
177
- 'update:modelValue': any;
178
- change: any;
179
- 'remove-tag': any;
180
- clear: any;
181
- 'visible-change': any;
182
- focus: any;
183
- blur: any;
177
+ 'update:modelValue': null;
178
+ change: null;
179
+ 'remove-tag': null;
180
+ clear: null;
181
+ 'visible-change': null;
182
+ focus: null;
183
+ blur: null;
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;
184
214
  };
@@ -0,0 +1,16 @@
1
+ import { ComponentSource, FormItemRendererSource } from '@vunk/form/shared/types';
2
+ export interface PropInfo {
3
+ prop: string;
4
+ type: string;
5
+ precision?: number;
6
+ }
7
+ export declare type InferPropInfo = (item: Exclude<FormItemRendererSource, ComponentSource>) => Partial<PropInfo>;
8
+ export declare const propInfoAction: {
9
+ VkfSelect: InferPropInfo;
10
+ VkfRadio: InferPropInfo;
11
+ VkfCheckbox: InferPropInfo;
12
+ VkfColorPicker: InferPropInfo;
13
+ VkfInputNumber: InferPropInfo;
14
+ VkfSwitch: InferPropInfo;
15
+ VkfUpload: InferPropInfo;
16
+ };
@@ -0,0 +1,29 @@
1
+ const inferString = (item) => ({
2
+ prop: item.prop,
3
+ type: "string"
4
+ });
5
+ const inferBoolean = (item) => ({
6
+ prop: item.prop,
7
+ type: "boolean"
8
+ });
9
+ const inferNumber = (item) => {
10
+ const info = {
11
+ prop: item.prop,
12
+ type: "int"
13
+ };
14
+ if (item.precision) {
15
+ info.precision = item.precision;
16
+ }
17
+ return info;
18
+ };
19
+ const propInfoAction = {
20
+ VkfSelect: inferString,
21
+ VkfRadio: inferString,
22
+ VkfCheckbox: inferString,
23
+ VkfColorPicker: inferString,
24
+ VkfInputNumber: inferNumber,
25
+ VkfSwitch: inferBoolean,
26
+ VkfUpload: inferString
27
+ };
28
+
29
+ export { propInfoAction };
@@ -0,0 +1,6 @@
1
+ import { NormalObject } from '@vunk/core';
2
+ export interface BasicSource {
3
+ templateIf?: ((data?: NormalObject) => boolean) | string | boolean;
4
+ templateType?: string;
5
+ class?: any;
6
+ }
@@ -0,0 +1 @@
1
+
@@ -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,2 @@
1
+ export * from './radio';
2
+ export * from './checkbox';
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,8 @@
1
+ export interface RadioProps {
2
+ border?: boolean;
3
+ name?: string;
4
+ size?: '' | 'default' | 'small' | 'large';
5
+ disabled?: boolean;
6
+ value?: string | number;
7
+ label?: string;
8
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './renderer-source';
2
2
  export * from './layout-source';
3
3
  export * from './source-manager';
4
+ export * from './basic-source';
@@ -1,10 +1,11 @@
1
1
  import { VueComponentPropsType } from '@vunk/core';
2
2
  import { ElCol, ElRow } from 'element-plus';
3
- export interface ElRowSource<S> extends VueComponentPropsType<typeof ElRow> {
3
+ import { BasicSource } from '@vunk/form/shared/types/basic-source';
4
+ export interface ElRowSource<S> extends VueComponentPropsType<typeof ElRow>, BasicSource {
4
5
  templateType: 'ElRow';
5
6
  templateSlots: S[];
6
7
  }
7
- export interface ElColSource<S> extends VueComponentPropsType<typeof ElCol> {
8
+ export interface ElColSource<S> extends VueComponentPropsType<typeof ElCol>, BasicSource {
8
9
  templateType: 'ElCol';
9
10
  templateSlots: S[];
10
11
  }
@@ -22,9 +23,10 @@ interface VkfFlexItem {
22
23
  basis?: string | IntrinsicSizing | GlobalValues | 'revert' | 'revert-layer' | 'content';
23
24
  overflow?: 'hidden' | 'visible' | 'scroll' | 'auto' | string;
24
25
  }
25
- export interface VkfFlexSource<S> extends VkfFlex, VkfFlexItem {
26
+ export interface VkfFlexSource<S> extends VkfFlex, VkfFlexItem, BasicSource {
26
27
  templateType: 'VkfFlex';
27
- templateSlots: S[];
28
+ templateSlots?: S[];
29
+ [s: string]: any;
28
30
  }
29
31
  export declare type LayoutSourceEnhance<S> = ElRowSource<S> | ElColSource<S> | VkfFlexSource<S>;
30
32
  export {};
@@ -0,0 +1,7 @@
1
+ import { VkfButton } from '@vunk/form/components/button';
2
+ import { VueComponentPropsType } from '@vunk/core';
3
+ import { BasicSource } from '@vunk/form/shared/types/basic-source';
4
+ export interface VkfButtonSource<P extends string = string> extends VueComponentPropsType<typeof VkfButton>, BasicSource {
5
+ prop?: P;
6
+ templateType: 'VkfButton';
7
+ }
@@ -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
+ }