vft 0.0.389 → 0.0.390

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 (125) hide show
  1. package/es/components/autocomplete/autocomplete.vue.d.ts +3 -3
  2. package/es/components/autocomplete/index.d.ts +7 -7
  3. package/es/components/button/button.vue.d.ts +1 -1
  4. package/es/components/button/index.d.ts +12 -12
  5. package/es/components/button/use-button.d.ts +1 -1
  6. package/es/components/carousel/use-carousel.js +1 -1
  7. package/es/components/cascader/cascader.vue.d.ts +2 -2
  8. package/es/components/checkbox/index.d.ts +27 -27
  9. package/es/components/color-picker/index.d.ts +6 -6
  10. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
  11. package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
  12. package/es/components/date-picker/date-picker.d.ts +3 -3
  13. package/es/components/date-picker/index.d.ts +6 -6
  14. package/es/components/date-picker/panel-utils.d.ts +6 -6
  15. package/es/components/date-picker/props/date-picker.d.ts +1 -1
  16. package/es/components/date-picker/props/panel-date-pick.d.ts +1 -1
  17. package/es/components/date-picker/props/panel-date-range.d.ts +1 -1
  18. package/es/components/date-picker/props/shared.d.ts +1 -1
  19. package/es/components/dropdown/index.d.ts +9 -9
  20. package/es/components/form/index.d.ts +18 -18
  21. package/es/components/index.js +41 -48
  22. package/es/components/input/index.d.ts +5 -5
  23. package/es/components/input/input.vue.d.ts +2 -2
  24. package/es/components/input/input.vue2.js +4 -4
  25. package/es/components/input-number/index.d.ts +1 -1
  26. package/es/components/input-number/input-number.vue.d.ts +1 -1
  27. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  28. package/es/components/input-tag/input-tag.vue.d.ts +4 -4
  29. package/es/components/radio/index.d.ts +18 -18
  30. package/es/components/search/index.d.ts +3 -3
  31. package/es/components/search/search.vue.d.ts +1 -1
  32. package/es/components/select/index.d.ts +2 -2
  33. package/es/components/select/select.vue.d.ts +2 -2
  34. package/es/components/slider/index.d.ts +1 -1
  35. package/es/components/slider/slider.vue.d.ts +1 -1
  36. package/es/components/super-form/component-map.d.ts +1 -9
  37. package/es/components/super-form/component-map.js +30 -56
  38. package/es/components/super-form/index.js +12 -19
  39. package/es/components/super-form/super-form-item.vue2.js +3 -3
  40. package/es/components/super-form/types.d.ts +2 -2
  41. package/es/components/super-form/types.js +5 -1
  42. package/es/components/super-form/use/helper.d.ts +1 -1
  43. package/es/components/super-form/use/helper.js +12 -8
  44. package/es/components/super-form/use/use-auto-focus.js +19 -15
  45. package/es/components/super-form/use/use-form-events.js +43 -41
  46. package/es/components/switch/index.d.ts +6 -6
  47. package/es/components/table/index.d.ts +9 -9
  48. package/es/components/table/table.vue2.js +1 -1
  49. package/es/components/tabs/index.d.ts +2 -2
  50. package/es/components/tabs/tabs.vue.d.ts +2 -2
  51. package/es/components/time-picker/common/picker.vue.d.ts +2 -2
  52. package/es/components/tree/tree-node.vue.d.ts +18 -18
  53. package/es/constants/index.js +9 -10
  54. package/es/constants/key.d.ts +0 -34
  55. package/es/constants/key.js +2 -4
  56. package/es/index.js +3 -2
  57. package/es/package.json.d.ts +1 -1
  58. package/es/package.json.js +1 -1
  59. package/es/utils/form-register.d.ts +42 -0
  60. package/es/utils/form-register.js +35 -0
  61. package/es/utils/index.d.ts +1 -0
  62. package/es/utils/index.js +80 -71
  63. package/es/utils/vue/vnode.js +1 -1
  64. package/lib/components/autocomplete/autocomplete.vue.d.ts +3 -3
  65. package/lib/components/autocomplete/index.d.ts +7 -7
  66. package/lib/components/button/button.vue.d.ts +1 -1
  67. package/lib/components/button/index.d.ts +12 -12
  68. package/lib/components/button/use-button.d.ts +1 -1
  69. package/lib/components/cascader/cascader.vue.d.ts +2 -2
  70. package/lib/components/checkbox/index.d.ts +27 -27
  71. package/lib/components/color-picker/index.d.ts +6 -6
  72. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
  73. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
  74. package/lib/components/date-picker/date-picker.d.ts +3 -3
  75. package/lib/components/date-picker/index.d.ts +6 -6
  76. package/lib/components/date-picker/panel-utils.d.ts +6 -6
  77. package/lib/components/date-picker/props/date-picker.d.ts +1 -1
  78. package/lib/components/date-picker/props/panel-date-pick.d.ts +1 -1
  79. package/lib/components/date-picker/props/panel-date-range.d.ts +1 -1
  80. package/lib/components/date-picker/props/shared.d.ts +1 -1
  81. package/lib/components/dropdown/index.d.ts +9 -9
  82. package/lib/components/form/index.d.ts +18 -18
  83. package/lib/components/index.cjs +1 -1
  84. package/lib/components/input/index.d.ts +5 -5
  85. package/lib/components/input/input.vue.d.ts +2 -2
  86. package/lib/components/input/input.vue2.cjs +1 -1
  87. package/lib/components/input-number/index.d.ts +1 -1
  88. package/lib/components/input-number/input-number.vue.d.ts +1 -1
  89. package/lib/components/input-tag/input-tag.vue.d.ts +4 -4
  90. package/lib/components/radio/index.d.ts +18 -18
  91. package/lib/components/search/index.d.ts +3 -3
  92. package/lib/components/search/search.vue.d.ts +1 -1
  93. package/lib/components/select/index.d.ts +2 -2
  94. package/lib/components/select/select.vue.d.ts +2 -2
  95. package/lib/components/slider/index.d.ts +1 -1
  96. package/lib/components/slider/slider.vue.d.ts +1 -1
  97. package/lib/components/super-form/component-map.cjs +1 -1
  98. package/lib/components/super-form/component-map.d.ts +1 -9
  99. package/lib/components/super-form/index.cjs +1 -1
  100. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  101. package/lib/components/super-form/types.cjs +1 -1
  102. package/lib/components/super-form/types.d.ts +2 -2
  103. package/lib/components/super-form/use/helper.cjs +1 -1
  104. package/lib/components/super-form/use/helper.d.ts +1 -1
  105. package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
  106. package/lib/components/super-form/use/use-form-events.cjs +1 -1
  107. package/lib/components/switch/index.d.ts +6 -6
  108. package/lib/components/table/index.d.ts +9 -9
  109. package/lib/components/table/table.vue2.cjs +1 -1
  110. package/lib/components/tabs/index.d.ts +2 -2
  111. package/lib/components/tabs/tabs.vue.d.ts +2 -2
  112. package/lib/components/time-picker/common/picker.vue.d.ts +2 -2
  113. package/lib/components/tree/tree-node.vue.d.ts +18 -18
  114. package/lib/constants/index.cjs +1 -1
  115. package/lib/constants/key.cjs +1 -1
  116. package/lib/constants/key.d.ts +0 -34
  117. package/lib/index.cjs +1 -1
  118. package/lib/package.json.cjs +1 -1
  119. package/lib/package.json.d.ts +1 -1
  120. package/lib/utils/form-register.cjs +1 -0
  121. package/lib/utils/form-register.d.ts +42 -0
  122. package/lib/utils/index.cjs +1 -1
  123. package/lib/utils/index.d.ts +1 -0
  124. package/package.json +4 -4
  125. package/web-types.json +1 -1
