vft 0.0.411 → 0.0.413

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 (45) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  3. package/es/components/autocomplete/index.d.ts +6 -6
  4. package/es/components/button/index.d.ts +9 -9
  5. package/es/components/carousel/use-carousel.js +1 -1
  6. package/es/components/drawer/drawer.vue2.js +92 -98
  7. package/es/components/form/form-item.vue.d.ts +1 -1
  8. package/es/components/form/index.d.ts +30 -30
  9. package/es/components/input/input.vue2.js +4 -4
  10. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  11. package/es/components/popconfirm/index.d.ts +15 -15
  12. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  13. package/es/components/search/index.d.ts +3 -0
  14. package/es/components/search/search.vue.d.ts +1 -0
  15. package/es/components/search/search.vue2.js +22 -21
  16. package/es/components/select/index.d.ts +4 -4
  17. package/es/components/select/select.vue.d.ts +4 -4
  18. package/es/components/select/useSelect.d.ts +4 -4
  19. package/es/components/super-form/super-form-item.vue2.js +1 -1
  20. package/es/hooks/use-z-index/index.js +3 -3
  21. package/es/package.json.d.ts +1 -1
  22. package/es/package.json.js +1 -1
  23. package/es/utils/vue/vnode.js +1 -1
  24. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  25. package/lib/components/autocomplete/index.d.ts +6 -6
  26. package/lib/components/button/index.d.ts +9 -9
  27. package/lib/components/drawer/drawer.vue2.cjs +1 -1
  28. package/lib/components/form/form-item.vue.d.ts +1 -1
  29. package/lib/components/form/index.d.ts +30 -30
  30. package/lib/components/input/input.vue2.cjs +1 -1
  31. package/lib/components/popconfirm/index.d.ts +15 -15
  32. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  33. package/lib/components/search/index.d.ts +3 -0
  34. package/lib/components/search/search.vue.d.ts +1 -0
  35. package/lib/components/search/search.vue2.cjs +1 -1
  36. package/lib/components/select/index.d.ts +4 -4
  37. package/lib/components/select/select.vue.d.ts +4 -4
  38. package/lib/components/select/useSelect.d.ts +4 -4
  39. package/lib/package.json.cjs +1 -1
  40. package/lib/package.json.d.ts +1 -1
  41. package/package.json +5 -5
  42. package/theme-style/index.css +1 -1
  43. package/theme-style/src/drawer.scss +0 -12
  44. package/theme-style/vft-drawer.css +1 -1
  45. package/web-types.json +1 -1
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
62
62
  readonly strategy?: "fixed" | "absolute" | undefined;
63
63
  readonly effect?: "light" | "dark" | undefined;
64
64
  readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
65
- readonly visible?: boolean | undefined;
66
65
  readonly teleported?: boolean | undefined;
67
66
  readonly open?: boolean | undefined;
67
+ readonly visible?: boolean | undefined;
68
68
  readonly arrowOffset?: number | undefined;
69
69
  readonly gpuAcceleration?: boolean | undefined;
70
70
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
480
480
  readonly strategy?: "fixed" | "absolute" | undefined;
481
481
  readonly effect?: "light" | "dark" | undefined;
482
482
  readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
483
- readonly visible?: boolean | undefined;
484
483
  readonly teleported?: boolean | undefined;
485
484
  readonly open?: boolean | undefined;
485
+ readonly visible?: boolean | undefined;
486
486
  readonly arrowOffset?: number | undefined;
487
487
  readonly gpuAcceleration?: boolean | undefined;
488
488
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -86,9 +86,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
86
86
  readonly strategy?: "fixed" | "absolute" | undefined;
87
87
  readonly effect?: "light" | "dark" | undefined;
88
88
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
89
- readonly visible?: boolean | undefined;
90
89
  readonly teleported?: boolean | undefined;
91
90
  readonly open?: boolean | undefined;
91
+ readonly visible?: boolean | undefined;
92
92
  readonly arrowOffset?: number | undefined;
