@veltra/desktop 1.0.3 → 1.0.5

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 (207) hide show
  1. package/dist/components/action/action-group.vue.d.ts +1 -1
  2. package/dist/components/action/action.vue.d.ts +2 -2
  3. package/dist/components/auto-complete/auto-complete.js.map +1 -1
  4. package/dist/components/auto-complete/auto-complete.vue.d.ts +2 -2
  5. package/dist/components/button/button.vue.d.ts +1 -1
  6. package/dist/components/cascade/cascade.js.map +1 -1
  7. package/dist/components/cascade/cascade.vue.d.ts +7 -7
  8. package/dist/components/checkbox/checkbox-button.js.map +1 -1
  9. package/dist/components/checkbox/checkbox-button.vue.d.ts +1 -1
  10. package/dist/components/checkbox/checkbox.vue.d.ts +1 -1
  11. package/dist/components/checkbox-group/checkbox-group.js.map +1 -1
  12. package/dist/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
  13. package/dist/components/code-editor/code-editor.vue.d.ts +1 -1
  14. package/dist/components/date-picker/date-picker.js.map +1 -1
  15. package/dist/components/date-picker/date-picker.vue.d.ts +3 -3
  16. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  17. package/dist/components/date-range-picker/date-range-picker.vue.d.ts +3 -3
  18. package/dist/components/form-item/helper.js.map +1 -1
  19. package/dist/components/grid/use-responsive.js.map +1 -1
  20. package/dist/components/grid-input/grid-input.vue.d.ts +1 -1
  21. package/dist/components/group-input/group-input.js.map +1 -1
  22. package/dist/components/icon/icon.js.map +1 -1
  23. package/dist/components/input/input.js.map +1 -1
  24. package/dist/components/input/input.vue.d.ts +4 -4
  25. package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
  26. package/dist/components/message-confirm/message-confirm.js.map +1 -1
  27. package/dist/components/multi-select/multi-select.js.map +1 -1
  28. package/dist/components/multi-select/multi-select.vue.d.ts +4 -4
  29. package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +6 -6
  30. package/dist/components/number-input/number-input.js.map +1 -1
  31. package/dist/components/number-input/number-input.vue.d.ts +2 -2
  32. package/dist/components/number-range-input/number-range-input.js.map +1 -1
  33. package/dist/components/number-range-input/number-range-input.vue.d.ts +3 -3
  34. package/dist/components/palette/palette.vue.d.ts +1 -1
  35. package/dist/components/password-input/password-input.vue.d.ts +2 -2
  36. package/dist/components/progress/progress.vue.d.ts +1 -1
  37. package/dist/components/radio-group/radio-group.js.map +1 -1
  38. package/dist/components/radio-group/radio-group.vue.d.ts +2 -2
  39. package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +2 -2
  40. package/dist/components/select/select.js.map +1 -1
  41. package/dist/components/select/select.vue.d.ts +4 -4
  42. package/dist/components/switch/switch.vue.d.ts +1 -1
  43. package/dist/components/table/table-foot.js.map +1 -1
  44. package/dist/components/tabs/tabs.vue.d.ts +2 -2
  45. package/dist/components/textarea/textarea.js.map +1 -1
  46. package/dist/components/textarea/textarea.vue.d.ts +4 -4
  47. package/dist/components/tree/tree.vue.d.ts +1 -1
  48. package/dist/components/tree-select/tree-select.vue.d.ts +6 -6
  49. package/dist/index.d.ts +1 -1
  50. package/dist/types/action.d.ts +1 -1
  51. package/dist/types/animation.d.ts +1 -1
  52. package/dist/types/auto-complete.d.ts +1 -2
  53. package/dist/types/badge.d.ts +1 -2
  54. package/dist/types/batch-edit.d.ts +1 -1
  55. package/dist/types/button.d.ts +1 -2
  56. package/dist/types/calendar.d.ts +1 -1
  57. package/dist/types/card.d.ts +1 -2
  58. package/dist/types/cascade.d.ts +1 -2
  59. package/dist/types/check-tag.d.ts +1 -1
  60. package/dist/types/checkbox-group.d.ts +1 -1
  61. package/dist/types/checkbox.d.ts +1 -1
  62. package/dist/types/code-editor.d.ts +1 -2
  63. package/dist/types/condition-editor.d.ts +1 -1
  64. package/dist/types/context-menu.d.ts +1 -2
  65. package/dist/types/css-transition.d.ts +1 -1
  66. package/dist/types/date-panel.d.ts +1 -1
  67. package/dist/types/date-picker.d.ts +1 -2
  68. package/dist/types/date-range-picker.d.ts +1 -2
  69. package/dist/types/dialog.d.ts +1 -2
  70. package/dist/types/drawer.d.ts +1 -1
  71. package/dist/types/dropdown.d.ts +1 -1
  72. package/dist/types/empty.d.ts +1 -1
  73. package/dist/types/expression-editor.d.ts +1 -2
  74. package/dist/types/file-picker.d.ts +1 -2
  75. package/dist/types/float-button.d.ts +1 -2
  76. package/dist/types/form-item.d.ts +1 -1
  77. package/dist/types/form.d.ts +1 -3
  78. package/dist/types/grid-input.d.ts +1 -1
  79. package/dist/types/grid.d.ts +1 -2
  80. package/dist/types/group-input.d.ts +1 -2
  81. package/dist/types/index.d.ts +2 -2
  82. package/dist/types/layout.d.ts +1 -1
  83. package/dist/types/list.d.ts +1 -2
  84. package/dist/types/loading.d.ts +1 -1
  85. package/dist/types/menu.d.ts +1 -1
  86. package/dist/types/message-confirm.d.ts +1 -2
  87. package/dist/types/message.d.ts +1 -1
  88. package/dist/types/multi-auto-complete.d.ts +1 -1
  89. package/dist/types/multi-select.d.ts +1 -2
  90. package/dist/types/multi-tree-select.d.ts +1 -2
  91. package/dist/types/notification.d.ts +1 -2
  92. package/dist/types/paginator.d.ts +1 -1
  93. package/dist/types/palette.d.ts +1 -2
  94. package/dist/types/password-input.d.ts +1 -1
  95. package/dist/types/pop-confirm.d.ts +1 -1
  96. package/dist/types/pop.d.ts +1 -1
  97. package/dist/types/progress-nodes.d.ts +1 -2
  98. package/dist/types/progress.d.ts +1 -2
  99. package/dist/types/quick-batch-edit.d.ts +1 -1
  100. package/dist/types/radio-group.d.ts +1 -2
  101. package/dist/types/radio.d.ts +1 -2
  102. package/dist/types/rich-text-editor.d.ts +1 -2
  103. package/dist/types/scroll.d.ts +1 -1
  104. package/dist/types/select.d.ts +1 -2
  105. package/dist/types/slider.d.ts +1 -2
  106. package/dist/types/steps.d.ts +1 -2
  107. package/dist/types/switch.d.ts +1 -2
  108. package/dist/types/table-editor.d.ts +1 -1
  109. package/dist/types/table.d.ts +1 -2
  110. package/dist/types/tabs.d.ts +1 -1
  111. package/dist/types/tag.d.ts +1 -1
  112. package/dist/types/text-editor.d.ts +1 -2
  113. package/dist/types/textarea.d.ts +1 -2
  114. package/dist/types/theme.d.ts +1 -1
  115. package/dist/types/tip.d.ts +1 -1
  116. package/dist/types/tree-select.d.ts +1 -2
  117. package/dist/types/tree.d.ts +1 -1
  118. package/dist/types/watermark.d.ts +1 -1
  119. package/package.json +13 -17
  120. package/src/components/auto-complete/auto-complete.vue +1 -2
  121. package/src/components/cascade/cascade.vue +1 -2
  122. package/src/components/checkbox/checkbox-button.vue +1 -2
  123. package/src/components/checkbox-group/checkbox-group.vue +1 -2
  124. package/src/components/date-picker/date-picker.vue +1 -2
  125. package/src/components/date-range-picker/date-range-picker.vue +1 -2
  126. package/src/components/form-item/helper.ts +1 -2
  127. package/src/components/grid/use-responsive.ts +1 -1
  128. package/src/components/group-input/group-input.vue +1 -2
  129. package/src/components/icon/icon.vue +1 -2
  130. package/src/components/input/input.vue +1 -2
  131. package/src/components/message-confirm/message-confirm.vue +1 -2
  132. package/src/components/multi-select/multi-select.vue +1 -2
  133. package/src/components/number-input/number-input.vue +1 -3
  134. package/src/components/number-range-input/number-range-input.vue +1 -2
  135. package/src/components/radio-group/radio-group.vue +1 -2
  136. package/src/components/select/select.vue +1 -2
  137. package/src/components/table/table-foot.vue +1 -2
  138. package/src/components/textarea/textarea.vue +1 -2
  139. package/src/types/action.ts +1 -1
  140. package/src/types/animation.ts +1 -1
  141. package/src/types/auto-complete.ts +1 -2
  142. package/src/types/badge.ts +1 -2
  143. package/src/types/batch-edit.ts +1 -1
  144. package/src/types/button.ts +1 -2
  145. package/src/types/calendar.ts +1 -1
  146. package/src/types/card.ts +1 -2
  147. package/src/types/cascade.ts +1 -2
  148. package/src/types/check-tag.ts +1 -1
  149. package/src/types/checkbox-group.ts +1 -1
  150. package/src/types/checkbox.ts +1 -1
  151. package/src/types/code-editor.ts +1 -2
  152. package/src/types/condition-editor.ts +1 -1
  153. package/src/types/context-menu.ts +1 -2
  154. package/src/types/css-transition.ts +1 -1
  155. package/src/types/date-panel.ts +1 -1
  156. package/src/types/date-picker.ts +1 -2
  157. package/src/types/date-range-picker.ts +1 -2
  158. package/src/types/dialog.ts +1 -2
  159. package/src/types/drawer.ts +1 -1
  160. package/src/types/dropdown.ts +1 -1
  161. package/src/types/empty.ts +1 -1
  162. package/src/types/expression-editor.ts +1 -2
  163. package/src/types/file-picker.ts +1 -2
  164. package/src/types/float-button.ts +1 -2
  165. package/src/types/form-item.ts +1 -1
  166. package/src/types/form.ts +1 -3
  167. package/src/types/grid-input.ts +1 -1
  168. package/src/types/grid.ts +1 -2
  169. package/src/types/group-input.ts +1 -2
  170. package/src/types/index.ts +1 -1
  171. package/src/types/layout.ts +1 -1
  172. package/src/types/list.ts +1 -2
  173. package/src/types/loading.ts +1 -1
  174. package/src/types/menu.ts +1 -1
  175. package/src/types/message-confirm.ts +1 -2
  176. package/src/types/message.ts +1 -1
  177. package/src/types/multi-auto-complete.ts +1 -1
  178. package/src/types/multi-select.ts +1 -2
  179. package/src/types/multi-tree-select.ts +1 -2
  180. package/src/types/notification.ts +1 -2
  181. package/src/types/paginator.ts +1 -1
  182. package/src/types/palette.ts +1 -2
  183. package/src/types/password-input.ts +1 -1
  184. package/src/types/pop-confirm.ts +1 -1
  185. package/src/types/pop.ts +1 -1
  186. package/src/types/progress-nodes.ts +1 -2
  187. package/src/types/progress.ts +1 -2
  188. package/src/types/quick-batch-edit.ts +1 -1
  189. package/src/types/radio-group.ts +1 -2
  190. package/src/types/radio.ts +1 -2
  191. package/src/types/rich-text-editor.ts +1 -2
  192. package/src/types/scroll.ts +1 -1
  193. package/src/types/select.ts +1 -2
  194. package/src/types/slider.ts +1 -2
  195. package/src/types/steps.ts +1 -2
  196. package/src/types/switch.ts +1 -2
  197. package/src/types/table-editor.ts +1 -1
  198. package/src/types/table.ts +1 -2
  199. package/src/types/tabs.ts +1 -1
  200. package/src/types/tag.ts +1 -1
  201. package/src/types/text-editor.ts +1 -2
  202. package/src/types/textarea.ts +1 -2
  203. package/src/types/theme.ts +1 -1
  204. package/src/types/tip.ts +1 -1
  205. package/src/types/tree-select.ts +1 -2
  206. package/src/types/tree.ts +1 -1
  207. package/src/types/watermark.ts +1 -1