@@ -61,9 +61,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
61
61
  resizeTextarea: () => void;
62
62
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
63
63
  input: (value: string) => void;
64
+ clear: () => void;
64
65
  "update:modelValue": (value: string) => void;
65
66
  change: (value: string) => void;
66
- clear: () => void;
67
67
  blur: (evt: FocusEvent) => void;
68
68
  compositionend: (evt: CompositionEvent) => void;
69
69
  compositionstart: (evt: CompositionEvent) => void;
@@ -77,9 +77,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
77
77
  enter: () => void;
78
78
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputProps>>> & Readonly<{
79
79
  onInput?: ((value: string) => any) | undefined;
80
+ onClear?: (() => any) | undefined;
80
81
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
81
82
  onChange?: ((value: string) => any) | undefined;
82
- onClear?: (() => any) | undefined;
83
83
  onBlur?: ((evt: FocusEvent) => any) | undefined;
84
84
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
85
85
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
@@ -13,8 +13,8 @@ import "../../hooks/use-z-index/index.js";
13
13
  import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
14
14
  import { useAttrs as Ze, useCursor as _e } from "@vft/use";
15
15
  import { calcTextareaHeight as ye } from "./utils.js";
16
- import { useFormSize as et, useFormDisabled as tt } from "../form/hooks/use-form-common-props.js";
17
- import { useFormItem as at, useFormItemInputId as ot } from "../form/hooks/use-form-item.js";
16
+ import { useFormItem as et, useFormItemInputId as tt } from "../form/hooks/use-form-item.js";
17
+ import { useFormSize as at, useFormDisabled as ot } from "../form/hooks/use-form-common-props.js";
18
18
  const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
19
19
  __name: "input",
20
20
  props: {
@@ -85,9 +85,9 @@ const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
85
85
  o.is("focus", v.value)
86
86
  ]), d = Ze({
87
87
  excludeKeys: l(() => Object.keys(X.value))
88
- }), { form: Ce, formItem: F } = at(), { inputId: Y } = ot(xe.props, {
88
+ }), { form: Ce, formItem: F } = et(), { inputId: Y } = tt(xe.props, {
89
89
  formItemContext: F
90
- }), ke = et(), h = tt(), o = pe("input"), Z = pe("textarea"), M = H(), b = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || b.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
90
+ }), ke = at(), h = ot(), o = pe("input"), Z = pe("textarea"), M = H(), b = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || b.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
91
91
  icon: "icon-circle-close",