93
93
  readonly gpuAcceleration?: boolean | undefined;
94
94
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -504,9 +504,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
504
504
  readonly strategy?: "fixed" | "absolute" | undefined;
505
505
  readonly effect?: "light" | "dark" | undefined;
506
506
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
507
- readonly visible?: boolean | undefined;
508
507
  readonly teleported?: boolean | undefined;
509
508
  readonly open?: boolean | undefined;
509
+ readonly visible?: boolean | undefined;
510
510
  readonly arrowOffset?: number | undefined;
511
511
  readonly gpuAcceleration?: boolean | undefined;
512
512
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -1007,9 +1007,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
1007
1007
  readonly strategy?: "fixed" | "absolute" | undefined;
1008
1008
  readonly effect?: "light" | "dark" | undefined;
1009
1009
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1010
- readonly visible?: boolean | undefined;
1011
1010
  readonly teleported?: boolean | undefined;
1012
1011
  readonly open?: boolean | undefined;
1012
+ readonly visible?: boolean | undefined;
1013
1013
  readonly arrowOffset?: number | undefined;
1014
1014
  readonly gpuAcceleration?: boolean | undefined;
1015
1015
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -1425,9 +1425,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
1425
1425
  readonly strategy?: "fixed" | "absolute" | undefined;
1426
1426
  readonly effect?: "light" | "dark" | undefined;
1427
1427
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1428
- readonly visible?: boolean | undefined;
1429
1428
  readonly teleported?: boolean | undefined;
1430
1429
  readonly open?: boolean | undefined;
1430
+ readonly visible?: boolean | undefined;
1431
1431
  readonly arrowOffset?: number | undefined;
1432
1432
  readonly gpuAcceleration?: boolean | undefined;
1433
1433
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -1917,9 +1917,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
1917
1917
  readonly strategy?: "fixed" | "absolute" | undefined;
1918
1918
  readonly effect?: "light" | "dark" | undefined;
1919
1919
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1920
- readonly visible?: boolean | undefined;
1921
1920
  readonly teleported?: boolean | undefined;
1922
1921
  readonly open?: boolean | undefined;
1922
+ readonly visible?: boolean | undefined;
1923
1923
  readonly arrowOffset?: number | undefined;
1924
1924
  readonly gpuAcceleration?: boolean | undefined;
1925
1925
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -2335,9 +2335,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
2335
2335
  readonly strategy?: "fixed" | "absolute" | undefined;
2336
2336
  readonly effect?: "light" | "dark" | undefined;
2337
2337
  readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
2338
- readonly visible?: boolean | undefined;
2339
2338
  readonly teleported?: boolean | undefined;
2340
2339
  readonly open?: boolean | undefined;
2340
+ readonly visible?: boolean | undefined;
2341
2341
  readonly arrowOffset?: number | undefined;
2342
2342
  readonly gpuAcceleration?: boolean | undefined;
2343
2343
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
24
24
  autofocus: {
25
25
  type: import("vue").PropType<boolean>;
26
26
  };
27
- icon: {
28
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
29
- };
30
27
  dark: {
31
28
  type: import("vue").PropType<boolean>;
32
29
  };
30
+ icon: {
31
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
32
+ };
33
33
  loading: {
34
34
  type: import("vue").PropType<boolean>;
35
35
  };
@@ -114,12 +114,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
114
114
  autofocus: {
115
115
  type: import("vue").PropType<boolean>;
116
116
  };
117
- icon: {
118
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
119
- };
120
117
  dark: {
121
118
  type: import("vue").PropType<boolean>;
122
119
  };
120
+ icon: {
121
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
122
+ };
123
123
  loading: {
124
124
  type: import("vue").PropType<boolean>;
125
125
  };
@@ -199,12 +199,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
199
199
  autofocus: {
200
200
  type: import("vue").PropType<boolean>;
201
201
  };
202
- icon: {
203
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
204
- };
205
202
  dark: {
206
203
  type: import("vue").PropType<boolean>;
207
204
  };
