vft 0.0.128 → 0.0.129

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 (162) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/backtop/backtop.vue2.js +21 -21
  3. package/es/components/button/button.vue2.js +1 -1
  4. package/es/components/button/use-button.js +3 -3
  5. package/es/components/color-picker/color-picker.vue2.js +2 -2
  6. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +33 -33
  7. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +26 -26
  8. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +13 -13
  9. package/es/components/date-time-select/date-time-select.vue2.js +3 -3
  10. package/es/components/dialog/dialog-content.vue2.js +1 -1
  11. package/es/components/drawer/drawer.vue2.js +9 -9
  12. package/es/components/dropdown/dropdown.vue2.js +1 -1
  13. package/es/components/full-screen/full-screen.vue2.js +11 -11
  14. package/es/components/icon/icon.vue2.js +3 -1
  15. package/es/components/icon-text/icon-text.vue2.js +22 -22
  16. package/es/components/image-viewer/image-viewer.vue2.js +35 -35
  17. package/es/components/index.js +113 -113
  18. package/es/components/input/input.vue2.js +37 -33
  19. package/es/components/input-number/input-number.vue2.js +25 -25
  20. package/es/components/list-cell/list-cell.vue2.js +14 -14
  21. package/es/components/md-code-demo/md-code-demo.js +3 -3
  22. package/es/components/md-container/md-container.vue2.js +13 -13
  23. package/es/components/md-vue-playground/md-vue-playground.vue2.js +8 -8
  24. package/es/components/menu/menu.vue2.js +1 -1
  25. package/es/components/menu/sub-menu.vue2.js +2 -2
  26. package/es/components/message/message.vue2.js +4 -4
  27. package/es/components/multiple-tabs/use/use-tab-dropdown.js +10 -10
  28. package/es/components/pagination/components/next.vue2.js +5 -5
  29. package/es/components/pagination/components/pager.vue2.js +40 -40
  30. package/es/components/pagination/components/prev.vue2.js +5 -5
  31. package/es/components/popconfirm/popconfirm.vue2.js +1 -1
  32. package/es/components/progress/progress.vue2.js +13 -13
  33. package/es/components/search/search.vue2.js +1 -1
  34. package/es/components/select/select.vue.js +1 -1
  35. package/es/components/select/useSelect.js +1 -1
  36. package/es/components/side-menu/side-menu.vue2.js +24 -24
  37. package/es/components/skeleton/skeleton-item.vue2.js +5 -5
  38. package/es/components/switch/switch.vue2.js +1 -1
  39. package/es/components/tabs/tabs.vue2.js +4 -4
  40. package/es/components/tag/tag.vue2.js +1 -1
  41. package/es/components/time-picker/common/picker.vue2.js +1 -1
  42. package/es/components/time-picker/common/props.js +1 -1
  43. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +2 -2
  44. package/es/components/tree/tree-node.vue.js +9 -9
  45. package/es/components/upload/upload-list.vue2.js +33 -33
  46. package/es/index.js +113 -113
  47. package/es/package.json.js +1 -1
  48. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  49. package/lib/components/button/button.vue2.cjs +1 -1
  50. package/lib/components/button/use-button.cjs +1 -1
  51. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  52. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  53. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  54. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  55. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  56. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  57. package/lib/components/drawer/drawer.vue2.cjs +1 -1
  58. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  59. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  60. package/lib/components/icon/icon.vue2.cjs +1 -1
  61. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  62. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  63. package/lib/components/index.cjs +1 -1
  64. package/lib/components/input/input.vue2.cjs +1 -1
  65. package/lib/components/input-number/input-number.vue2.cjs +1 -1
  66. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  67. package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
  68. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  69. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  70. package/lib/components/menu/menu.vue2.cjs +1 -1
  71. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  72. package/lib/components/message/message.vue2.cjs +1 -1
  73. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  74. package/lib/components/pagination/components/next.vue2.cjs +1 -1
  75. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  76. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  77. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  78. package/lib/components/progress/progress.vue2.cjs +2 -2
  79. package/lib/components/search/search.vue2.cjs +1 -1
  80. package/lib/components/select/select.vue.cjs +1 -1
  81. package/lib/components/select/useSelect.cjs +1 -1
  82. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  83. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  84. package/lib/components/switch/switch.vue2.cjs +1 -1
  85. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  86. package/lib/components/tag/tag.vue2.cjs +1 -1
  87. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  88. package/lib/components/time-picker/common/props.cjs +1 -1
  89. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  90. package/lib/components/tree/tree-node.vue.cjs +1 -1
  91. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  92. package/lib/index.cjs +1 -1
  93. package/lib/package.json.cjs +1 -1
  94. package/package.json +2 -2
  95. package/theme-style/index.css +1 -1
  96. package/theme-style/src/backtop.scss +4 -0
  97. package/theme-style/src/button.scss +4 -0
  98. package/theme-style/src/color-picker.scss +3 -0
  99. package/theme-style/src/common/icon.scss +65 -0
  100. package/theme-style/src/common/var.scss +4 -0
  101. package/theme-style/src/date-picker/date-picker.scss +14 -0
  102. package/theme-style/src/date-picker/time-picker.scss +4 -0
  103. package/theme-style/src/date-picker.scss +1 -0
  104. package/theme-style/src/date-time-select.scss +8 -1
  105. package/theme-style/src/dialog.scss +2 -0
  106. package/theme-style/src/drawer.scss +2 -0
  107. package/theme-style/src/dropdown.scss +2 -0
  108. package/theme-style/src/full-screen.scss +8 -1
  109. package/theme-style/src/icon-text.scss +4 -0
  110. package/theme-style/src/image-viewer.scss +19 -1
  111. package/theme-style/src/input-number.scss +9 -0
  112. package/theme-style/src/input.scss +22 -0
  113. package/theme-style/src/list-cell.scss +2 -0
  114. package/theme-style/src/md-container.scss +28 -0
  115. package/theme-style/src/menu.scss +11 -4
  116. package/theme-style/src/message.scss +10 -0
  117. package/theme-style/src/mixins/icon.scss +52 -0
  118. package/theme-style/src/mixins/mixins.scss +1 -0
  119. package/theme-style/src/multiple-tabs.scss +22 -0
  120. package/theme-style/src/pagination.scss +15 -0
  121. package/theme-style/src/popconfirm.scss +4 -0
  122. package/theme-style/src/progress.scss +16 -0
  123. package/theme-style/src/select.scss +3 -0
  124. package/theme-style/src/side-menu.scss +4 -0
  125. package/theme-style/src/skeleton-item.scss +5 -0
  126. package/theme-style/src/switch.scss +4 -0
  127. package/theme-style/src/tabs.scss +7 -0
  128. package/theme-style/src/tag.scss +2 -0
  129. package/theme-style/src/tree.scss +7 -0
  130. package/theme-style/src/upload.scss +25 -4
  131. package/theme-style/vft-backtop.css +1 -1
  132. package/theme-style/vft-button.css +1 -1
  133. package/theme-style/vft-color-picker.css +1 -1
  134. package/theme-style/vft-date-picker.css +1 -1
  135. package/theme-style/vft-date-time-select.css +1 -1
  136. package/theme-style/vft-dialog.css +1 -1
  137. package/theme-style/vft-drawer.css +1 -1
  138. package/theme-style/vft-dropdown.css +1 -1
  139. package/theme-style/vft-full-screen.css +1 -1
  140. package/theme-style/vft-icon-text.css +1 -1
  141. package/theme-style/vft-image-viewer.css +1 -1
  142. package/theme-style/vft-input-number.css +1 -1
  143. package/theme-style/vft-input.css +1 -1
  144. package/theme-style/vft-list-cell.css +1 -1
  145. package/theme-style/vft-md-container.css +1 -1
  146. package/theme-style/vft-menu.css +1 -1
  147. package/theme-style/vft-message.css +1 -1
  148. package/theme-style/vft-multiple-tabs.css +1 -1
  149. package/theme-style/vft-pagination.css +1 -1
  150. package/theme-style/vft-popconfirm.css +1 -1
  151. package/theme-style/vft-progress.css +1 -1
  152. package/theme-style/vft-select.css +1 -1
  153. package/theme-style/vft-side-menu.css +1 -1
  154. package/theme-style/vft-skeleton-item.css +1 -1
  155. package/theme-style/vft-switch.css +1 -1
  156. package/theme-style/vft-tabs.css +1 -1
  157. package/theme-style/vft-tag.css +1 -1
  158. package/theme-style/vft-time-picker.css +1 -1
  159. package/theme-style/vft-time-select.css +1 -1
  160. package/theme-style/vft-tree.css +1 -1
  161. package/theme-style/vft-upload.css +1 -1
  162. package/web-types.json +1 -1