92
92
  size: 16
93
93
  })), te = l(() => Ce?.statusIcon ?? !1), I = l(() => F?.validateState || ""), ae = l(
@@ -56,9 +56,9 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
56
56
  focus: () => void;
57
57
  blur: () => void;
58
58
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ input: (val: number | null | undefined) => void;
59
60
  "update:modelValue": (val: number | undefined) => void;
60
61
  change: (cur: number | undefined, prev: number | undefined) => void;
61
- input: (val: number | null | undefined) => void;
62
62
  blur: (e: FocusEvent) => void;
63
63
  focus: (e: FocusEvent) => void;
64
64
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -74,9 +74,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
74
74
  /** @description remove focus the input component */
75
75
  blur: () => void;
76
76
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
77
+ input: (val: number | null | undefined) => void;
77
78
  "update:modelValue": (val: number | undefined) => void;
78
79
  change: (cur: number | undefined, prev: number | undefined) => void;
79
- input: (val: number | null | undefined) => void;
80
80
  blur: (e: FocusEvent) => void;
81
81
  focus: (e: FocusEvent) => void;
82
82
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputNumberProps>>> & Readonly<{
@@ -1,6 +1,6 @@
1
1
  import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
2
2
  import { EVENT_CODE as g } from "../../../constants/aria.js";
3
- import { CHANGE_EVENT as i, INPUT_EVENT as H, UPDATE_MODEL_EVENT as d } from "../../../constants/event.js";
3
+ import { CHANGE_EVENT as i, UPDATE_MODEL_EVENT as d, INPUT_EVENT as H } from "../../../constants/event.js";
4
4
  import "@vueuse/core";
5
5
  import { isUndefined as K } from "@vft/utils";
6
6
  import { debugWarn as C } from "../../../utils/error.js";
@@ -57,10 +57,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
57
57
  focus: () => void;
58
58
  blur: () => void;
59
59
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
- "update:modelValue": (value?: string[] | undefined) => void;
61
- change: (value?: string[] | undefined) => void;
62
60
  input: (value: string) => void;
63
61
  clear: () => void;
62
+ "update:modelValue": (value?: string[] | undefined) => void;
63
+ change: (value?: string[] | undefined) => void;
64
64
  blur: (evt: FocusEvent) => void;
65
65
  focus: (evt: FocusEvent) => void;
66
66
  "remove-tag": (value: string) => void;
@@ -114,19 +114,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
114
114
  readonly ariaLabel: StringConstructor;
115
115
  }>> & Readonly<{
116
116
  onInput?: ((value: string) => any) | undefined;
117
+ onClear?: (() => any) | undefined;
117
118
  "onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
118
119
  onChange?: ((value?: string[] | undefined) => any) | undefined;
119
- onClear?: (() => any) | undefined;
120
120
  onBlur?: ((evt: FocusEvent) => any) | undefined;
121
121
  onFocus?: ((evt: FocusEvent) => any) | undefined;
122
122
  "onRemove-tag"?: ((value: string) => any) | undefined;
123
123
  "onAdd-tag"?: ((value: string | string[]) => any) | undefined;
124
124
  }>, {
125
+ readonly autocomplete: string;
125
126
  readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
126
127
  readonly draggable: boolean;
127
128
  readonly id: string;
128
129
  readonly autofocus: boolean;
129
- readonly autocomplete: string;
130
130
  readonly tabindex: import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
131
131
  readonly trigger: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown>;
132
132
  readonly readonly: boolean;
@@ -190,6 +190,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
190
190
  });
