vft 0.0.391 → 0.0.392

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/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 +163 -155
  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 +45 -4
  37. package/es/components/super-form/component-map.js +60 -30
  38. package/es/components/super-form/index.js +20 -12
  39. package/es/components/super-form/super-form-item.vue2.js +6 -7
  40. package/es/components/super-form/types.d.ts +3 -3
  41. package/es/components/super-form/types.js +1 -5
  42. package/es/components/super-form/use/helper.d.ts +3 -3
  43. package/es/components/super-form/use/helper.js +32 -37
  44. package/es/components/super-form/use/use-auto-focus.js +15 -19
  45. package/es/components/super-form/use/use-form-events.js +67 -70
  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 +22 -22
  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/index.js +1 -2
  54. package/es/package.json.d.ts +1 -1
  55. package/es/package.json.js +1 -1
  56. package/es/utils/index.d.ts +0 -1
  57. package/es/utils/index.js +71 -80
  58. package/es/utils/vue/vnode.js +1 -1
  59. package/lib/components/autocomplete/autocomplete.vue.d.ts +3 -3
  60. package/lib/components/autocomplete/index.d.ts +7 -7
  61. package/lib/components/button/button.vue.d.ts +1 -1
  62. package/lib/components/button/index.d.ts +12 -12
  63. package/lib/components/button/use-button.d.ts +1 -1
  64. package/lib/components/cascader/cascader.vue.d.ts +2 -2
  65. package/lib/components/checkbox/index.d.ts +27 -27
  66. package/lib/components/color-picker/index.d.ts +6 -6
  67. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
  68. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
  69. package/lib/components/date-picker/date-picker.d.ts +3 -3
  70. package/lib/components/date-picker/index.d.ts +6 -6
  71. package/lib/components/date-picker/panel-utils.d.ts +6 -6
  72. package/lib/components/date-picker/props/date-picker.d.ts +1 -1
  73. package/lib/components/date-picker/props/panel-date-pick.d.ts +1 -1
  74. package/lib/components/date-picker/props/panel-date-range.d.ts +1 -1
  75. package/lib/components/date-picker/props/shared.d.ts +1 -1
  76. package/lib/components/dropdown/index.d.ts +9 -9
  77. package/lib/components/form/index.d.ts +18 -18
  78. package/lib/components/index.cjs +1 -1
  79. package/lib/components/input/index.d.ts +5 -5
  80. package/lib/components/input/input.vue.d.ts +2 -2
  81. package/lib/components/input/input.vue2.cjs +1 -1
  82. package/lib/components/input-number/index.d.ts +1 -1
  83. package/lib/components/input-number/input-number.vue.d.ts +1 -1
  84. package/lib/components/input-tag/input-tag.vue.d.ts +4 -4
  85. package/lib/components/radio/index.d.ts +18 -18
  86. package/lib/components/search/index.d.ts +3 -3
  87. package/lib/components/search/search.vue.d.ts +1 -1
  88. package/lib/components/select/index.d.ts +2 -2
  89. package/lib/components/select/select.vue.d.ts +2 -2
  90. package/lib/components/slider/index.d.ts +1 -1
  91. package/lib/components/slider/slider.vue.d.ts +1 -1
  92. package/lib/components/super-form/component-map.cjs +1 -1
  93. package/lib/components/super-form/component-map.d.ts +45 -4
  94. package/lib/components/super-form/index.cjs +1 -1
  95. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  96. package/lib/components/super-form/types.cjs +1 -1
  97. package/lib/components/super-form/types.d.ts +3 -3
  98. package/lib/components/super-form/use/helper.cjs +1 -1
  99. package/lib/components/super-form/use/helper.d.ts +3 -3
  100. package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
  101. package/lib/components/super-form/use/use-form-events.cjs +1 -1
  102. package/lib/components/switch/index.d.ts +6 -6
  103. package/lib/components/table/index.d.ts +9 -9
  104. package/lib/components/table/table.vue2.cjs +1 -1
  105. package/lib/components/tabs/index.d.ts +2 -2
  106. package/lib/components/tabs/tabs.vue.d.ts +2 -2
  107. package/lib/components/time-picker/common/picker.vue.d.ts +2 -2
  108. package/lib/components/tree/tree-node.vue.d.ts +18 -18
  109. package/lib/index.cjs +1 -1
  110. package/lib/package.json.cjs +1 -1
  111. package/lib/package.json.d.ts +1 -1
  112. package/lib/utils/index.cjs +1 -1
  113. package/lib/utils/index.d.ts +0 -1
  114. package/package.json +3 -3
  115. package/web-types.json +1 -1
  116. package/es/utils/form-register.d.ts +0 -43
  117. package/es/utils/form-register.js +0 -68
  118. package/lib/utils/form-register.cjs +0 -1
  119. package/lib/utils/form-register.d.ts +0 -43