@@ -84,45 +84,45 @@ import { VftMdTabs as ye } from "./md-tabs/index.js";
84
84
  import { VftMdVuePlayground as _e } from "./md-vue-playground/index.js";
85
85
  import { VftLoading as Ke } from "./loading/index.js";
86
86
  import { VftMessage as ve, VftMessage as Re } from "./message/index.js";
87
- import { buttonGroupContextKey as Oe } from "./button/constants.js";
88
- import { checkboxGroupContextKey as ze } from "./checkbox/constants.js";
89
- import { configProviderContextKey as he, messageConfig as Ue } from "./config-provider/constants.js";
90
- import { provideGlobalConfig as He, useGlobalComponentSettings as qe, useGlobalConfig as Je } from "./config-provider/hooks/use-global-config.js";
91
- import { ROOT_PICKER_INJECTION_KEY as je, datePickerConfig as Qe } from "./date-picker/constants.js";
92
- import { datePickerProps as Xe } from "./date-picker/props/date-picker.js";
93
- import { dialogInjectionKey as $e } from "./dialog/constants.js";
94
- import { useDialog as rt } from "./dialog/hooks/use-dialog.js";
95
- import { DROPDOWN_INJECTION_KEY as tt } from "./dropdown/tokens.js";
96
- import { EmptyEnum as mt } from "./empty/constants.js";
97
- import { formContextKey as xt, formItemContextKey as at } from "./form/constants.js";
98
- import { useDisabled as nt, useFormDisabled as Vt, useFormSize as st, useSize as ut } from "./form/hooks/use-form-common-props.js";
99
- import { useFormItem as lt, useFormItemInputId as ct } from "./form/hooks/use-form-item.js";
100
- import { formItemValidateStates as It } from "./form/types.js";
101
- import { MenuTypeEnum as Dt } from "./horizontal-menu/constants.js";
102
- import { initAffixTabs as Et, useTabsDrag as Pt } from "./multiple-tabs/use/use-multiple-tabs.js";
103
- import { useTabDropdown as Ft } from "./multiple-tabs/use/use-tab-dropdown.js";
104
- import { usePagination as St, vftPaginationKey as yt } from "./pagination/usePagination.js";
105
- import { default as _t } from "./popper/arrow.vue2.js";
106
- import { default as Kt } from "./popper/content.vue2.js";
107
- import { default as vt } from "./popper/trigger.vue2.js";
108
- import { radioGroupKey as Gt } from "./radio/constants.js";
109
- import { rowContextKey as wt } from "./row/constants.js";
110
- import { scrollbarContextKey as Nt } from "./scrollbar/constants.js";
111
- import { BAR_MAP as Ut, GAP as Bt, renderThumbStyle as Ht } from "./scrollbar/util.js";
112
- import { selectInjectionKey as Jt } from "./select/token.js";
113
- import { sliderContextKey as jt } from "./slider/constants.js";
114
- import { sliderEmits as Wt } from "./slider/slider.js";
115
- import { spaceProps as Zt } from "./space/space.js";
116
- import { useSpace as of } from "./space/use-space.js";
117
- import { ACTION_FIELD as ef, CHECKED_FIELD as tf, CREATE_TIME_FIELD as ff, DATE_FIELD as mf, DATE_TIME_FIELD as pf, ID_FIELD as xf, NAME_FIELD as af, SEQ_FIELD as nf, STATUS_FIELD as Vf, UPDATE_TIME_FIELD as sf } from "./table/field.js";
118
- import { useTable as df } from "./table/use/use-table.js";
119
- import { addRequire as cf, removeRequire as Tf, selectMapping as If } from "./table/utils.js";
120
- import { TabsRootContextKey as Df } from "./tabs/types.js";
121
- import { timePickerDefaultProps as Ef } from "./time-picker/common/props.js";
122
- import { DEFAULT_FORMATS_DATE as Mf, DEFAULT_FORMATS_DATEPICKER as Ff, DEFAULT_FORMATS_TIME as Lf, timeUnits as Sf } from "./time-picker/constants.js";
123
- import { buildTimeList as bf, dateEquals as _f, extractDateFormat as Af, extractTimeFormat as Kf, formatter as kf, makeList as vf, parseDate as Rf, rangeArr as Gf, valueEquals as Of } from "./time-picker/utils.js";
124
- import { default as zf } from "./time-picker/common/picker.vue2.js";
125
- import { default as hf } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
87
+ import { default as Oe } from "./time-picker/common/picker.vue2.js";
88
+ import { default as ze } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
89
+ import { buttonGroupContextKey as he } from "./button/constants.js";
90
+ import { checkboxGroupContextKey as Be } from "./checkbox/constants.js";
91
+ import { configProviderContextKey as qe, messageConfig as Je } from "./config-provider/constants.js";
92
+ import { provideGlobalConfig as je, useGlobalComponentSettings as Qe, useGlobalConfig as We } from "./config-provider/hooks/use-global-config.js";
93
+ import { ROOT_PICKER_INJECTION_KEY as Ze, datePickerConfig as $e } from "./date-picker/constants.js";
94
+ import { datePickerProps as rt } from "./date-picker/props/date-picker.js";
95
+ import { dialogInjectionKey as tt } from "./dialog/constants.js";
96
+ import { useDialog as mt } from "./dialog/hooks/use-dialog.js";
97
+ import { DROPDOWN_INJECTION_KEY as xt } from "./dropdown/tokens.js";
98
+ import { EmptyEnum as it } from "./empty/constants.js";
99
+ import { formContextKey as Vt, formItemContextKey as st } from "./form/constants.js";
100
+ import { useDisabled as dt, useFormDisabled as lt, useFormSize as ct, useSize as Tt } from "./form/hooks/use-form-common-props.js";
101
+ import { useFormItem as Ct, useFormItemInputId as Dt } from "./form/hooks/use-form-item.js";
102
+ import { formItemValidateStates as Et } from "./form/types.js";
103
+ import { MenuTypeEnum as Mt } from "./horizontal-menu/constants.js";
104
+ import { initAffixTabs as Lt, useTabsDrag as St } from "./multiple-tabs/use/use-multiple-tabs.js";
105
+ import { useTabDropdown as bt } from "./multiple-tabs/use/use-tab-dropdown.js";
106
+ import { usePagination as At, vftPaginationKey as Kt } from "./pagination/usePagination.js";
107
+ import { default as vt } from "./popper/arrow.vue2.js";
108
+ import { default as Gt } from "./popper/content.vue2.js";
109
+ import { default as wt } from "./popper/trigger.vue2.js";
110
+ import { radioGroupKey as Nt } from "./radio/constants.js";
111
+ import { rowContextKey as Ut } from "./row/constants.js";
112
+ import { scrollbarContextKey as Ht } from "./scrollbar/constants.js";
113
+ import { BAR_MAP as Jt, GAP as Yt, renderThumbStyle as jt } from "./scrollbar/util.js";
114
+ import { selectInjectionKey as Wt } from "./select/token.js";
115
+ import { sliderContextKey as Zt } from "./slider/constants.js";
116
+ import { sliderEmits as of } from "./slider/slider.js";
117
+ import { spaceProps as ef } from "./space/space.js";
118
+ import { useSpace as ff } from "./space/use-space.js";
119
+ import { ACTION_FIELD as pf, CHECKED_FIELD as xf, CREATE_TIME_FIELD as af, DATE_FIELD as nf, DATE_TIME_FIELD as Vf, ID_FIELD as sf, NAME_FIELD as uf, SEQ_FIELD as df, STATUS_FIELD as lf, UPDATE_TIME_FIELD as cf } from "./table/field.js";
120
+ import { useTable as If } from "./table/use/use-table.js";
121
+ import { addRequire as Df, removeRequire as gf, selectMapping as Ef } from "./table/utils.js";
122
+ import { TabsRootContextKey as Mf } from "./tabs/types.js";
123
+ import { timePickerDefaultProps as Lf } from "./time-picker/common/props.js";
124
+ import { DEFAULT_FORMATS_DATE as yf, DEFAULT_FORMATS_DATEPICKER as bf, DEFAULT_FORMATS_TIME as _f, timeUnits as Af } from "./time-picker/constants.js";
125
+ import { buildTimeList as kf, dateEquals as vf, extractDateFormat as Rf, extractTimeFormat as Gf, formatter as Of, makeList as wf, parseDate as zf, rangeArr as Nf, valueEquals as hf } from "./time-picker/utils.js";
126
126
  import { TOOLTIP_INJECTION_KEY as Bf } from "./tooltip/constants.js";