@@ -1,5 +1,4 @@
1
- import { FormComponentProps } from "@veltra/utils/types/component-common";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
1
+ import { DeconstructValue, FormComponentProps } from "@veltra/utils";
3
2
 
4
3
  //#region src/types/slider.d.ts
5
4
  /** 滑块组件属性 */
@@ -1,5 +1,4 @@
1
- import { ColorType, ComponentSize } from "@veltra/utils/types/component-common";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
1
+ import { ColorType, ComponentSize, DeconstructValue } from "@veltra/utils";
3
2
 
4
3
  //#region src/types/steps.d.ts
5
4
  /** 步骤组件组件属性 */
@@ -1,5 +1,4 @@
1
- import { FormComponentProps } from "@veltra/utils/types/component-common";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
1
+ import { DeconstructValue, FormComponentProps } from "@veltra/utils";
3
2
 
4
3
  //#region src/types/switch.d.ts
5
4
  /** 开关组件属性 */
@@ -1,5 +1,5 @@
1
1
  import { TableProps } from "./table.js";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
2
+ import { DeconstructValue } from "@veltra/utils";
3
3
 
4
4
  //#region src/types/table-editor.d.ts
5
5
  /** 表格型编辑器组件属性 */
@@ -1,7 +1,6 @@
1
1
  import { ShallowRef, Slots, VNode } from "vue";