191
191
  RadioGroup: {
192
192
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
193
+ size: {
194
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
195
+ };
193
196
  label: {
194
197
  type: import("vue").PropType<string>;
195
198
  };
@@ -205,9 +208,6 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
205
208
  id: {
206
209
  type: import("vue").PropType<string>;
207
210
  };
208
- size: {
209
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
210
- };
211
211
  modelValue: {
212
212
  type: import("vue").PropType<string | number | boolean>;
213
213
  };
@@ -240,6 +240,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
240
240
  M: {};
241
241
  Defaults: {};
242
242
  }, Readonly<import("vue").ExtractPropTypes<{
243
+ size: {
244
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
245
+ };
243
246
  label: {
244
247
  type: import("vue").PropType<string>;
245
248
  };
@@ -255,9 +258,6 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
255
258
  id: {
256
259
  type: import("vue").PropType<string>;
257
260
  };
258
- size: {
259
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
260
- };
261
261
  modelValue: {
262
262
  type: import("vue").PropType<string | number | boolean>;
263
263
  };
@@ -284,6 +284,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
284
284
  __isTeleport?: never;
285
285
  __isSuspense?: never;
286
286
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
287
+ size: {
288
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
289
+ };
287
290
  label: {
288
291
  type: import("vue").PropType<string>;
289
292
  };
@@ -299,9 +302,6 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
299
302
  id: {
300
303
  type: import("vue").PropType<string>;
301
304
  };
302
- size: {
303
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
304
- };
305
305
  modelValue: {
306
306
  type: import("vue").PropType<string | number | boolean>;
307
307
  };
@@ -334,6 +334,9 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<{
334
334
  };
335
335
  export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
336
336
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
337
+ size: {
338
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
339
+ };
337
340
  label: {
338
341
  type: import("vue").PropType<string>;
339
342
  };
@@ -349,9 +352,6 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
349
352
  id: {
350
353
  type: import("vue").PropType<string>;
351
354
  };
352
- size: {
353
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
354
- };
355
355
  modelValue: {
356
356
  type: import("vue").PropType<string | number | boolean>;
357
357
  };
@@ -384,6 +384,9 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
384
384
  M: {};
385
385
  Defaults: {};
386
386
  }, Readonly<import("vue").ExtractPropTypes<{
387
+ size: {
388
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
389
+ };
387
390
  label: {
388
391
  type: import("vue").PropType<string>;
389
392
  };
@@ -399,9 +402,6 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
399
402
  id: {
400
403
  type: import("vue").PropType<string>;
401
404
  };
402
- size: {
403
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
404
- };
405
405
  modelValue: {
406
406
  type: import("vue").PropType<string | number | boolean>;
407
407
  };
@@ -428,6 +428,9 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
428
428
  __isTeleport?: never;
429
429
  __isSuspense?: never;
430
430
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
431
+ size: {
432
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
433
+ };
431
434
  label: {
432
435
  type: import("vue").PropType<string>;
433
436
  };
@@ -443,9 +446,6 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<{
443
446
  id: {
444
447
  type: import("vue").PropType<string>;
445
448
  };
446
- size: {
447
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
448
- };
449
449
  modelValue: {
450
450
  type: import("vue").PropType<string | number | boolean>;
451
451
  };
@@ -33,9 +33,9 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
33
33
  };
34
34
  }>> & Readonly<{
35
35
  onInput?: ((val: string | number) => any) | undefined;
36
+ onClear?: (() => any) | undefined;
36
37
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
37
38
  onChange?: ((val: string | number) => any) | undefined;
38
- onClear?: (() => any) | undefined;
39
39
  onBlur?: (() => any) | undefined;
40
40
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
41
41
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
@@ -109,9 +109,9 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
109
109
  };