@@ -136,9 +136,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
136
136
  */
137
137
  onPick: (date?: any, visible?: boolean) => void;
138
138
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
139
- clear: (...args: any[]) => void;
140
139
  "update:modelValue": (...args: any[]) => void;
141
140
  change: (...args: any[]) => void;
141
+ clear: (...args: any[]) => void;
142
142
  blur: (...args: any[]) => void;
143
143
  focus: (...args: any[]) => void;
144
144
  keydown: (...args: any[]) => void;
@@ -238,9 +238,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
238
238
  };
239
239
  readonly isRange: BooleanConstructor;
240
240
  }>> & Readonly<{
241
- onClear?: ((...args: any[]) => any) | undefined;
242
241
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
243
242
  onChange?: ((...args: any[]) => any) | undefined;
243
+ onClear?: ((...args: any[]) => any) | undefined;
244
244
  onBlur?: ((...args: any[]) => any) | undefined;
245
245
  onFocus?: ((...args: any[]) => any) | undefined;
246
246
  onKeydown?: ((...args: any[]) => any) | undefined;
@@ -99,9 +99,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
99
99
  })>;
100
100
  TreeCheckbox: import("vft/es/utils").SFCWithInstall<{
101
101
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
102
- size: {
103
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
104
- };
105
102
  label: {
106
103
  type: import("vue").PropType<string | number>;
107
104
  };
@@ -120,6 +117,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
120
117
  id: {
121
118
  type: import("vue").PropType<string>;
122
119
  };
120
+ size: {
121
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
122
+ };
123
123
  modelValue: {
124
124
  type: import("vue").PropType<string | number | boolean>;
125
125
  };
@@ -161,9 +161,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
161
161
  M: {};
162
162
  Defaults: {};
163
163
  }, Readonly<import("vue").ExtractPropTypes<{
164
- size: {
165
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
166
- };
167
164
  label: {
168
165
  type: import("vue").PropType<string | number>;
169
166
  };
@@ -182,6 +179,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
182
179
  id: {
183
180
  type: import("vue").PropType<string>;
184
181
  };
182
+ size: {
183
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
184
+ };
185
185
  modelValue: {
186
186
  type: import("vue").PropType<string | number | boolean>;
187
187
  };
@@ -217,9 +217,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
217
217
  __isTeleport?: never;
218
218
  __isSuspense?: never;
219
219
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
220
- size: {
221
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
222
- };
223
220
  label: {
224
221
  type: import("vue").PropType<string | number>;
225
222
  };
@@ -238,6 +235,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
238
235
  id: {
239
236
  type: import("vue").PropType<string>;
240
237
  };
238
+ size: {
239
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
240
+ };
241
241
  modelValue: {
242
242
  type: import("vue").PropType<string | number | boolean>;
243
243
  };
@@ -448,9 +448,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
448
448
  });