2
2
  import { Forest, TreeNode } from "@cat-kit/core";
3
- import { ComponentSize } from "@veltra/utils/types/component-common";
4
- import { DeconstructValue, RenderReturn } from "@veltra/utils/types/helper";
3
+ import { ComponentSize, DeconstructValue, RenderReturn } from "@veltra/utils";
5
4
 
6
5
  //#region src/types/table.d.ts
7
6
  type TableColumnAlign = 'left' | 'center' | 'right';
@@ -1,4 +1,4 @@
1
- import { ComponentProps } from "@veltra/utils/types/component-common";
1
+ import { ComponentProps } from "@veltra/utils";
2
2
 
3
3
  //#region src/types/tabs.d.ts
4
4
  type TabItem = {
@@ -1,4 +1,4 @@
1
- import { ColorType, ComponentSize } from "@veltra/utils/types/component-common";
1
+ import { ColorType, ComponentSize } from "@veltra/utils";
2
2
 
3
3
  //#region src/types/tag.d.ts
4
4
  /** 标签组件属性 */
@@ -1,5 +1,4 @@
1
- import { FormComponentProps } from "@veltra/utils/types/component-common";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
1
+ import { DeconstructValue, FormComponentProps } from "@veltra/utils";
3
2
 
4
3
  //#region src/types/text-editor.d.ts
5
4
  /** text-editor组件属性 */
@@ -1,5 +1,4 @@
1
- import { FormComponentProps } from "@veltra/utils/types/component-common";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
1
+ import { DeconstructValue, FormComponentProps } from "@veltra/utils";
3
2
 
4
3
  //#region src/types/textarea.d.ts
5
4
  /** textarea组件属性 */
@@ -1,5 +1,5 @@
1
+ import { DeconstructValue } from "@veltra/utils";
1
2
  import { UITheme } from "@veltra/styles/theme";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
3
3
 
4
4
  //#region src/types/theme.d.ts
5
5
  /** 主题组件属性 */
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from "vue";
2
- import { DeconstructValue } from "@veltra/utils/types/helper";
2
+ import { DeconstructValue } from "@veltra/utils";
3
3
 
4
4
  //#region src/types/tip.d.ts
5
5
  type TipDirection = 'top' | 'bottom' | 'left' | 'right';
@@ -1,7 +1,6 @@
1
1
  import { TreeProps } from "./tree.js";
2
2
  import { CSSProperties } from "vue";
3
- import { FormComponentProps } from "@veltra/utils/types/component-common";
4
- import { DeconstructValue } from "@veltra/utils/types/helper";
3
+ import { DeconstructValue, FormComponentProps } from "@veltra/utils";
5
4
 
6
5
  //#region src/types/tree-select.d.ts
7
6
  /** 树形选择器组件属性 */
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, ShallowRef } from "vue";
2
2
  import { Forest, ITreeNode } from "@cat-kit/core";