110
110
  }>> & Readonly<{
111
111
  onInput?: ((val: string | number) => any) | undefined;
112
+ onClear?: (() => any) | undefined;
112
113
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
113
114
  onChange?: ((val: string | number) => any) | undefined;
114
- onClear?: (() => any) | undefined;
115
115
  onBlur?: (() => any) | undefined;
116
116
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
117
117
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
@@ -166,9 +166,9 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
166
166
  };
167
167
  }>> & Readonly<{
168
168
  onInput?: ((val: string | number) => any) | undefined;
169
+ onClear?: (() => any) | undefined;
169
170
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
170
171
  onChange?: ((val: string | number) => any) | undefined;
171
- onClear?: (() => any) | undefined;
172
172
  onBlur?: (() => any) | undefined;
173
173
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
174
174
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
@@ -44,9 +44,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
44
44
  compositionend: (evt: CompositionEvent) => void;
45
45
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps & _InputProps>>> & Readonly<{
46
46
  onInput?: ((val: string | number) => any) | undefined;
47
+ onClear?: (() => any) | undefined;
47
48
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
48
49
  onChange?: ((val: string | number) => any) | undefined;
49
- onClear?: (() => any) | undefined;
50
50
  onBlur?: (() => any) | undefined;
51
51
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
52
52
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
@@ -2107,21 +2107,21 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
2107
2107
  validator(val: any): val is number | boolean;
2108
2108
  };
2109
2109
  }>> & Readonly<{
2110
+ onClear?: (() => any) | undefined;
2110
2111
  "onUpdate:modelValue"?: ((val: any) => any) | undefined;
2111
2112
  onChange?: ((val: any) => any) | undefined;
2112
- onClear?: (() => any) | undefined;
2113
2113
  onBlur?: ((evt: FocusEvent) => any) | undefined;
2114
2114
  onFocus?: ((evt: FocusEvent) => any) | undefined;
2115
2115
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
2116
2116
  "onRemove-tag"?: ((val: unknown) => any) | undefined;
2117
2117
  }>, {
2118
+ autocomplete: "both" | "none" | "inline" | "list";
2118
2119
  disabled: boolean;
2119
2120
  height: number;
2120
2121
  offset: number;
2121
2122
  props: import("./useProps").Props;
2122
2123
  placement: import("@popperjs/core").Placement;
2123
2124
  effect: string;
2124
- autocomplete: "both" | "none" | "inline" | "list";
2125
2125
  tabindex: string | number;
2126
2126
  teleported: boolean;
2127
2127
  loading: boolean;
@@ -2103,21 +2103,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2103
2103
  validator(val: any): val is number | boolean;
2104
2104
  };