127
127
  import { getChildState as qf } from "./tree/model/node.js";
128
128
  import { dragEventsKey as Yf, useDragNodeHandler as jf } from "./tree/model/useDragNode.js";
@@ -134,36 +134,36 @@ import { vLoading as um, createLoadingDirective as dm, vLoading as lm } from "./
134
134
  import { Loading as Tm } from "./loading/service.js";
135
135
  import { messageDefaults as Cm, messageTypes as Dm } from "./message/types.js";
136
136
  export {
137
- ef as ACTION_FIELD,
138
- Ut as BAR_MAP,
139
- tf as CHECKED_FIELD,
140
- ff as CREATE_TIME_FIELD,
141
- zf as CommonPicker,
142
- mf as DATE_FIELD,
143
- pf as DATE_TIME_FIELD,
144
- Mf as DEFAULT_FORMATS_DATE,
145
- Ff as DEFAULT_FORMATS_DATEPICKER,
146
- Lf as DEFAULT_FORMATS_TIME,
147
- tt as DROPDOWN_INJECTION_KEY,
137
+ pf as ACTION_FIELD,
138
+ Jt as BAR_MAP,
139
+ xf as CHECKED_FIELD,
140
+ af as CREATE_TIME_FIELD,
141
+ Oe as CommonPicker,
142
+ nf as DATE_FIELD,
143
+ Vf as DATE_TIME_FIELD,
144
+ yf as DEFAULT_FORMATS_DATE,
145
+ bf as DEFAULT_FORMATS_DATEPICKER,
146
+ _f as DEFAULT_FORMATS_TIME,
147
+ xt as DROPDOWN_INJECTION_KEY,
148
148
  Xr as DynamicSizeGrid,
149
149
  $r as DynamicSizeList,
150
- mt as EmptyEnum,
150
+ it as EmptyEnum,
151
151
  re as FixedSizeGrid,
152
152
  te as FixedSizeList,
153
153
  $f as FormCompEnum,
154
- Bt as GAP,
155
- xf as ID_FIELD,
154
+ Yt as GAP,
155
+ sf as ID_FIELD,
156
156
  go as Icon,
157
- Dt as MenuTypeEnum,
157
+ Mt as MenuTypeEnum,
158
158
  ve as Message,
159
- af as NAME_FIELD,
160
- je as ROOT_PICKER_INJECTION_KEY,
161
- nf as SEQ_FIELD,
162
- Vf as STATUS_FIELD,
159
+ uf as NAME_FIELD,
160
+ Ze as ROOT_PICKER_INJECTION_KEY,
161
+ df as SEQ_FIELD,
162
+ lf as STATUS_FIELD,
163
163
  Bf as TOOLTIP_INJECTION_KEY,
164
- Df as TabsRootContextKey,
165
- hf as TimePickPanel,
166
- sf as UPDATE_TIME_FIELD,
164
+ Mf as TabsRootContextKey,
165
+ ze as TimePickPanel,
166
+ cf as UPDATE_TIME_FIELD,
167
167
  e as VftAlert,
168
168
  A as VftAside,
169
169
  ne as VftAutocomplete,
@@ -235,9 +235,9 @@ export {
235
235
  rr as VftPopconfirm,
236
236
  tr as VftPopover,
237
237
  mr as VftPopper,
238
- _t as VftPopperArrow,
239
- Kt as VftPopperContent,
240
- vt as VftPopperTrigger,
238
+ vt as VftPopperArrow,
239
+ Gt as VftPopperContent,
240
+ wt as VftPopperTrigger,
241
241
  de as VftProgress,
242
242
  xr as VftQrcode,
243
243
  ir as VftRadio,
@@ -267,76 +267,76 @@ export {
267
267
  Ie as VftUpload,
268
268
  Qr as VftVerifyCode,
269
269
  om as add,
270
- cf as addRequire,
271
- bf as buildTimeList,
272
- Oe as buttonGroupContextKey,
273
- ze as checkboxGroupContextKey,
270
+ Df as addRequire,
271
+ kf as buildTimeList,
272
+ he as buttonGroupContextKey,
273
+ Be as checkboxGroupContextKey,
274
274
  rm as componentMap,
275
- he as configProviderContextKey,
275
+ qe as configProviderContextKey,
276
276
  O as createContextMenu,
277
277
  dm as createLoadingDirective,
278
- _f as dateEquals,
279
- Qe as datePickerConfig,
280
- Xe as datePickerProps,
278
+ vf as dateEquals,
279
+ $e as datePickerConfig,
280
+ rt as datePickerProps,
281
281
  em as del,
282
282
  w as destroyContextMenu,
283
- $e as dialogInjectionKey,
283
+ tt as dialogInjectionKey,
284
284
  Yf as dragEventsKey,
285
- Af as extractDateFormat,
286
- Kf as extractTimeFormat,
287
- xt as formContextKey,
288
- at as formItemContextKey,
289
- It as formItemValidateStates,
290
- kf as formatter,
285
+ Rf as extractDateFormat,
286
+ Gf as extractTimeFormat,
287
+ Vt as formContextKey,
288
+ st as formItemContextKey,
289
+ Et as formItemValidateStates,
290
+ Of as formatter,
291
291
  nm as genFileId,
292
292
  qf as getChildState,
293
293
  xm as getDynamicProps,
294
- Et as initAffixTabs,
294
+ Lt as initAffixTabs,
295
295
  tm as isDatePicker,
296
296
  fm as isInput,
297
297
  mm as isRangePicker,
298
- vf as makeList,
299
- Ue as messageConfig,
298
+ wf as makeList,
299
+ Je as messageConfig,
300
300
  Cm as messageDefaults,
301
301
  Dm as messageTypes,
302
- Rf as parseDate,
303
- He as provideGlobalConfig,
304
- Gt as radioGroupKey,
305
- Gf as rangeArr,
306
- Tf as removeRequire,
307
- Ht as renderThumbStyle,
308
- wt as rowContextKey,
309
- Nt as scrollbarContextKey,
310
- Jt as selectInjectionKey,
311
- If as selectMapping,
312
- jt as sliderContextKey,
313
- Wt as sliderEmits,
314
- Zt as spaceProps,
315
- Ef as timePickerDefaultProps,
316
- Sf as timeUnits,
302
+ zf as parseDate,
303
+ je as provideGlobalConfig,
304
+ Nt as radioGroupKey,
305
+ Nf as rangeArr,
306
+ gf as removeRequire,
307
+ jt as renderThumbStyle,
308
+ Ut as rowContextKey,
309
+ Ht as scrollbarContextKey,
310
+ Wt as selectInjectionKey,
311
+ Ef as selectMapping,
312
+ Zt as sliderContextKey,
313
+ of as sliderEmits,
314
+ ef as spaceProps,
315
+ Lf as timePickerDefaultProps,
316
+ Af as timeUnits,
317
317
  Vm as uploadContextKey,
318
318
  N as useContextMenu,
319
- rt as useDialog,
320
- nt as useDisabled,
319
+ mt as useDialog,
320
+ dt as useDisabled,
321
321
  jf as useDragNodeHandler,
322
322
  am as useForm,
323
- Vt as useFormDisabled,
324
- lt as useFormItem,
325
- ct as useFormItemInputId,
326
- st as useFormSize,
327
- qe as useGlobalComponentSettings,
328
- Je as useGlobalConfig,
323
+ lt as useFormDisabled,
324
+ Ct as useFormItem,
325
+ Dt as useFormItemInputId,
326
+ ct as useFormSize,
327
+ Qe as useGlobalComponentSettings,
328
+ We as useGlobalConfig,
329
329
  Wf as useModal,
330
330
  Xf as useModalInner,
331
- St as usePagination,
332
- ut as useSize,
333
- of as useSpace,
334
- Ft as useTabDropdown,
335
- df as useTable,
336
- Pt as useTabsDrag,
331
+ At as usePagination,
332
+ Tt as useSize,
333
+ ff as useSpace,
334
+ bt as useTabDropdown,
335
+ If as useTable,
336
+ St as useTabsDrag,
337
337
  lm as vLoading,
338
- Of as valueEquals,
339
- yt as vftPaginationKey,
338
+ hf as valueEquals,
339
+ Kt as vftPaginationKey,
340
340
  me as virtualizedGridProps,
341
341
  pe as virtualizedListProps,
342
342
  xe as virtualizedProps,
@@ -1,9 +1,9 @@
1
- import { defineComponent as Le, useAttrs as Oe, useSlots as je, computed as l, getCurrentInstance as We, shallowRef as q, ref as E, watch as G, nextTick as V, onMounted as He, withDirectives as Ue, openBlock as i, createElementBlock as d, mergeProps as y, Fragment as J, normalizeClass as c, unref as t, renderSlot as N, createCommentVNode as r, createElementVNode as g, createBlock as B, withKeys as qe, withModifiers as ye, toDisplayString as D, normalizeStyle as Ge, vShow as Je } from "vue";
1
+ import { defineComponent as Le, useAttrs as Oe, useSlots as je, computed as l, getCurrentInstance as We, shallowRef as q, ref as V, watch as G, nextTick as B, onMounted as He, withDirectives as Ue, openBlock as i, createElementBlock as d, mergeProps as y, Fragment as J, normalizeClass as c, unref as t, renderSlot as N, createCommentVNode as r, createElementVNode as g, createBlock as F, withKeys as qe, withModifiers as ye, toDisplayString as D, normalizeStyle as Ge, vShow as Je } from "vue";
2
2
  import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
3
3
  import { useAttrs as Qe } from "@vft/use";
4
- import { isString as F, singleAttrToObj as X, noop as Xe, isObject as he } from "@vft/utils";
4
+ import { isString as A, singleAttrToObj as X, noop as Xe, isObject as he } from "@vft/utils";
5
5
  import "../form/index.js";
6
- import { VftIcon as A } from "../icon/index.js";
6
+ import { VftIcon as K } from "../icon/index.js";
7
7
  import { useResizeObserver as Ye, isClient as Ze } from "@vueuse/core";
8
8
  import { debugWarn as Y } from "../../utils/error.js";
9
9
  import "../../utils/ns-cover.js";
@@ -44,11 +44,11 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
44
44
  inputStyle: {}
45
45
  },
46
46
  emits: {
47
- [Q]: (a) => F(a),
48
- input: (a) => F(a),
49
- change: (a) => F(a),
50
- suffixClick: (a) => F(a),
51
- prefixClick: (a) => F(a),
47
+ [Q]: (a) => A(a),
48
+ input: (a) => A(a),
49
+ change: (a) => A(a),
50
+ suffixClick: (a) => A(a),
51
+ prefixClick: (a) => A(a),
52
52
  focus: (a) => a instanceof FocusEvent,
53
53
  blur: (a) => a instanceof FocusEvent,
54
54
  clear: () => !0,
@@ -84,8 +84,12 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
84
84
  excludeKeys: l(() => Object.keys(Z.value))
85
85
  }), { form: T, formItem: u } = aa(), { inputId: _ } = ta(Ce.props, {
86
86
  formItemContext: u
87
- }), ze = oa(), h = na(), o = be("input"), ee = be("textarea"), K = q(), b = q(), w = E(!1), L = E(!1), k = E(!1), M = E(!1), ae = E(), O = q(a.inputStyle), z = l(() => K.value || b.value), j = l(() => X(a.prefixIcon, "icon", { size: 16 })), te = l(() => X(a.suffixIcon, "icon", { size: 16 })), Ie = l(() => X(a.clearIcon, "icon", { icon: "ico-ep:circle-close", size: 16 })), oe = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), P = l(() => (u == null ? void 0 : u.validateState) || ""), ne = l(() => P.value && "vico-user"), Se = l(
88
- () => M.value ? { icon: "ico-ep:view", size: 16 } : { icon: "ico-ep:hide", size: 16 }
87
+ }), ze = oa(), h = na(), o = be("input"), ee = be("textarea"), M = q(), b = q(), w = V(!1), L = V(!1), k = V(!1), P = V(!1), ae = V(), O = q(a.inputStyle), z = l(() => M.value || b.value), j = l(() => X(a.prefixIcon, "icon", { size: 16 })), te = l(() => X(a.suffixIcon, "icon", { size: 16 })), Ie = l(() => X(a.clearIcon, "icon", { icon: "icon-circle-close", size: 16 })), oe = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), I = l(() => (u == null ? void 0 : u.validateState) || ""), ne = l(() => I.value && {
88
+ validating: "icon-loading",
89
+ success: "icon-circle-check",
90
+ error: "icon-circle-close"
91
+ }[I.value]), Se = l(
92
+ () => P.value ? { icon: "icon-view", size: 16 } : { icon: "icon-hide", size: 16 }
89
93
  ), Ee = l(() => [C.style, a.inputStyle]), le = l(
90
94
  () => [a.inputStyle, O.value, { resize: a.resize }]
91
95
  ), p = l(() => _e(a.modelValue) ? "" : String(a.modelValue)), R = l(
@@ -100,8 +104,8 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
100
104
  !!x.value && H.value > Number(f.value.maxlength)
101
105
  )