3
- import { DeconstructValue } from "@veltra/utils/types/helper";
3
+ import { DeconstructValue } from "@veltra/utils";
4
4
 
5
5
  //#region src/types/tree.d.ts
6
6
  interface TreeNode$1<Data extends Record<string, any> = Record<string, any>> extends ITreeNode<Data, TreeNode$1<Data>> {
@@ -1,4 +1,4 @@
1
- import { DeconstructValue } from "@veltra/utils/types/helper";
1
+ import { DeconstructValue } from "@veltra/utils";
2
2
 
3
3
  //#region src/types/watermark.d.ts
4
4
  /** watermark组件属性 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltra/desktop",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -15,13 +15,9 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "import": "./dist/index.js"
17
17
  },
18
- "./components/*/style.ts": {
19
- "types": "./dist/components/*/style.d.ts",
20
- "import": "./dist/components/*/style.js"
21
- },
22
18
  "./*": {
23
- "types": "./dist/*.d.ts",
24
- "import": "./dist/*.js"
19
+ "types": "./dist/*",
20
+ "import": "./dist/*"
25
21
  }
26
22
  },
27
23
  "scripts": {
@@ -44,11 +40,11 @@
44
40
  "@lexical/rich-text": "^0.42.0",
45
41
  "@lexical/selection": "^0.42.0",
46
42
  "@lexical/utils": "^0.42.0",
47
- "@veltra/compositions": "1.0.3",
48
- "@veltra/directives": "1.0.3",
49
- "@veltra/icons": "1.0.3",
50
- "@veltra/styles": "1.0.3",
51
- "@veltra/utils": "1.0.3",
43
+ "@veltra/compositions": "1.0.5",
44
+ "@veltra/directives": "1.0.5",
45
+ "@veltra/icons": "1.0.5",
46
+ "@veltra/styles": "1.0.5",
47
+ "@veltra/utils": "1.0.5",
52
48
  "codemirror": "^6.0.2",
53
49
  "lexical": "^0.42.0"
54
50
  },