205
+ icon: {
206
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
207
+ };
208
208
  loading: {
209
209
  type: import("vue").PropType<boolean>;
210
210
  };
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
11
11
  import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
12
12
  import "@popperjs/core";
13
13
  import "../../hooks/use-z-index/index.js";
14
- import { carouselContextKey as Se, CAROUSEL_ITEM_NAME as H } from "./constants.js";
14
+ import { CAROUSEL_ITEM_NAME as H, carouselContextKey as Se } from "./constants.js";
15
15
  const L = 300, ze = (t, O, M) => {
16
16
  const {
17
17
  children: o,
@@ -1,25 +1,25 @@
1
- import { defineComponent as w, getCurrentInstance as L, ref as B, computed as k, createBlock as T, openBlock as a, unref as e, withCtx as u, createVNode as f, Transition as O, withDirectives as N, createElementVNode as h, mergeProps as M, withModifiers as P, createElementBlock as r, createCommentVNode as d, normalizeClass as l, renderSlot as p, toDisplayString as q, vShow as H } from "vue";
2
- import { isBoolean as U } from "@vft/utils";
1
+ import { defineComponent as g, getCurrentInstance as L, ref as b, computed as k, createBlock as h, openBlock as l, unref as e, withCtx as d, createVNode as m, Transition as T, withDirectives as O, createElementVNode as w, mergeProps as N, withModifiers as M, createElementBlock as n, createCommentVNode as r, normalizeClass as a, renderSlot as i, toDisplayString as P, vShow as q } from "vue";
2
+ import { isBoolean as H } from "@vft/utils";
3
3
  import "../dialog/index.js";
4
- import j from "../focus-trap/focus-trap.vue.js";
4
+ import U from "../focus-trap/focus-trap.vue.js";
5
5
  import "../focus-trap/utils.js";
6
- import { VftIcon as G } from "../icon/index.js";
7
- import { VftOverlay as J } from "../overlay/index.js";
8
- import { UPDATE_MODEL_EVENT as K } from "../../constants/event.js";
6
+ import { VftIcon as j } from "../icon/index.js";
7
+ import { VftOverlay as G } from "../overlay/index.js";
8
+ import { UPDATE_MODEL_EVENT as J } from "../../constants/event.js";
9
9
  import "@vueuse/core";
10
- import { addUnit as Q } from "../../utils/helper.js";
10
+ import { addUnit as K } from "../../utils/helper.js";
11
11
  import "lodash-es";
12
12
  import "../form/index.js";
13
- import { useNamespace as W } from "../../hooks/use-namespace/index.js";
13
+ import { useNamespace as Q } from "../../hooks/use-namespace/index.js";
14
14
  import "../../hooks/use-model-toggle/index.js";
15
15
  import "@popperjs/core";
16
16
  import "../../hooks/use-z-index/index.js";
17
- import { VftTeleport as X } from "../teleport/index.js";
18
- import { useDialog as Y } from "../dialog/hooks/use-dialog.js";
19
- const Z = ["aria-label", "aria-labelledby", "aria-describedby"], _ = ["id"], x = ["id"], ee = w({
17
+ import { VftTeleport as W } from "../teleport/index.js";
18
+ import { useDialog as X } from "../dialog/hooks/use-dialog.js";
19
+ const Y = ["aria-label", "aria-labelledby", "aria-describedby"], Z = ["id"], _ = ["id"], x = g({
20
20
  name: "vft-drawer"
21
- }), Re = /* @__PURE__ */ w({
22
- ...ee,
21
+ }), Ae = /* @__PURE__ */ g({
22
+ ...x,
23
23
  props: {
24
24
  direction: { default: "rtl" },
25
25
  size: { default: "30%" },
@@ -50,7 +50,7 @@ const Z = ["aria-label", "aria-labelledby", "aria-describedby"], _ = ["id"], x =
50
50
  title: { default: "" }
51
51
  },
52
52
  emits: {
53
- [K]: (s) => U(s),
53
+ [J]: (s) => H(s),
54
54
  open: () => !0,
55
55
  opened: () => !0,
56
56
  close: () => !0,
@@ -58,128 +58,122 @@ const Z = ["aria-label", "aria-labelledby", "aria-describedby"], _ = ["id"], x =
58
58
  openAutoFocus: () => !0,
59
59
  closeAutoFocus: () => !0
60
60
  },
61
- setup(s, { expose: g }) {
62
- const t = W("drawer"), E = L(), c = B(), {
63
- afterEnter: z,
64
- afterLeave: A,
65
- beforeLeave: R,
66
- handleClose: n,
67
- onModalClick: V,
68
- close: oe,
69
- doClose: te,
70
- onOpenAutoFocus: le,
71
- onCloseAutoFocus: ae,
72
- onCloseRequested: D,
73
- onFocusoutPrevented: se,
74
- titleId: m,
75
- bodyId: b,
76
- closed: re,
77
- style: de,
78
- overlayDialogStyle: ne,
79
- rendered: F,
80
- visible: y,
81
- zIndex: I
82
- } = Y(E.props, c), v = B(), S = k(() => s.direction === "rtl" || s.direction === "ltr"), C = k(() => Q(s.size));
83
- return g({
84
- close: n
85
- }), (o, i) => (a(), T(e(X), {
61
+ setup(s, { expose: E }) {
62
+ const t = Q("drawer"), z = L(), u = b(), {
63
+ afterEnter: A,
64
+ afterLeave: R,
65
+ beforeLeave: V,
66
+ handleClose: f,
67
+ onModalClick: D,
68
+ close: ee,
69
+ doClose: oe,
70
+ onOpenAutoFocus: te,
71
+ onCloseAutoFocus: le,
72
+ onCloseRequested: F,
73
+ onFocusoutPrevented: ae,
74
+ titleId: c,
75
+ bodyId: y,
76
+ closed: se,
77
+ style: re,
78
+ overlayDialogStyle: de,
79
+ rendered: I,
80
+ visible: p,
81
+ zIndex: S
82
+ } = X(z.props, u), C = b(), $ = k(() => s.direction === "rtl" || s.direction === "ltr"), v = k(() => K(s.size));
83
+ return E({
84
+ close: f
85
+ }), (o, B) => (l(), h(e(W), {
86
86
  to: "body",
87
87
  disabled: !o.appendToBody
88
88
  }, {
89
- default: u(() => [
90
- f(O, {
89
+ default: d(() => [
90
+ m(T, {
91
91
  name: e(t).b("fade"),
92
- onAfterEnter: e(z),
93
- onAfterLeave: e(A),
94
- onBeforeLeave: e(R)
92
+ onAfterEnter: e(A),
93
+ onAfterLeave: e(R),
94
+ onBeforeLeave: e(V)
95
95
  }, {
96
- default: u(() => [
97
- N(f(e(J), {
96
+ default: d(() => [
97
+ O(m(e(G), {
98
98
  mask: o.modal,
99
99
  "overlay-class": o.modalClass,
100
- "z-index": e(I),
101
- onClick: e(V)
100
+ "z-index": e(S),
101
+ onClick: e(D)
102
102
  }, {
103
- default: u(() => [
104
- f(e(j), {
103
+ default: d(() => [
104
+ m(e(U), {
105
105
  loop: "",
106
- trapped: e(y),
107
- "focus-trap-el": c.value,
108
- "focus-start-el": v.value,
109
- onReleaseRequested: e(D)
106
+ trapped: e(p),
107
+ "focus-trap-el": u.value,
108
+ "focus-start-el": C.value,
109
+ onReleaseRequested: e(F)
110
110
  }, {
111
- default: u(() => [
112
- h("div", M({
111
+ default: d(() => [
112
+ w("div", N({
113
113
  ref_key: "drawerRef",
114
- ref: c,
114
+ ref: u,
115
115
  "aria-modal": "true",
116
116
  "aria-label": o.title || void 0,
117
- "aria-labelledby": o.title ? void 0 : e(m),
118
- "aria-describedby": e(b)
117
+ "aria-labelledby": o.title ? void 0 : e(c),
118
+ "aria-describedby": e(y)
119
119
  }, o.$attrs, {
120
- class: [e(t).b(), o.direction, e(y) && "open", o.customClass],
121
- style: S.value ? "width: " + C.value : "height: " + C.value,
120
+ class: [e(t).b(), o.direction, e(p) && "open", o.customClass],
121
+ style: $.value ? "width: " + v.value : "height: " + v.value,
122
122
  role: "dialog",
123
- onClick: i[1] || (i[1] = P(() => {
123
+ onClick: B[0] || (B[0] = M(() => {
124
124
  }, ["stop"]))
125
125
  }), [
126
- h("span", {
126
+ w("span", {
127
127
  ref_key: "focusStartRef",
128
- ref: v,
129
- class: l(e(t).e("sr-focus")),
128
+ ref: C,
129
+ class: a(e(t).e("sr-focus")),
130
130
  tabindex: "-1"
131
131
  }, null, 2),
132
- o.withHeader ? (a(), r("header", {
132
+ o.withHeader ? (l(), n("header", {
133
133
  key: 0,
134
- class: l(e(t).e("header"))
134
+ class: a(e(t).e("header"))
135
135
  }, [
136
- o.$slots.title ? p(o.$slots, "title", { key: 1 }) : p(o.$slots, "header", {
136
+ o.$slots.title ? i(o.$slots, "title", { key: 1 }) : i(o.$slots, "header", {
137
137
  key: 0,
138
- close: e(n),
139
- titleId: e(m),
138
+ close: e(f),
139
+ titleId: e(c),
140
140
  titleClass: e(t).e("title")
141
141
  }, () => [
142
- o.$slots.title ? d("", !0) : (a(), r("span", {
142
+ o.$slots.title ? r("", !0) : (l(), n("span", {
143
143
  key: 0,
144
- id: e(m),
144
+ id: e(c),
145
145
  role: "heading",
146
- class: l(e(t).e("title"))
147
- }, q(o.title), 11, _))
146
+ class: a(e(t).e("title"))
147
+ }, P(o.title), 11, Z))
148
148
  ]),
149
- o.showClose ? (a(), r("button", {
149
+ o.showClose ? (l(), h(e(j), {
150
150
  key: 2,
151
- class: l(e(t).e("close-btn")),
152
- type: "button",
153
- onClick: i[0] || (i[0] = //@ts-ignore
154
- (...$) => e(n) && e(n)(...$))
155
- }, [
156
- f(e(G), {
157
- icon: "icon-close",
158
- class: l(e(t).e("close"))
159
- }, null, 8, ["class"])
160
- ], 2)) : d("", !0)
161
- ], 2)) : d("", !0),
162
- e(F) ? (a(), r("div", {
151
+ onClick: e(f),
152
+ icon: "icon-close",
153
+ class: a(e(t).e("close"))
154
+ }, null, 8, ["onClick", "class"])) : r("", !0)
155
+ ], 2)) : r("", !0),
156
+ e(I) ? (l(), n("div", {
163
157
  key: 1,
164
- id: e(b),
165
- class: l(e(t).e("body"))
158
+ id: e(y),
159
+ class: a(e(t).e("body"))
166
160
  }, [
167
- p(o.$slots, "default")
168
- ], 10, x)) : d("", !0),
169
- o.$slots.footer ? (a(), r("div", {
161
+ i(o.$slots, "default")
162
+ ], 10, _)) : r("", !0),
163
+ o.$slots.footer ? (l(), n("div", {
170
164
  key: 2,
171
- class: l(e(t).e("footer"))
165
+ class: a(e(t).e("footer"))
172
166
  }, [
173
- p(o.$slots, "footer")
174
- ], 2)) : d("", !0)
175
- ], 16, Z)
167
+ i(o.$slots, "footer")
168
+ ], 2)) : r("", !0)
169
+ ], 16, Y)
176
170
  ]),
177
171
  _: 3
178
172
  }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
179
173
  ]),
180
174
  _: 3
181
175
  }, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
182
- [H, e(y)]
176
+ [q, e(p)]
183
177
  ])
184
178
  ]),
185
179
  _: 3
@@ -190,5 +184,5 @@ const Z = ["aria-label", "aria-labelledby", "aria-describedby"], _ = ["id"], x =
190
184
  }
191
185
  });
192
186
  export {
193
- Re as default
187
+ Ae as default
194
188
  };
@@ -32,10 +32,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
32
32
  }>>> & Readonly<{
33
33
  "onUpdate:error"?: ((val: string) => any) | undefined;
34
34
  }>, {
35
- required: boolean;
36
35
  labelWidth: string | number;
37
36
  inlineMessage: string | boolean;
38
37
  showMessage: boolean;
38
+ required: boolean;
39
39
  hideLabel: boolean;
40
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
41
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -206,10 +206,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
206
206
  prop: {
207
207
  type: import("vue").PropType<string | string[]>;
208
208
  };
209
- required: {
210
- type: import("vue").PropType<boolean>;
211
- default: undefined;
212
- };
213
209
  rules: {
214
210
  type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
215
211
  };
@@ -231,6 +227,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
231
227
  hideRequiredAsterisk: {
232
228
  type: import("vue").PropType<boolean>;
233
229
  };
230
+ required: {
231
+ type: import("vue").PropType<boolean>;
232
+ default: undefined;
233
+ };
234
234
  for: {
235
235
  type: import("vue").PropType<string>;
236
236
  };
@@ -253,10 +253,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
253
253
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
254
254
  "update:error": (val: string) => void;
255
255
  }, import("vue").PublicProps, {
256
- required: boolean;
257
256
  labelWidth: string | number;
258
257
  inlineMessage: string | boolean;
259
258
  showMessage: boolean;
259
+ required: boolean;
260
260
  hideLabel: boolean;
261
261
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
262
262
  P: {};
@@ -278,10 +278,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
278
278
  prop: {
279
279
  type: import("vue").PropType<string | string[]>;
280
280
  };
281
- required: {
282
- type: import("vue").PropType<boolean>;
283
- default: undefined;
284
- };
285
281
  rules: {
286
282
  type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
287
283
  };
@@ -303,6 +299,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
303
299
  hideRequiredAsterisk: {
304
300
  type: import("vue").PropType<boolean>;
305
301
  };
302
+ required: {
303
+ type: import("vue").PropType<boolean>;
304
+ default: undefined;
305
+ };
306
306
  for: {
307
307
  type: import("vue").PropType<string>;
308
308
  };
@@ -323,10 +323,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
323
323
  clearValidate: () => void;
324
324
  resetField: () => void;
325
325
  }, {}, {}, {}, {
326
- required: boolean;
327
326
  labelWidth: string | number;
328
327
  inlineMessage: string | boolean;
329
328
  showMessage: boolean;
329
+ required: boolean;
330
330
  hideLabel: boolean;
331
331
  }>;
332
332
  __isFragment?: never;
@@ -345,10 +345,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
345
345
  prop: {
346
346
  type: import("vue").PropType<string | string[]>;
347
347
  };
348
- required: {
349
- type: import("vue").PropType<boolean>;
350
- default: undefined;
351
- };
352
348
  rules: {
353
349
  type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
354
350
  };
@@ -370,6 +366,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
370
366
  hideRequiredAsterisk: {
371
367
  type: import("vue").PropType<boolean>;
372
368
  };
369
+ required: {
370
+ type: import("vue").PropType<boolean>;
371
+ default: undefined;
372
+ };
373
373
  for: {
374
374
  type: import("vue").PropType<string>;
375
375
  };
@@ -392,10 +392,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
392
392
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
393
393
  "update:error": (val: string) => void;
394
394
  }, string, {
395
- required: boolean;
396
395
  labelWidth: string | number;
397
396
  inlineMessage: string | boolean;
398
397
  showMessage: boolean;
398
+ required: boolean;
399
399
  hideLabel: boolean;
400
400
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
401
401
  $slots: {
@@ -423,10 +423,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
423
423
  prop: {
424
424
  type: import("vue").PropType<string | string[]>;
425
425
  };
426
- required: {
427
- type: import("vue").PropType<boolean>;
428
- default: undefined;
429
- };
430
426
  rules: {
431
427
  type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
432
428
  };
@@ -448,6 +444,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
448
444
  hideRequiredAsterisk: {
449
445
  type: import("vue").PropType<boolean>;
450
446
  };
447
+ required: {
448
+ type: import("vue").PropType<boolean>;
449
+ default: undefined;
450
+ };
451
451
  for: {
452
452
  type: import("vue").PropType<string>;
453
453
  };
@@ -470,10 +470,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
470
470
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
471
471
  "update:error": (val: string) => void;
472
472
  }, import("vue").PublicProps, {
473
- required: boolean;
474
473
  labelWidth: string | number;
475
474
  inlineMessage: string | boolean;
476
475
  showMessage: boolean;
476
+ required: boolean;
477
477
  hideLabel: boolean;
478
478
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
479
479
  P: {};
@@ -495,10 +495,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
495
495
  prop: {
496
496
  type: import("vue").PropType<string | string[]>;
497
497
  };
498
- required: {
499
- type: import("vue").PropType<boolean>;
500
- default: undefined;
501
- };
502
498
  rules: {
503
499
  type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
504
500
  };
@@ -520,6 +516,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
520
516
  hideRequiredAsterisk: {
521
517
  type: import("vue").PropType<boolean>;
522
518
  };
519
+ required: {
520
+ type: import("vue").PropType<boolean>;
521
+ default: undefined;
522
+ };
523
523
  for: {
524
524
  type: import("vue").PropType<string>;
525
525
  };
@@ -540,10 +540,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
540
540
  clearValidate: () => void;
541
541
  resetField: () => void;
542
542
  }, {}, {}, {}, {
543
- required: boolean;
544
543
  labelWidth: string | number;
545
544
  inlineMessage: string | boolean;
546
545
  showMessage: boolean;
546
+ required: boolean;
547
547
  hideLabel: boolean;
548
548
  }>;
549
549
  __isFragment?: never;
@@ -562,10 +562,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
562
562
  prop: {
563
563
  type: import("vue").PropType<string | string[]>;
564
564
  };
565
- required: {
566
- type: import("vue").PropType<boolean>;
567
- default: undefined;
568
- };
569
565
  rules: {
570
566
  type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
571
567
  };
@@ -587,6 +583,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
587
583
  hideRequiredAsterisk: {
588
584
  type: import("vue").PropType<boolean>;
589
585
  };
586
+ required: {
587
+ type: import("vue").PropType<boolean>;
588
+ default: undefined;
589
+ };
590
590
  for: {
591
591
  type: import("vue").PropType<string>;
592
592
  };
@@ -609,10 +609,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
609
609
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
610
610
  "update:error": (val: string) => void;
611
611
  }, string, {
612
- required: boolean;
613
612
  labelWidth: string | number;
614
613
  inlineMessage: string | boolean;
615
614
  showMessage: boolean;
615
+ required: boolean;
616
616
  hideLabel: boolean;
617
617
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
618
618
  $slots: {
@@ -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 { 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";
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";
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 } = et(), { inputId: Y } = tt(xe.props, {
88
+ }), { form: Ce, formItem: F } = at(), { inputId: Y } = ot(xe.props, {
89
89
  formItemContext: F
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", {
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", {
91
91
  icon: "icon-circle-close",
92
92
  size: 16
93
93
  })), te = l(() => Ce?.statusIcon ?? !1), I = l(() => F?.validateState || ""), ae = l(