102
106
  ), Be = l(
103
- () => !!m.suffix || !!a.suffixIcon || R.value || a.showPassword || x.value || !!P.value && oe.value
104
- ), [Fe, Ae] = ea(K);
107
+ () => !!m.suffix || !!a.suffixIcon || R.value || a.showPassword || x.value || !!I.value && oe.value
108
+ ), [Fe, Ae] = ea(M);
105
109
  Ye(b, (e) => {
106
110
  if (!x.value || a.resize !== "both")
107
111
  return;
@@ -122,7 +126,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
122
126
  O.value = {
123
127
  minHeight: we(b.value).minHeight
124
128
  };
125
- }, I = () => {
129
+ }, S = () => {
126
130
  const e = z.value;
127
131
  !e || e.value === p.value || (e.value = p.value);
128
132
  }, U = async (e) => {
@@ -130,10 +134,10 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
130
134
  let { value: n } = e.target;
131
135
  if (f.value.maxlength && n.length >= f.value.maxlength && (n = n.slice(0, Number(f.value.maxlength))), a.formatter && (n = a.parser ? a.parser(n) : n, n = a.formatter(n)), !k.value) {
132
136
  if (n === p.value) {
133
- I();
137
+ S();
134
138
  return;
135
139
  }
136
- s(Q, n), s("input", n), await V(), I(), Ae();
140
+ s(Q, n), s("input", n), await B(), S(), Ae();
137
141
  }
138
142
  }, se = (e) => {
139
143
  s("change", e.target.value);
@@ -144,17 +148,17 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
144
148
  }, ie = (e) => {
145
149
  s("compositionstart", e), k.value = !0;
146
150
  }, Pe = (e) => /([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(e), ue = (e) => {
147
- var S;
151
+ var E;
148
152
  s("compositionupdate", e);
149
- const n = (S = e.target) == null ? void 0 : S.value, v = n[n.length - 1] || "";
153
+ const n = (E = e.target) == null ? void 0 : E.value, v = n[n.length - 1] || "";
150
154
  k.value = !Pe(v);
151
155
  }, re = (e) => {
152
156
  s("compositionend", e), k.value && (k.value = !1, U(e));
153
157
  }, Re = () => {
154
- M.value = !M.value, ce();
158
+ P.value = !P.value, ce();
155
159
  }, ce = async () => {
156
160
  var e;
157
- await V(), (e = z.value) == null || e.focus();
161
+ await B(), (e = z.value) == null || e.focus();
158
162
  }, $e = () => {
159
163
  var e;
160
164
  return (e = z.value) == null ? void 0 : e.blur();
@@ -182,18 +186,18 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
182
186
  () => a.modelValue,
183
187
  () => {
184
188
  var e;
185
- V(() => $()), a.validateEvent && ((e = u == null ? void 0 : u.validate) == null || e.call(u, "change").catch((n) => Y(n)));
189
+ B(() => $()), a.validateEvent && ((e = u == null ? void 0 : u.validate) == null || e.call(u, "change").catch((n) => Y(n)));
186
190
  }
187
- ), G(p, () => I()), G(
191
+ ), G(p, () => S()), G(
188
192
  () => a.type,
189
193
  async () => {
190
- await V(), I(), $();
194
+ await B(), S(), $();
191
195
  }
192
196
  ), He(() => {
193
- !a.formatter && a.parser && Y("VftInput", "If you set the parser, you also need to set the formatter."), I(), V($);
197
+ !a.formatter && a.parser && Y("VftInput", "If you set the parser, you also need to set the formatter."), S(), B($);
194
198
  }), xe({
195
199
  /** @description HTML input element */
196
- input: K,
200
+ input: M,
197
201
  /** @description HTML textarea element */
198
202
  textarea: b,
199
203
  /** @description HTML element, input or textarea */
@@ -213,7 +217,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
213
217
  /** @description resize textarea. */
214
218
  resizeTextarea: $
215
219
  }), (e, n) => {
216
- var v, S, me;
220
+ var v, E, me;
217
221
  return Ue((i(), d("div", y(Z.value, {
218
222
  class: ge.value,
219
223
  style: Ee.value,
@@ -240,7 +244,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
240
244
  onClick: Me
241
245
  }, [
242
246
  N(e.$slots, "prefix"),
243
- (S = j.value) != null && S.icon ? (i(), B(t(A), y({
247
+ (E = j.value) != null && E.icon ? (i(), F(t(K), y({
244
248
  key: 0,
245
249
  pointer: ""
246
250
  }, j.value, {
@@ -251,10 +255,10 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
251
255
  g("input", y({
252
256
  id: t(_),
253
257
  ref_key: "input",
254
- ref: K,
258
+ ref: M,
255
259
  class: t(o).e("inner")
256
260
  }, t(f), {
257
- type: e.showPassword ? M.value ? "text" : "password" : e.type,
261
+ type: e.showPassword ? P.value ? "text" : "password" : e.type,
258
262
  disabled: t(h),
259
263
  formatter: e.formatter,
260
264
  parser: e.parser,
@@ -285,11 +289,11 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
285
289
  }, [
286
290
  !R.value || !W.value || !x.value ? (i(), d(J, { key: 0 }, [
287
291
  N(e.$slots, "suffix"),
288
- (me = te.value) != null && me.icon ? (i(), B(t(A), y({ key: 0 }, te.value, {
292
+ (me = te.value) != null && me.icon ? (i(), F(t(K), y({ key: 0 }, te.value, {
289
293
  class: t(o).e("icon")
290
294
  }), null, 16, ["class"])) : r("", !0)
291
295
  ], 64)) : r("", !0),
292
- R.value ? (i(), B(t(A), y({
296
+ R.value ? (i(), F(t(K), y({
293
297
  key: 1,
294
298
  pointer: "",
295
299
  class: [t(o).e("icon"), t(o).e("clear")]
@@ -297,7 +301,7 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
297
301
  onMousedown: ye(t(Xe), ["prevent"]),
298
302
  onClick: ye(pe, ["stop"])
299
303
  }), null, 16, ["class", "onMousedown", "onClick"])) : r("", !0),
300
- W.value ? (i(), B(t(A), y({ key: 2 }, Se.value, {
304
+ W.value ? (i(), F(t(K), y({ key: 2 }, Se.value, {
301
305
  class: [t(o).e("icon"), t(o).e("password")],
302
306
  onClick: Re
303
307
  }), null, 16, ["class"])) : r("", !0),
@@ -309,10 +313,10 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
309
313
  class: c(t(o).e("count-inner"))
310
314
  }, D(H.value) + " / " + D(t(f).maxlength), 3)
311
315
  ], 2)) : r("", !0),
312
- P.value && ne.value && oe.value ? (i(), B(t(A), {
316
+ I.value && ne.value && oe.value ? (i(), F(t(K), {
313
317
  key: 4,
314
318
  icon: ne.value,
315
- class: c([t(o).e("icon"), t(o).e("validateIcon"), t(o).is("loading", P.value === "validating")])
319
+ class: c([t(o).e("icon"), t(o).e("validateIcon"), t(o).is("loading", I.value === "validating")])
316
320
  }, null, 8, ["icon", "class"])) : r("", !0)
317
321
  ], 2)
318
322
  ], 2)) : r("", !0)
@@ -1,9 +1,9 @@
1
- import { defineComponent as L, ref as ee, reactive as ne, computed as f, watch as te, onMounted as le, onUpdated as ue, openBlock as P, createElementBlock as B, normalizeClass as O, unref as u, withModifiers as V, withDirectives as R, withKeys as h, createVNode as T, createCommentVNode as W } from "vue";
1
+ import { defineComponent as j, ref as ee, reactive as ne, computed as f, watch as te, onMounted as le, onUpdated as ue, openBlock as P, createElementBlock as B, normalizeClass as O, unref as u, withModifiers as V, withDirectives as W, withKeys as h, createVNode as T, createCommentVNode as Y } from "vue";
2
2
  import { isNumber as s, isUndefined as y, isString as ie } from "@vft/utils";
3
3
  import "../form/index.js";
4
- import { VftIcon as Y } from "../icon/index.js";
4
+ import { VftIcon as $ } from "../icon/index.js";
5
5
  import { VftInput as ae } from "../input/index.js";
6
- import { CHANGE_EVENT as $, INPUT_EVENT as w, UPDATE_MODEL_EVENT as b } from "../../constants/event.js";
6
+ import { CHANGE_EVENT as H, INPUT_EVENT as w, UPDATE_MODEL_EVENT as b } from "../../constants/event.js";
7
7
  import "@vueuse/core";
8
8
  import { debugWarn as D } from "../../utils/error.js";
9
9
  import "../../utils/ns-cover.js";
@@ -11,15 +11,15 @@ import { isNil as v } from "lodash";
11
11
  import { useNamespace as re } from "../../hooks/use-namespace/index.js";
12
12
  import "@popperjs/core";
13
13
  import "../../hooks/use-z-index/index.js";
14
- import { vRepeatClick as H } from "./directives.js";
14
+ import { vRepeatClick as L } from "./directives.js";
15
15
  import { useFormItem as oe } from "../form/hooks/use-form-item.js";
16
16
  import { useFormSize as se, useFormDisabled as ce } from "../form/hooks/use-form-common-props.js";
17
17
  const de = ["onKeydown"], me = ["onKeydown"], c = (
18
18
  /* hoist-static*/
19
19
  re("input-number")
20
- ), fe = L({
20
+ ), fe = j({
21
21
  name: "vft-input-number"
22
- }), Be = /* @__PURE__ */ L({
22
+ }), Be = /* @__PURE__ */ j({
23
23
  ...fe,
24
24
  props: {
25
25
  id: { default: void 0 },
@@ -41,7 +41,7 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
41
41
  validateEvent: { type: Boolean, default: !0 }
42
42
  },
43
43
  emits: {
44
- [$]: (n, g) => g !== n,
44
+ [H]: (n, g) => g !== n,
45
45
  blur: (n) => n instanceof FocusEvent,
46
46
  focus: (n) => n instanceof FocusEvent,
47
47
  [w]: (n) => s(n) || v(n),
@@ -55,7 +55,7 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
55
55
  () => n.modelValue && s(n.modelValue) && n.modelValue <= n.min
56
56
  ), M = f(
57
57
  () => n.modelValue && s(n.modelValue) && n.modelValue >= n.max
58
- ), j = f(() => {
58
+ ), p = f(() => {
59
59
  const e = z(n.step);
60
60
  return y(n.precision) ? Math.max(z(n.modelValue), e) : (e > n.precision && D(
61
61
  "InputNumber",
@@ -74,29 +74,29 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
74
74
  }
75
75
  return e;
76
76
  }), F = (e, t) => {
77
- if (y(t) && (t = j.value), t === 0)
77
+ if (y(t) && (t = p.value), t === 0)
78
78
  return Math.round(e);
79
79
  let l = String(e);
80
80
  const a = l.indexOf(".");
81
81
  if (a === -1 || !l.replace(".", "").split("")[a + t])
82
82
  return e;
83
- const G = l.length;
84
- return l.charAt(G - 1) === "5" && (l = `${l.slice(0, Math.max(0, G - 1))}6`), Number.parseFloat(Number(l).toFixed(t));
83
+ const R = l.length;
84
+ return l.charAt(R - 1) === "5" && (l = `${l.slice(0, Math.max(0, R - 1))}6`), Number.parseFloat(Number(l).toFixed(t));
85
85
  }, z = (e) => {
86
86
  if (v(e))
87
87
  return 0;
88
88
  const t = e.toString(), l = t.indexOf(".");
89
89
  let a = 0;
90
90
  return l !== -1 && (a = t.length - l - 1), a;
91
- }, p = (e, t = 1) => s(e) ? F(e + n.step * t) : i.currentValue, x = () => {
91
+ }, U = (e, t = 1) => s(e) ? F(e + n.step * t) : i.currentValue, x = () => {
92
92
  if (n.readonly || m.value || M.value)
93
93
  return;
94
- const e = Number(E.value) || 0, t = p(e);
94
+ const e = Number(E.value) || 0, t = U(e);
95
95
  N(t), r(w, i.currentValue);
96
96
  }, A = () => {
97
97
  if (n.readonly || m.value || K.value)
98
98
  return;
99
- const e = Number(E.value) || 0, t = p(e, -1);
99
+ const e = Number(E.value) || 0, t = U(e, -1);
100
100
  N(t), r(w, i.currentValue);
101
101
  }, C = (e, t) => {
102
102
  let l = Number(e);
@@ -115,7 +115,7 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
115
115
  r(b, a);
116
116
  return;
117
117
  }
118
- l !== a && (i.userInput = null, r(b, a), r($, a, l), n.validateEvent && ((S = o == null ? void 0 : o.validate) == null || S.call(o, "change").catch((U) => D(U))), i.currentValue = a);
118
+ l !== a && (i.userInput = null, r(b, a), r(H, a, l), n.validateEvent && ((S = o == null ? void 0 : o.validate) == null || S.call(o, "change").catch((G) => D(G))), i.currentValue = a);
119
119
  }, q = (e) => {
120
120
  i.userInput = e;
121
121
  const t = e === "" ? null : Number(e);
@@ -169,30 +169,30 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
169
169
  onDragstart: t[1] || (t[1] = V(() => {
170
170
  }, ["prevent"]))
171
171
  }, [
172
- e.controls ? R((P(), B("span", {
172
+ e.controls ? W((P(), B("span", {
173
173
  key: 0,
174
174
  role: "button",
175
175
  class: O([u(c).e("decrease"), u(c).is("disabled", K.value)]),
176
176
  onKeydown: h(A, ["enter"])
177
177
  }, [
178
- T(u(Y), {
179
- icon: I.value ? "ico-ep:arrow-down" : "ico-ep:minus"
178
+ T(u($), {
179
+ icon: I.value ? "icon-arrow-down" : "icon-minus"
180
180
  }, null, 8, ["icon"])
181
181
  ], 42, de)), [
182
- [u(H), A]
183
- ]) : W("", !0),
184
- e.controls ? R((P(), B("span", {
182
+ [u(L), A]
183
+ ]) : Y("", !0),
184
+ e.controls ? W((P(), B("span", {
185
185
  key: 1,
186
186
  role: "button",
187
187
  class: O([u(c).e("increase"), u(c).is("disabled", M.value)]),
188
188
  onKeydown: h(x, ["enter"])
189
189
  }, [
190
- T(u(Y), {
191
- icon: I.value ? "ico-ep:arrow-up" : "ico-ep:plus"
190
+ T(u($), {
191
+ icon: I.value ? "icon-arrow-up" : "icon-plus"
192
192
  }, null, 8, ["icon"])
193
193
  ], 42, me)), [
194
- [u(H), x]
195
- ]) : W("", !0),
194
+ [u(L), x]
195
+ ]) : Y("", !0),
196
196
  T(u(ae), {
197
197
  id: e.id,
198
198
  ref_key: "input",