@@ -61,11 +57,11 @@
61
57
  "vue-tsc": "^3.2.6"
62
58
  },
63
59
  "peerDependencies": {
64
- "@veltra/compositions": "1.0.3",
65
- "@veltra/directives": "1.0.3",
66
- "@veltra/icons": "1.0.3",
67
- "@veltra/styles": "1.0.3",
68
- "@veltra/utils": "1.0.3",
60
+ "@veltra/compositions": "1.0.5",
61
+ "@veltra/directives": "1.0.5",
62
+ "@veltra/icons": "1.0.5",
63
+ "@veltra/styles": "1.0.5",
64
+ "@veltra/utils": "1.0.5",
69
65
  "vue": "^3.5.0"
70
66
  }
71
67
  }
@@ -73,8 +73,7 @@
73
73
  <script lang="ts" setup>
74
74
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
75
75
  import { vRipple } from '@veltra/directives'
76
- import { bem, scrollIntoContainerView } from '@veltra/utils'
77
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
76
+ import { bem, FORM_EMPTY_CONTENT, scrollIntoContainerView } from '@veltra/utils'
78
77
  import { computed, shallowRef, watch } from 'vue'
79
78
 
80
79
  import type { AutoCompleteEmits, AutoCompleteProps, _AutoCompleteExposed } from '../../types'
@@ -107,8 +107,7 @@
107
107
  import { Forest, o } from '@cat-kit/core'
108
108
  import { useFormComponent, useFormFallbackProps, useUpdateLock } from '@veltra/compositions'
109
109
  import { ArrowDown, Close, Search } from '@veltra/icons/normal'
110
- import { bem } from '@veltra/utils'
111
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
110
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
112
111
  import { computed, provide, shallowRef, triggerRef, watch } from 'vue'
113
112
 
114
113
  import type { CascadeProps, CascadeEmits, DropdownExposed } from '../../types'
@@ -14,8 +14,7 @@
14
14
 
15
15
  <script lang="ts" setup>
16
16
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
17
- import { bem } from '@veltra/utils'
18
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
17
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
19
18
  import { computed } from 'vue'
20
19
 
21
20
  import type { CheckboxButtonProps, CheckboxButtonEmits } from '../../types'
@@ -27,8 +27,7 @@
27
27
 
28
28
  <script lang="ts" setup>
29
29
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
30
- import { bem } from '@veltra/utils'
31
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
30
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
32
31
 
33
32
  import type { CheckboxGroupProps, CheckboxGroupEmits } from '../../types'
34
33
  import { UCheckbox } from '../checkbox'
@@ -38,8 +38,7 @@
38
38
  import { date, type Dater } from '@cat-kit/core'
39
39
  import { useFormComponent, useFormFallbackProps, useUpdateLock } from '@veltra/compositions'
40
40
  import { Calendar } from '@veltra/icons/normal'
41
- import { bem } from '@veltra/utils'
42
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
41
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
43
42
  import { computed, shallowRef, watch } from 'vue'
44
43
 