2105
2105
  }>> & Readonly<{
2106
+ onClear?: (() => any) | undefined;
2106
2107
  "onUpdate:modelValue"?: ((val: any) => any) | undefined;
2107
2108
  onChange?: ((val: any) => any) | undefined;
2108
- onClear?: (() => any) | undefined;
2109
2109
  onBlur?: ((evt: FocusEvent) => any) | undefined;
2110
2110
  onFocus?: ((evt: FocusEvent) => any) | undefined;
2111
2111
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
2112
2112
  "onRemove-tag"?: ((val: unknown) => any) | undefined;
2113
2113
  }>, {
2114
+ autocomplete: "both" | "none" | "inline" | "list";
2114
2115
  disabled: boolean;
2115
2116
  height: number;
2116
2117
  offset: number;
2117
2118
  props: import("./useProps").Props;
2118
2119
  placement: import("@popperjs/core").Placement;
2119
2120
  effect: string;
2120
- autocomplete: "both" | "none" | "inline" | "list";
2121
2121
  tabindex: string | number;
2122
2122
  teleported: boolean;
2123
2123
  loading: boolean;
@@ -80,9 +80,9 @@ export declare const VftSlider: import("vft/es/utils").SFCWithInstall<import("vu
80
80
  }>, {
81
81
  onSliderClick: (event: MouseEvent | TouchEvent) => void;
82
82
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
+ input: (value: import("vft/es/utils").Arrayable<number>) => void;
83
84
  "update:modelValue": (value: import("vft/es/utils").Arrayable<number>) => void;
84
85
  change: (value: import("vft/es/utils").Arrayable<number>) => void;
85
- input: (value: import("vft/es/utils").Arrayable<number>) => void;
86
86
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
87
87
  modelValue: {
88
88
  type: import("vue").PropType<number | number[]>;
@@ -31,9 +31,9 @@ export interface SliderProps {
31
31
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SliderProps>>, {
32
32
  onSliderClick: (event: MouseEvent | TouchEvent) => void;
33
33
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ input: (value: import("vft/es/utils").Arrayable<number>) => void;
34
35
  "update:modelValue": (value: import("vft/es/utils").Arrayable<number>) => void;
35
36
  change: (value: import("vft/es/utils").Arrayable<number>) => void;
36
- input: (value: import("vft/es/utils").Arrayable<number>) => void;
37
37
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SliderProps>>> & Readonly<{
38
38
  onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
39
39
  "onUpdate:modelValue"?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
@@ -1,12 +1,4 @@
1
- import type { Component } from 'vue';
2
- import { FormCompEnum } from 'vft/es/constants';
3
- export declare function registerComponent(compName: FormCompEnum | string, component: Component): void;
4
- export declare function registerComponents(components: Record<string, Component>): void;
5
- export declare function getComponent(compName: FormCompEnum): Component | undefined;
6
- export declare function removeComponent(compName: FormCompEnum): void;
7
- export declare function hasComponent(compName: FormCompEnum): boolean;
8
- export declare function getRegisteredComponents(): FormCompEnum[];
9
- export declare function clearComponents(): void;
1
+ import { FormCompEnum } from 'vft/es/utils';
10
2
  declare const isRangePicker: (type: FormCompEnum) => boolean;
11
3
  declare const isInput: (type: FormCompEnum) => boolean;
12
4
  declare const isDatePicker: (type: FormCompEnum) => boolean;
@@ -1,58 +1,32 @@
1
- import { FormCompEnum as n } from "../../constants/key.js";
2
- const t = /* @__PURE__ */ new Map();
3
- function R(e, E) {
4
- t.set(e, E);
5
- }
6
- function s(e) {
7
- Object.entries(e).forEach(([E, o]) => {
8
- t.set(E, o);
9
- });
10
- }
11
- function c(e) {
12
- return t.get(e);
13
- }
14
- function C(e) {
15
- t.delete(e);
16
- }
17
- function i(e) {
18
- return t.has(e);
19
- }
20
- function A() {
21
- return Array.from(t.keys());
22
- }
23
- function u() {
24
- t.clear();
25
- }
26
- const I = (e) => [
27
- n.DATETIMERANGE_PICKER,
28
- n.DATERANGE_PICKER,
29
- n.MONTHRANGE_PICKER
30
- ].includes(e), P = (e) => [
31
- n.INPUT,
32
- n.INPUT_NUMBER,
33
- n.PASSWORD,
34
- n.TEXTAREA,
35
- n.SEARCH
36
- ].includes(e), T = (e) => [
37
- n.YEAR_PICKER,
38
- n.MONTH_PICKER,
39
- n.DATE_PICKER,
40
- n.DATES_PICKER,
41
- n.DATETIME_PICKER,
42
- n.WEEK_PICKER,
43
- n.DATETIMERANGE_PICKER,
44
- n.DATERANGE_PICKER,
45
- n.MONTHRANGE_PICKER
46
- ].includes(e);
1
+ import { FormCompEnum as E } from "../../utils/form-register.js";
2
+ import "@vueuse/core";
3
+ import "@vft/utils";
4
+ import "../config-provider/hooks/use-global-config.js";
5
+ import "vue";
6
+ import "lodash-es";
7
+ const i = (R) => [
8
+ E.DATETIMERANGE_PICKER,
9
+ E.DATERANGE_PICKER,
10
+ E.MONTHRANGE_PICKER
11
+ ].includes(R), C = (R) => [
12
+ E.INPUT,
13
+ E.INPUT_NUMBER,
14
+ E.PASSWORD,
15
+ E.TEXTAREA,
16
+ E.SEARCH
17
+ ].includes(R), o = (R) => [
18
+ E.YEAR_PICKER,
19
+ E.MONTH_PICKER,
20
+ E.DATE_PICKER,
21
+ E.DATES_PICKER,
22
+ E.DATETIME_PICKER,
23
+ E.WEEK_PICKER,
24
+ E.DATETIMERANGE_PICKER,
25
+ E.DATERANGE_PICKER,
26
+ E.MONTHRANGE_PICKER
27
+ ].includes(R);
47
28
  export {
48
- u as clearComponents,
49
- c as getComponent,
50
- A as getRegisteredComponents,
51
- i as hasComponent,
52
- T as isDatePicker,
53
- P as isInput,
54
- I as isRangePicker,
55
- R as registerComponent,
56
- s as registerComponents,
57
- C as removeComponent
29
+ o as isDatePicker,
30
+ C as isInput,
31
+ i as isRangePicker
58
32
  };
@@ -2,25 +2,18 @@ import "@vueuse/core";
2
2
  import "@vft/utils";
3
3
  import "../config-provider/hooks/use-global-config.js";
4
4
  import "vue";
5
- import { withInstall as o } from "../../utils/vue/install.js";
5
+ import { withInstall as r } from "../../utils/vue/install.js";
6
6
  import "lodash-es";
7
- import e from "./super-form.vue2.js";
8
- import { clearComponents as C, getComponent as c, getRegisteredComponents as l, hasComponent as u, isDatePicker as x, isInput as P, isRangePicker as d, registerComponent as h, registerComponents as k, removeComponent as D } from "./component-map.js";
9
- import { getDynamicProps as I, useForm as R } from "./use/use-form.js";
10
- const a = o(e);
7
+ import o from "./super-form.vue2.js";
8
+ import { isDatePicker as u, isInput as l, isRangePicker as x } from "./component-map.js";
9
+ import { getDynamicProps as g, useForm as k } from "./use/use-form.js";
10
+ const f = r(o);
11
11
  export {
12
- a as VftSuperForm,
13
- C as clearComponents,
14
- a as default,
15
- c as getComponent,
16
- I as getDynamicProps,
17
- l as getRegisteredComponents,
18
- u as hasComponent,
19
- x as isDatePicker,
20
- P as isInput,
21
- d as isRangePicker,
22
- h as registerComponent,
23
- k as registerComponents,
24
- D as removeComponent,
25
- R as useForm
12
+ f as VftSuperForm,
13
+ f as default,
14
+ g as getDynamicProps,
15
+ u as isDatePicker,
16
+ l as isInput,
17
+ x as isRangePicker,
18
+ k as useForm
26
19
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as Q, computed as v, ref as re, unref as c, useSlots as oe, createVNode as s, mergeProps as L, withDirectives as ie, vShow as ne, isVNode as le, createTextVNode as G, resolveComponent as V } from "vue";
1
+ import { defineComponent as Q, computed as v, ref as re, unref as c, useSlots as oe, createVNode as s, mergeProps as L, withDirectives as ie, vShow as ne, createTextVNode as G, isVNode as le, resolveComponent as V } from "vue";
2
2
  import "../alert/index.js";
3
3
  import "../avatar/index.js";
4
4
  import "../avatar-stack/index.js";
@@ -98,9 +98,9 @@ import "../md-container/index.js";
98
98
  import "../md-tabs/index.js";
99
99
  import "../md-vue-playground/index.js";
100
100
  import "../infinite-scroll/index.js";
101
+ import { FormCompEnum as e, getComponent as $ } from "../../utils/form-register.js";
101
102
  import "@vueuse/core";
102
103
  import "../config-provider/hooks/use-global-config.js";
103
- import { FormCompEnum as e } from "../../constants/key.js";
104
104
  import "lodash-es";
105
105
  import { useNamespace as de } from "../../hooks/use-namespace/index.js";
106
106
  import "../../hooks/use-model-toggle/index.js";
@@ -109,7 +109,7 @@ import "../../hooks/use-z-index/index.js";
109
109
  import "../message/index.js";
110
110
  import "../progress-i/index.js";
111
111
  import "./index.js";
112
- import { getComponent as $, isInput as he, isDatePicker as Ee, isRangePicker as Pe } from "./component-map.js";
112
+ import { isInput as he, isDatePicker as Ee, isRangePicker as Pe } from "./component-map.js";
113
113
  import { createPlaceholderMessage as Y } from "./use/helper.js";
114
114
  function q(o) {
115
115
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
@@ -5,11 +5,11 @@ import type { IconProps } from 'vft/es/components/icon';
5
5
  import type { RowProps } from 'vft/es/components/row';
6
6
  import type { ToolTipProps } from 'vft/es/components/tooltip';
7
7
  import type { ComponentSize } from 'vft/es/constants';
8
+ import type { Arrayable } from 'vft/es/utils';
9
+ import { FormCompEnum } from 'vft/es/utils';
8
10
  import type { InternalRuleItem, RuleItem } from 'async-validator';
9
11
  import type { ComponentPublicInstance, Ref, StyleValue, VNode } from 'vue';
10
- import type { Arrayable } from 'vft/es/utils';
11
12
  import type { Recordable } from '../types';
12
- import { FormCompEnum } from 'vft/es/constants';
13
13
  /** 按钮配置选项 */
14
14
  export type ButtonOptions = Partial<ButtonProps> & {
15
15
  btnText?: string;
@@ -1 +1,5 @@
1
-
1
+ import "@vueuse/core";
2
+ import "@vft/utils";
3
+ import "../config-provider/hooks/use-global-config.js";
4
+ import "vue";
5
+ import "lodash-es";
@@ -1,4 +1,4 @@
1
- import { FormCompEnum } from 'vft/es/constants';
1
+ import { FormCompEnum } from 'vft/es/utils';
2
2
  /**
3
3
  * @description 自动创建 placeholder
4
4
  * @example
@@ -1,7 +1,11 @@
1
- import { isNumber as n } from "@vft/utils";
2
- import { isInput as u } from "../component-map.js";
3
- import { FormCompEnum as r } from "../../../constants/key.js";
4
- function s(e, E = "") {
1
+ import { isNumber as i } from "@vft/utils";
2
+ import { isInput as n } from "../component-map.js";
3
+ import { FormCompEnum as r } from "../../../utils/form-register.js";
4
+ import "@vueuse/core";
5
+ import "../../config-provider/hooks/use-global-config.js";
6
+ import "vue";
7
+ import "lodash-es";
8
+ function A(e, E = "") {
5
9
  return E = (E || "").replace(":", "") || "", [
6
10
  r.INPUT,
7
11
  r.INPUT_NUMBER,
@@ -29,10 +33,10 @@ function s(e, E = "") {
29
33
  r.MONTHRANGE_PICKER
30
34
  ].includes(e) ? "请选择时间" : "";
31
35
  }
32
- function C(e, E) {
33
- return e && u(e) && E && n(E) ? `${E}` : E;
36
+ function t(e, E) {
37
+ return e && n(e) && E && i(E) ? `${E}` : E;
34
38
  }
35
39
  export {
36
- s as createPlaceholderMessage,
37
- C as handleInputNumberValue
40
+ A as createPlaceholderMessage,
41
+ t as handleInputNumberValue
38
42
  };
@@ -1,24 +1,28 @@
1
- import { watchEffect as u, unref as t, nextTick as m } from "vue";
2
- import { FormCompEnum as a } from "../../../constants/key.js";
3
- async function y({
4
- getSchema: c,
5
- getProps: s,
6
- formElRef: f,
7
- isInitedDefault: i
1
+ import { watchEffect as m, unref as t, nextTick as u } from "vue";
2
+ import { FormCompEnum as p } from "../../../utils/form-register.js";
3
+ import "@vueuse/core";
4
+ import "@vft/utils";
5
+ import "../../config-provider/hooks/use-global-config.js";
6
+ import "lodash-es";
7
+ async function w({
8
+ getSchema: n,
9
+ getProps: c,
10
+ formElRef: s,
11
+ isInitedDefault: f
8
12
  }) {
9
- u(async () => {
10
- if (t(i) || !t(s).autoFocusFirstItem)
13
+ m(async () => {
14
+ if (t(f) || !t(c).autoFocusFirstItem)
11
15
  return;
12
- await m();
13
- const r = t(c), o = t(f), e = o?.$el;
14
- if (!o || !e || !r || r.length === 0 || r[0].type !== a.INPUT)
16
+ await u();
17
+ const r = t(n), o = t(s), e = o?.$el;
18
+ if (!o || !e || !r || r.length === 0 || r[0].type !== p.INPUT)
15
19
  return;
16
- const n = e.querySelector(
20
+ const i = e.querySelector(
17
21
  ".vft-row:first-child input"
18
22
  );
19
- n && n?.focus();
23
+ i && i?.focus();
20
24
  });
21
25
  }
22
26
  export {
23
- y as useAutoFocus
27
+ w as useAutoFocus
24
28
  };