449
449
  CheckboxGroup: {
450
450
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
451
- size: {
452
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
453
- };
454
451
  label: {
455
452
  type: import("vue").PropType<string>;
456
453
  };
@@ -460,6 +457,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
460
457
  fill: {
461
458
  type: import("vue").PropType<string>;
462
459
  };
460
+ size: {
461
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
462
+ };
463
463
  modelValue: {
464
464
  type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
465
465
  default: () => never[];
@@ -505,9 +505,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
505
505
  M: {};
506
506
  Defaults: {};
507
507
  }, Readonly<import("vue").ExtractPropTypes<{
508
- size: {
509
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
510
- };
511
508
  label: {
512
509
  type: import("vue").PropType<string>;
513
510
  };
@@ -517,6 +514,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
517
514
  fill: {
518
515
  type: import("vue").PropType<string>;
519
516
  };
517
+ size: {
518
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
519
+ };
520
520
  modelValue: {
521
521
  type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
522
522
  default: () => never[];
@@ -556,9 +556,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
556
556
  __isTeleport?: never;
557
557
  __isSuspense?: never;
558
558
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
559
- size: {
560
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
561
- };
562
559
  label: {
563
560
  type: import("vue").PropType<string>;
564
561
  };
@@ -568,6 +565,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
568
565
  fill: {
569
566
  type: import("vue").PropType<string>;
570
567
  };
568
+ size: {
569
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
570
+ };
571
571
  modelValue: {
572
572
  type: import("vue").PropType<import("vft/es/components/checkbox").CheckboxGroupValueType>;
573
573
  default: () => never[];
package/es/index.js CHANGED
@@ -126,7 +126,6 @@ export { ZINDEX_INJECTION_KEY, defaultInitialZIndex, useZIndex, zIndexContextKey
126
126
  export { useCalcInputWidth } from "./hooks/use-calc-input-width/index.js";
127
127
  export { useComposition } from "./hooks/use-composition/index.js";
128
128
  export { useFocusController } from "./hooks/use-focus-controller/index.js";
129
- export { FormCompEnum, clearComponents, getComponent, getRegisteredComponents, hasComponent, registerComponent, registerComponents, removeComponent } from "./utils/form-register.js";
130
129
  export { attemptFocus, focusNode, getSibling, isFocusable, isLeaf, isVisible, obtainAllFocusableElements, triggerEvent } from "./utils/dom/aria.js";
131
130
  export { getClientXY, getOffsetTop, getOffsetTopDistance, isInContainer } from "./utils/dom/position.js";
132
131
  export { getScrollBarWidth, getScrollContainer, isScroll, scrollIntoView } from "./utils/dom/scroll.js";
@@ -203,7 +202,7 @@ export { watermarkProps } from "./components/watermark/watermark.js";
203
202
  export { vLoading, createLoadingDirective } from "./components/loading/directive.js";
204
203
  export { Loading } from "./components/loading/service.js";
205
204
  export { messageDefaults, messageTypes } from "./components/message/types.js";
206
- export { isDatePicker, isInput, isRangePicker } from "./components/super-form/component-map.js";
205
+ export { FormCompEnum, clearComponents, getComponent, getRegisteredComponents, hasComponent, isDatePicker, isInput, isRangePicker, registerComponent, registerComponents, removeComponent } from "./components/super-form/component-map.js";
207
206
  export { getDynamicProps, useForm } from "./components/super-form/use/use-form.js";
208
207
 
209
208
 
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.391",
3
+ "version": "0.0.392",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.391";
1
+ const o = "0.0.392";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1,4 +1,3 @@
1
- export * from './form-register';
2
1
  export * from './dom';
3
2
  export * from './error';
4
3
  export * from './event';
package/es/utils/index.js CHANGED
@@ -1,82 +1,73 @@
1
- import { FormCompEnum as r, clearComponents as t, getComponent as s, getRegisteredComponents as n, hasComponent as i, registerComponent as p, registerComponents as l, removeComponent as m } from "./form-register.js";
2
- import { attemptFocus as f, focusNode as g, getSibling as d, isFocusable as C, isLeaf as c, isVisible as x, obtainAllFocusableElements as u, triggerEvent as h } from "./dom/aria.js";
3
- import { getClientXY as b, getOffsetTop as V, getOffsetTopDistance as P, isInContainer as S } from "./dom/position.js";
4
- import { getScrollBarWidth as y, getScrollContainer as E, isScroll as I, scrollIntoView as T } from "./dom/scroll.js";
5
- import { debugWarn as N, throwError as z } from "./error.js";
6
- import { composeEventHandlers as O, whenMouse as R } from "./event.js";
7
- import { addUnit as D, castArray as W, getComponentSize as k, getSizeType as q, isValidComponentSize as H, unique as K } from "./helper.js";
8
- import { cssVarValue as M, generateCssVars as U, primaryColor as X, setCssVar as Y, setPrimaryColorCssvars as j } from "./ns-cover.js";
9
- import { mutable as J } from "./typescript.js";
10
- import { escapeStringRegexp as Z } from "./vue/data-helper.js";
11
- import { withInstall as $, withInstallDirective as ee, withInstallFunction as oe, withNoopInstall as re } from "./vue/install.js";
12
- import { buildProp as se, buildProps as ne, definePropType as ie, epPropKey as pe, isEpProp as le } from "./vue/props/runtime.js";
13
- import { cAF as ae, rAF as fe } from "./vue/raf.js";
14
- import { composeRefs as de } from "./vue/refs.js";
15
- import { PatchFlags as ce, ensureOnlyChild as xe, flattedChildren as ue, getFirstValidNode as he, getNormalizedProps as Fe, isComment as be, isFragment as Ve, isTemplate as Pe, isText as Se, isValidElementNode as we, renderBlock as ye, renderIf as Ee } from "./vue/vnode.js";
1
+ import { attemptFocus as o, focusNode as t, getSibling as s, isFocusable as i, isLeaf as l, isVisible as n, obtainAllFocusableElements as a, triggerEvent as p } from "./dom/aria.js";
2
+ import { getClientXY as f, getOffsetTop as d, getOffsetTopDistance as c, isInContainer as g } from "./dom/position.js";
3
+ import { getScrollBarWidth as u, getScrollContainer as C, isScroll as h, scrollIntoView as b } from "./dom/scroll.js";
4
+ import { debugWarn as V, throwError as P } from "./error.js";
5
+ import { composeEventHandlers as w, whenMouse as y } from "./event.js";
6
+ import { addUnit as E, castArray as T, getComponentSize as N, getSizeType as v, isValidComponentSize as z, unique as A } from "./helper.js";
7
+ import { cssVarValue as B, generateCssVars as D, primaryColor as R, setCssVar as W, setPrimaryColorCssvars as k } from "./ns-cover.js";
8
+ import { mutable as H } from "./typescript.js";
9
+ import { escapeStringRegexp as L } from "./vue/data-helper.js";
10
+ import { withInstall as U, withInstallDirective as X, withInstallFunction as Y, withNoopInstall as j } from "./vue/install.js";
11
+ import { buildProp as J, buildProps as Q, definePropType as Z, epPropKey as _, isEpProp as $ } from "./vue/props/runtime.js";
12
+ import { cAF as re, rAF as oe } from "./vue/raf.js";
13
+ import { composeRefs as se } from "./vue/refs.js";
14
+ import { PatchFlags as le, ensureOnlyChild as ne, flattedChildren as ae, getFirstValidNode as pe, getNormalizedProps as me, isComment as fe, isFragment as de, isTemplate as ce, isText as ge, isValidElementNode as xe, renderBlock as ue, renderIf as Ce } from "./vue/vnode.js";
16
15
  export {
17
- r as FormCompEnum,
18
- ce as PatchFlags,
19
- D as addUnit,
20
- f as attemptFocus,
21
- se as buildProp,
22
- ne as buildProps,
23
- ae as cAF,
24
- W as castArray,
25
- t as clearComponents,
26
- O as composeEventHandlers,
27
- de as composeRefs,
28
- M as cssVarValue,
29
- N as debugWarn,
30
- ie as definePropType,
31
- xe as ensureOnlyChild,
32
- pe as epPropKey,
33
- Z as escapeStringRegexp,
34
- ue as flattedChildren,
35
- g as focusNode,
36
- U as generateCssVars,
37
- b as getClientXY,
38
- s as getComponent,
39
- k as getComponentSize,
40
- he as getFirstValidNode,
41
- Fe as getNormalizedProps,
42
- V as getOffsetTop,
43
- P as getOffsetTopDistance,
44
- n as getRegisteredComponents,
45
- y as getScrollBarWidth,
46
- E as getScrollContainer,
47
- d as getSibling,
48
- q as getSizeType,
49
- i as hasComponent,
50
- be as isComment,
51
- le as isEpProp,
52
- C as isFocusable,
53
- Ve as isFragment,
54
- S as isInContainer,
55
- c as isLeaf,
56
- I as isScroll,
57
- Pe as isTemplate,
58
- Se as isText,
59
- H as isValidComponentSize,
60
- we as isValidElementNode,
61
- x as isVisible,
62
- J as mutable,
63
- u as obtainAllFocusableElements,
64
- X as primaryColor,
65
- fe as rAF,
66
- p as registerComponent,
67
- l as registerComponents,
68
- m as removeComponent,
69
- ye as renderBlock,
70
- Ee as renderIf,
71
- T as scrollIntoView,
72
- Y as setCssVar,
73
- j as setPrimaryColorCssvars,
74
- z as throwError,
75
- h as triggerEvent,
76
- K as unique,
77
- R as whenMouse,
78
- $ as withInstall,
79
- ee as withInstallDirective,
80
- oe as withInstallFunction,
81
- re as withNoopInstall
16
+ le as PatchFlags,
17
+ E as addUnit,
18
+ o as attemptFocus,
19
+ J as buildProp,
20
+ Q as buildProps,
21
+ re as cAF,
22
+ T as castArray,
23
+ w as composeEventHandlers,
24
+ se as composeRefs,
25
+ B as cssVarValue,
26
+ V as debugWarn,
27
+ Z as definePropType,
28
+ ne as ensureOnlyChild,
29
+ _ as epPropKey,
30
+ L as escapeStringRegexp,
31
+ ae as flattedChildren,
32
+ t as focusNode,
33
+ D as generateCssVars,
34
+ f as getClientXY,
35
+ N as getComponentSize,
36
+ pe as getFirstValidNode,
37
+ me as getNormalizedProps,
38
+ d as getOffsetTop,
39
+ c as getOffsetTopDistance,
40
+ u as getScrollBarWidth,
41
+ C as getScrollContainer,
42
+ s as getSibling,
43
+ v as getSizeType,
44
+ fe as isComment,
45
+ $ as isEpProp,
46
+ i as isFocusable,
47
+ de as isFragment,
48
+ g as isInContainer,
49
+ l as isLeaf,
50
+ h as isScroll,
51
+ ce as isTemplate,
52
+ ge as isText,
53
+ z as isValidComponentSize,
54
+ xe as isValidElementNode,
55
+ n as isVisible,
56
+ H as mutable,
57
+ a as obtainAllFocusableElements,
58
+ R as primaryColor,
59
+ oe as rAF,
60
+ ue as renderBlock,
61
+ Ce as renderIf,
62
+ b as scrollIntoView,
63
+ W as setCssVar,
64
+ k as setPrimaryColorCssvars,
65
+ P as throwError,
66
+ p as triggerEvent,
67
+ A as unique,
68
+ y as whenMouse,
69
+ U as withInstall,
70
+ X as withInstallDirective,
71
+ Y as withInstallFunction,
72
+ j as withNoopInstall
82
73
  };
@@ -1,4 +1,4 @@
1
- import { hasOwn as m, camelize as N, isArray as E } from "@vft/utils";
1
+ import { isArray as E, hasOwn as m, camelize as N } from "@vft/utils";
2
2
  import { isVNode as o, Fragment as S, Comment as A, Text as s, createCommentVNode as L, createBlock as _, openBlock as C } from "vue";
3
3
  import { debugWarn as O } from "../error.js";
4
4
  const R = "utils/vue/vnode";
@@ -889,19 +889,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
889
889
  /** @description highlight an item in a suggestion */
890
890
  highlight: (index: number) => void;
891
891
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
892
- input: (value: string) => void;
893
892
  select: (item: Record<string, any>) => void;
894
- clear: () => void;
895
893
  "update:modelValue": (value: string) => void;
896
894
  change: (value: string) => void;
895
+ input: (value: string) => void;
896
+ clear: () => void;
897
897
  blur: (evt: FocusEvent) => void;
898
898
  focus: (evt: FocusEvent) => void;
899
899
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AutocompleteProps>>> & Readonly<{
900
900
  onInput?: ((value: string) => any) | undefined;
901
901
  onSelect?: ((item: Record<string, any>) => any) | undefined;
902
- onClear?: (() => any) | undefined;
903
902
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
904
903
  onChange?: ((value: string) => any) | undefined;
904
+ onClear?: (() => any) | undefined;
905
905
  onBlur?: ((evt: FocusEvent) => any) | undefined;
906
906
  onFocus?: ((evt: FocusEvent) => any) | undefined;
907
907
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -51,9 +51,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
51
51
  }>> & Readonly<{
52
52
  onInput?: ((value: string) => any) | undefined;
53
53
  onSelect?: ((item: Record<string, any>) => any) | undefined;
54
- onClear?: (() => any) | undefined;
55
54
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
55
  onChange?: ((value: string) => any) | undefined;
56
+ onClear?: (() => any) | undefined;
57
57
  onBlur?: ((evt: FocusEvent) => any) | undefined;
58
58
  onFocus?: ((evt: FocusEvent) => any) | undefined;
59
59
  }>, {
@@ -906,11 +906,11 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
906
906
  close: () => void;
907
907
  highlight: (index: number) => void;
908
908
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
909
- input: (value: string) => void;
910
909
  select: (item: Record<string, any>) => void;
911
- clear: () => void;
912
910
  "update:modelValue": (value: string) => void;
913
911
  change: (value: string) => void;
912
+ input: (value: string) => void;
913
+ clear: () => void;
914
914
  blur: (evt: FocusEvent) => void;
915
915
  focus: (evt: FocusEvent) => void;
916
916
  }, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
@@ -972,9 +972,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
972
972
  }>> & Readonly<{
973
973
  onInput?: ((value: string) => any) | undefined;
974
974
  onSelect?: ((item: Record<string, any>) => any) | undefined;
975
- onClear?: (() => any) | undefined;
976
975
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
977
976
  onChange?: ((value: string) => any) | undefined;
977
+ onClear?: (() => any) | undefined;
978
978
  onBlur?: ((evt: FocusEvent) => any) | undefined;
979
979
  onFocus?: ((evt: FocusEvent) => any) | undefined;
980
980
  }>, {
@@ -1882,9 +1882,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
1882
1882
  }>> & Readonly<{
1883
1883
  onInput?: ((value: string) => any) | undefined;
1884
1884
  onSelect?: ((item: Record<string, any>) => any) | undefined;
1885
- onClear?: (() => any) | undefined;
1886
1885
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1887
1886
  onChange?: ((value: string) => any) | undefined;
1887
+ onClear?: (() => any) | undefined;
1888
1888
  onBlur?: ((evt: FocusEvent) => any) | undefined;
1889
1889
  onFocus?: ((evt: FocusEvent) => any) | undefined;
1890
1890
  }>, {
@@ -2737,11 +2737,11 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
2737
2737
  close: () => void;
2738
2738
  highlight: (index: number) => void;
2739
2739
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2740
- input: (value: string) => void;
2741
2740
  select: (item: Record<string, any>) => void;
2742
- clear: () => void;
2743
2741
  "update:modelValue": (value: string) => void;
2744
2742
  change: (value: string) => void;
2743
+ input: (value: string) => void;
2744
+ clear: () => void;
2745
2745
  blur: (evt: FocusEvent) => void;
2746
2746
  focus: (evt: FocusEvent) => void;
2747
2747
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -11,7 +11,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
11
11
  }>>, {
12
12
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
13
13
  size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
14
- type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
14
+ type: import("vue").ComputedRef<"text" | "" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
15
15
  disabled: import("vue").ComputedRef<boolean>;
16
16
  shouldAddSpace: import("vue").ComputedRef<boolean>;
17
17
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,8 +1,5 @@
1
1
  export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
2
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
3
- size: {
4
- type: import("vue").PropType<import("../types").ComponentSize>;
5
- };
6
3
  link: {
7
4
  type: import("vue").PropType<boolean>;
8
5
  };
@@ -24,6 +21,9 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
24
21
  autofocus: {
25
22
  type: import("vue").PropType<boolean>;
26
23
  };
24
+ size: {
25
+ type: import("vue").PropType<import("../types").ComponentSize>;
26
+ };
27
27
  icon: {
28
28
  type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
29
29
  };
@@ -72,7 +72,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
72
72
  }>, {
73
73
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
74
74
  size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
75
- type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
75
+ type: import("vue").ComputedRef<"text" | "" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
76
76
  disabled: import("vue").ComputedRef<boolean>;
77
77
  shouldAddSpace: import("vue").ComputedRef<boolean>;
78
78
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -90,9 +90,6 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
90
90
  M: {};
91
91
  Defaults: {};
92
92
  }, Readonly<import("vue").ExtractPropTypes<{
93
- size: {
94
- type: import("vue").PropType<import("../types").ComponentSize>;
95
- };
96
93
  link: {
97
94
  type: import("vue").PropType<boolean>;
98
95
  };
@@ -114,6 +111,9 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
114
111
  autofocus: {
115
112
  type: import("vue").PropType<boolean>;
116
113
  };
114
+ size: {
115
+ type: import("vue").PropType<import("../types").ComponentSize>;
116
+ };
117
117
  icon: {
118
118
  type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
119
119
  };
@@ -162,7 +162,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
162
162
  }>, {
163
163
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
164
164
  size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
165
- type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
165
+ type: import("vue").ComputedRef<"text" | "" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
166
166
  disabled: import("vue").ComputedRef<boolean>;
167
167
  shouldAddSpace: import("vue").ComputedRef<boolean>;
168
168
  }, {}, {}, {}, {
@@ -175,9 +175,6 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
175
175
  __isTeleport?: never;
176
176
  __isSuspense?: never;
177
177
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
178
- size: {
179
- type: import("vue").PropType<import("../types").ComponentSize>;
180
- };
181
178
  link: {
182
179
  type: import("vue").PropType<boolean>;
183
180
  };
@@ -199,6 +196,9 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
199
196
  autofocus: {
200
197
  type: import("vue").PropType<boolean>;
201
198
  };
199
+ size: {
200
+ type: import("vue").PropType<import("../types").ComponentSize>;
201
+ };
202
202
  icon: {
203
203
  type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
204
204
  };
@@ -247,7 +247,7 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
247
247
  }>, {
248
248
  ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
249
249
  size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
250
- type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
250
+ type: import("vue").ComputedRef<"text" | "" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
251
251
  disabled: import("vue").ComputedRef<boolean>;
252
252
  shouldAddSpace: import("vue").ComputedRef<boolean>;
253
253
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -13,7 +13,7 @@ export declare const useButton: (props: ButtonProps, emit: any) => {
13
13
  }>;
14
14
  _disabled: import("vue").ComputedRef<boolean>;
15
15
  _size: import("vue").ComputedRef<import("vft/es/constants").ComponentSize>;
16
- _type: import("vue").ComputedRef<"" | "text" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
16
+ _type: import("vue").ComputedRef<"text" | "" | "default" | "success" | "warning" | "info" | "danger" | "primary">;
17
17
  _ref: import("vue").Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
18
18
  shouldAddSpace: import("vue").ComputedRef<boolean>;
19
19
  handleClick: (evt: MouseEvent) => void;
@@ -98,9 +98,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
98
98
  */
99
99
  presentText: ComputedRef<string>;
100
100
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
101
- clear: () => void;
102
101
  "update:modelValue": (value: CascaderValue | null | undefined) => void;
103
102
  change: (value: CascaderValue | null | undefined) => void;
103
+ clear: () => void;
104
104
  blur: (evt: FocusEvent) => void;
105
105
  focus: (evt: FocusEvent) => void;
106
106
  visibleChange: (val: boolean) => void;
@@ -170,9 +170,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
170
170
  options: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("vft/es/components/cascader-panel").CascaderOption[]) | (() => import("vft/es/components/cascader-panel").CascaderOption[]) | (((new (...args: any[]) => import("vft/es/components/cascader-panel").CascaderOption[]) | (() => import("vft/es/components/cascader-panel").CascaderOption[])) | null)[], unknown, unknown, () => import("vft/es/components/cascader-panel").CascaderOption[], boolean>;
171
171
  props: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("vft/es/components/cascader-panel").CascaderProps) | (() => import("vft/es/components/cascader-panel").CascaderProps) | (((new (...args: any[]) => import("vft/es/components/cascader-panel").CascaderProps) | (() => import("vft/es/components/cascader-panel").CascaderProps)) | null)[], unknown, unknown, () => import("vft/es/components/cascader-panel").CascaderProps, boolean>;
172
172
  }>> & Readonly<{
173
- onClear?: (() => any) | undefined;
174
173
  "onUpdate:modelValue"?: ((value: CascaderValue | null | undefined) => any) | undefined;
175
174
  onChange?: ((value: CascaderValue | null | undefined) => any) | undefined;
175
+ onClear?: (() => any) | undefined;
176
176
  onBlur?: ((evt: FocusEvent) => any) | undefined;
177
177
  onFocus?: ((evt: FocusEvent) => any) | undefined;
178
178
  onVisibleChange?: ((val: boolean) => any) | undefined;