45
44
  import type { DatePickerEmits, DatePickerProps } from '../../types'
@@ -64,8 +64,7 @@ import { date, type Dater } from '@cat-kit/core'
64
64
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
65
65
  import { useUpdateLock } from '@veltra/compositions'
66
66
  import { Calendar, Close } from '@veltra/icons/normal'
67
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
68
- import { bem } from '@veltra/utils'
67
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
69
68
  import { computed, shallowRef, watch } from 'vue'
70
69
 
71
70
  import type { DateRangePickerEmits, DateRangePickerProps, DropdownExposed } from '../../types'
@@ -1,6 +1,5 @@
1
1
  import { o } from '@cat-kit/core'
2
- import { bem, type BEM } from '@veltra/utils'
3
- import type { FormComponentProps } from '@veltra/utils/types'
2
+ import { bem, type BEM, type FormComponentProps } from '@veltra/utils'
4
3
 
5
4
  /**
6
5
  * 获取表单项的属性
@@ -1,5 +1,5 @@
1
1
  import { debounce } from '@cat-kit/core'
2
- import type { Undef } from '@veltra/utils/types/helper'
2
+ import type { Undef } from '@veltra/utils'
3
3
  import {
4
4
  computed,
5
5
  shallowRef,
@@ -36,8 +36,7 @@
36
36
  <script lang="ts" setup generic="GroupItem extends Record<string, any>">
37
37
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
38
38
  import { Minus, Plus } from '@veltra/icons/normal'
39
- import { bem } from '@veltra/utils'
40
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
39
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
41
40
  import { computed } from 'vue'
42
41
 
43
42
  import type { GroupInputEmits, GroupInputProps } from '../../types'
@@ -5,8 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script lang="ts" setup>
8
- import { bem } from '@veltra/utils'
9
- import { withUnit } from '@veltra/utils'
8
+ import { bem, withUnit } from '@veltra/utils'
10
9
  import { type CSSProperties, computed } from 'vue'
11
10
 
12
11
  import type { IconProps } from '../../types'
@@ -48,8 +48,7 @@
48
48
  <script lang="tsx" setup>
49
49
  import { useFocus, useFormComponent, useFormFallbackProps } from '@veltra/compositions'
50
50
  import { Close } from '@veltra/icons/normal'
51
- import { bem } from '@veltra/utils'
52
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
51
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
53
52
  import { computed, getCurrentInstance, ref, shallowRef, nextTick } from 'vue'
54
53
 
55
54
  import type { InputEmits, InputProps, _InputExposed } from '../../types'
@@ -28,8 +28,7 @@
28
28
 
29
29
  <script lang="ts" setup>
30
30
  import { useFallbackProps } from '@veltra/compositions'
31
- import { bem } from '@veltra/utils'
32
- import { zIndex } from '@veltra/utils'
31
+ import { bem, zIndex } from '@veltra/utils'
33
32
  import { ref, onMounted } from 'vue'
34
33
 
35
34
  import type { MessageConfirmProps, ColorType, ComponentSize } from '../../types'
@@ -139,8 +139,7 @@
139
139
  import { o as chainObj } from '@cat-kit/core'
140
140
  import { useFormComponent, useFormFallbackProps, useVirtual } from '@veltra/compositions'
141
141
  import { ArrowDown, Close, Search } from '@veltra/icons/normal'
142
- import { bem, withUnit } from '@veltra/utils'
143
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
142
+ import { bem, FORM_EMPTY_CONTENT, withUnit } from '@veltra/utils'
144
143
  import { computed, shallowRef, shallowReactive, watch, provide } from 'vue'
145
144
 
146
145
  import type {
@@ -49,9 +49,7 @@ import { $n, n, o, isUndef } from '@cat-kit/core'
49
49
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
50
50
  import { vRipple } from '@veltra/directives'
51
51
  import { ArrowDown, ArrowUp } from '@veltra/icons/normal'
52
- import { Tween } from '@veltra/utils'
53
- import { bem } from '@veltra/utils'
54
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
52
+ import { bem, FORM_EMPTY_CONTENT, Tween } from '@veltra/utils'
55
53
  import { computed, shallowRef, watch } from 'vue'
56
54
 
57
55
  import type { NumberInputEmits, NumberInputProps, InputExposed } from '../../types'
@@ -29,8 +29,7 @@
29
29
  <script lang="ts" setup>
30
30
  import { n, $n, o } from '@cat-kit/core'
31
31
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
32
- import { bem } from '@veltra/utils'
33
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
32
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
34
33
  import { computed, getCurrentInstance, nextTick, onMounted, watch } from 'vue'
35
34
 
36
35
  import type { NumberRangeInputEmits, NumberRangeInputProps, NumberRangeTuple } from '../../types'
@@ -20,8 +20,7 @@
20
20
 
21
21
  <script lang="ts" setup>
22
22
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
23
- import { bem } from '@veltra/utils'
24
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
23
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
25
24
 
26
25
  import type { RadioGroupProps, RadioGroupEmits } from '../../types'
27
26
  import URadio from '../radio/radio.vue'
@@ -116,8 +116,7 @@ import { o } from '@cat-kit/core'
116
116
  import { useFormComponent, useFormFallbackProps, useVirtual } from '@veltra/compositions'
117
117
  import { vFocus } from '@veltra/directives'
118
118
  import { ArrowDown, Search } from '@veltra/icons/normal'
119
- import { bem, withUnit, scrollIntoContainerView } from '@veltra/utils'
120
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
119
+ import { bem, FORM_EMPTY_CONTENT, scrollIntoContainerView, withUnit } from '@veltra/utils'
121
120
  import { computed, nextTick, shallowRef, watch } from 'vue'
122
121
 
123
122
  import type {
@@ -29,8 +29,7 @@
29
29
 
30
30
  <script lang="ts" setup>
31
31
  import { $n } from '@cat-kit/core'
32
- import { withUnit } from '@veltra/utils'
33
- import type { RenderReturn } from '@veltra/utils/types/helper'
32
+ import { withUnit, type RenderReturn } from '@veltra/utils'
34
33
  import { computed, inject } from 'vue'
35
34
 
36
35
  import { UNodeRender } from '../node-render'
@@ -42,8 +42,7 @@
42
42
  <script lang="ts" setup>
43
43
  import { useFocus, useFormComponent, useFormFallbackProps } from '@veltra/compositions'
44
44
  import { Close } from '@veltra/icons/normal'
45
- import { bem } from '@veltra/utils'
46
- import { FORM_EMPTY_CONTENT } from '@veltra/utils'
45
+ import { bem, FORM_EMPTY_CONTENT } from '@veltra/utils'
47
46
  import { computed, ref, shallowRef, watch } from 'vue'
48
47
 
49
48
  import type { TextareaProps, TextareaEmits, ComponentSize } from '../../types'
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  import type { ButtonProps } from './button'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  /** 动画组件属性 */
4
4
  export interface AnimationProps {
@@ -1,5 +1,4 @@
1
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { FormComponentProps, DeconstructValue } from '@veltra/utils'
3
2
 
4
3
  /** 自动补全组件组件属性 */
5
4
  export interface AutoCompleteProps extends FormComponentProps {
@@ -1,5 +1,4 @@
1
- import type { ColorType, ComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { ColorType, ComponentProps, DeconstructValue } from '@veltra/utils'
3
2
 
4
3
  /** 徽章组件属性 */
5
4
  export interface BadgeProps extends ComponentProps {
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  import type { ActionProps } from './action'
4
4
  import type { IFormModel } from './form'
@@ -1,5 +1,4 @@
1
- import type { ColorType, ComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { ColorType, ComponentProps, DeconstructValue } from '@veltra/utils'
3
2
  import type { Component, ShallowRef } from 'vue'
4
3
 
5
4
  /** 按钮类型 */
@@ -1,5 +1,5 @@
1
1
  import type { Dater } from '@cat-kit/core'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
2
+ import type { DeconstructValue } from '@veltra/utils'
3
3
 
4
4
  /** day接口 */
5
5
  export interface CalendarDay {
package/src/types/card.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { ComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { ComponentProps, DeconstructValue } from '@veltra/utils'
3
2
 
4
3
  /** 卡片组件属性 */
5
4
  export interface CardProps extends ComponentProps {
@@ -1,6 +1,5 @@
1
1
  import type { ITreeNode } from '@cat-kit/core'
2
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
3
- import type { DeconstructValue } from '@veltra/utils/types/helper'
2
+ import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
4
3
 
5
4
  export interface CascadeNode extends ITreeNode<Record<string, any>, CascadeNode> {
6
5
  children?: CascadeNode[]
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  /** check-tag组件属性 */
4
4
  export interface CheckTagProps {
@@ -1,4 +1,4 @@
1
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
1
+ import type { FormComponentProps } from '@veltra/utils'
2
2
 
3
3
  /** 复选框组, 用来选择一组数据组件属性 */
4
4
  export interface CheckboxGroupProps extends FormComponentProps {
@@ -1,4 +1,4 @@
1
- import type { ColorType, FormComponentProps } from '@veltra/utils/types/component-common'
1
+ import type { ColorType, FormComponentProps } from '@veltra/utils'
2
2
 
3
3
  /** 复选框组件属性 */
4
4
  export interface CheckboxProps extends FormComponentProps {
@@ -1,5 +1,4 @@
1
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
3
2
 
4
3
  export type CodeEditorLang = 'js' | 'sql' | 'java' | 'json'
5
4
 
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  /** 条件编辑器组件属性 */
4
4
  export interface ConditionEditorProps {
@@ -1,5 +1,4 @@
1
- import type { ComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { ComponentProps, DeconstructValue } from '@veltra/utils'
3
2
  import type { Component } from 'vue'
4
3
 
5
4
  /**
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  /** 过渡组件属性 */
4
4
  export interface CssTransitionProps {
@@ -1,5 +1,5 @@
1
1
  import type { Dater } from '@cat-kit/core'
2
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
2
+ import type { FormComponentProps } from '@veltra/utils'
3
3
 
4
4
  export type PanelType = 'day' | 'month' | 'year'
5
5
 
@@ -1,6 +1,5 @@
1
1
  import type { Dater } from '@cat-kit/core'
2
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
3
- import type { DeconstructValue } from '@veltra/utils/types/helper'
2
+ import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
4
3
 
5
4
  /** date-picker组件属性 */
6
5
  export interface DatePickerProps extends FormComponentProps {
@@ -1,6 +1,5 @@
1
1
  import type { Dater } from '@cat-kit/core'
2
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
3
- import type { DeconstructValue } from '@veltra/utils/types/helper'
2
+ import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
4
3
 
5
4
  /** date-range-picker组件属性 */
6
5
  export interface DateRangePickerProps extends FormComponentProps {
@@ -1,5 +1,4 @@
1
- import type { ComponentSize } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { ComponentSize, DeconstructValue } from '@veltra/utils'
3
2
 
4
3
  /** 对话框组件属性 */
5
4
  export interface DialogProps {
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  /** 抽屉方向 */
4
4
  export type DrawerDirection = 'left' | 'right' | 'top' | 'bottom'
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
  import type { CSSProperties } from 'vue'
3
3
 
4
4
  /** 下拉框组件属性 */
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  /** 空内容组件属性 */
4
4
  export interface EmptyProps {
@@ -1,5 +1,4 @@
1
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
3
2
 
4
3
  export interface VariableItem {
5
4
  label: string
@@ -1,5 +1,4 @@
1
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
3
2
 
4
3
  /** 文件上传器组件属性 */
5
4
  export interface UploaderProps extends FormComponentProps {
@@ -1,5 +1,4 @@
1
- import type { ComponentProps } from '@veltra/utils/types/component-common'
2
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { ComponentProps, DeconstructValue } from '@veltra/utils'
3
2
  import type { Component } from 'vue'
4
3
 
5
4
  import type { ButtonType } from './button'
@@ -1,4 +1,4 @@
1
- import type { FormComponentProps } from '@veltra/utils/types/component-common'
1
+ import type { FormComponentProps } from '@veltra/utils'
2
2
 
3
3
  /** 组件项组件属性 */
4
4
  export interface FormItemProps extends FormComponentProps {
package/src/types/form.ts CHANGED
@@ -1,6 +1,4 @@
1
- import type { ValidateRule } from '@veltra/utils/types'
2
- import type { ComponentProps } from '@veltra/utils/types/component-common'
3
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { ComponentProps, DeconstructValue, ValidateRule } from '@veltra/utils'
4
2
  import type { ShallowRef } from 'vue'
5
3
 
6
4
  export interface FormModelItem<Val = any> extends ValidateRule {
@@ -1,4 +1,4 @@
1
- import type { DeconstructValue } from '@veltra/utils/types/helper'
1
+ import type { DeconstructValue } from '@veltra/utils'
2
2
 
3
3
  /** 密码输入框组件组件属性 */
4
4
  export interface GridInputProps {