@veltra/desktop 1.0.2 → 1.0.4
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.
- package/dist/components/action/action-group.vue.d.ts +1 -1
- package/dist/components/action/action.vue.d.ts +1 -1
- package/dist/components/auto-complete/auto-complete.js.map +1 -1
- package/dist/components/auto-complete/auto-complete.vue.d.ts +1 -1
- package/dist/components/button/button.vue.d.ts +1 -1
- package/dist/components/cascade/cascade.js.map +1 -1
- package/dist/components/cascade/cascade.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-button.js.map +1 -1
- package/dist/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/components/date-panel/date-panel.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker.js.map +1 -1
- package/dist/components/date-picker/date-picker.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
- package/dist/components/form-item/helper.js.map +1 -1
- package/dist/components/grid/use-responsive.js.map +1 -1
- package/dist/components/group-input/group-input.js.map +1 -1
- package/dist/components/icon/icon.js.map +1 -1
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/input/input.vue.d.ts +3 -3
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/message-confirm/message-confirm.js.map +1 -1
- package/dist/components/multi-select/multi-select.js.map +1 -1
- package/dist/components/multi-select/multi-select.vue.d.ts +1 -1
- package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +3 -3
- package/dist/components/number-input/number-input.js.map +1 -1
- package/dist/components/number-input/number-input.vue.d.ts +1 -1
- package/dist/components/number-range-input/number-range-input.js.map +1 -1
- package/dist/components/number-range-input/number-range-input.vue.d.ts +1 -1
- package/dist/components/password-input/password-input.vue.d.ts +1 -1
- package/dist/components/radio-group/radio-group.js.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/table/table-foot.js.map +1 -1
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/textarea/textarea.js.map +1 -1
- package/dist/components/textarea/textarea.vue.d.ts +3 -3
- package/dist/components/tree-select/tree-select.vue.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/types/action.d.ts +1 -1
- package/dist/types/animation.d.ts +1 -1
- package/dist/types/auto-complete.d.ts +1 -2
- package/dist/types/badge.d.ts +1 -2
- package/dist/types/batch-edit.d.ts +1 -1
- package/dist/types/button.d.ts +1 -2
- package/dist/types/calendar.d.ts +1 -1
- package/dist/types/card.d.ts +1 -2
- package/dist/types/cascade.d.ts +1 -2
- package/dist/types/check-tag.d.ts +1 -1
- package/dist/types/checkbox-group.d.ts +1 -1
- package/dist/types/checkbox.d.ts +1 -1
- package/dist/types/code-editor.d.ts +1 -2
- package/dist/types/condition-editor.d.ts +1 -1
- package/dist/types/context-menu.d.ts +1 -2
- package/dist/types/css-transition.d.ts +1 -1
- package/dist/types/date-panel.d.ts +1 -1
- package/dist/types/date-picker.d.ts +1 -2
- package/dist/types/date-range-picker.d.ts +1 -2
- package/dist/types/dialog.d.ts +1 -2
- package/dist/types/drawer.d.ts +1 -1
- package/dist/types/dropdown.d.ts +1 -1
- package/dist/types/empty.d.ts +1 -1
- package/dist/types/expression-editor.d.ts +1 -2
- package/dist/types/file-picker.d.ts +1 -2
- package/dist/types/float-button.d.ts +1 -2
- package/dist/types/form-item.d.ts +1 -1
- package/dist/types/form.d.ts +1 -3
- package/dist/types/grid-input.d.ts +1 -1
- package/dist/types/grid.d.ts +1 -2
- package/dist/types/group-input.d.ts +1 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/layout.d.ts +1 -1
- package/dist/types/list.d.ts +1 -2
- package/dist/types/loading.d.ts +1 -1
- package/dist/types/menu.d.ts +1 -1
- package/dist/types/message-confirm.d.ts +1 -2
- package/dist/types/message.d.ts +1 -1
- package/dist/types/multi-auto-complete.d.ts +1 -1
- package/dist/types/multi-select.d.ts +1 -2
- package/dist/types/multi-tree-select.d.ts +1 -2
- package/dist/types/notification.d.ts +1 -2
- package/dist/types/paginator.d.ts +1 -1
- package/dist/types/palette.d.ts +1 -2
- package/dist/types/password-input.d.ts +1 -1
- package/dist/types/pop-confirm.d.ts +1 -1
- package/dist/types/pop.d.ts +1 -1
- package/dist/types/progress-nodes.d.ts +1 -2
- package/dist/types/progress.d.ts +1 -2
- package/dist/types/quick-batch-edit.d.ts +1 -1
- package/dist/types/radio-group.d.ts +1 -2
- package/dist/types/radio.d.ts +1 -2
- package/dist/types/rich-text-editor.d.ts +1 -2
- package/dist/types/scroll.d.ts +1 -1
- package/dist/types/select.d.ts +1 -2
- package/dist/types/slider.d.ts +1 -2
- package/dist/types/steps.d.ts +1 -2
- package/dist/types/switch.d.ts +1 -2
- package/dist/types/table-editor.d.ts +1 -1
- package/dist/types/table.d.ts +1 -2
- package/dist/types/tabs.d.ts +1 -1
- package/dist/types/tag.d.ts +1 -1
- package/dist/types/text-editor.d.ts +1 -2
- package/dist/types/textarea.d.ts +1 -2
- package/dist/types/theme.d.ts +1 -1
- package/dist/types/tip.d.ts +1 -1
- package/dist/types/tree-select.d.ts +1 -2
- package/dist/types/tree.d.ts +1 -1
- package/dist/types/watermark.d.ts +1 -1
- package/package.json +13 -20
- package/src/components/auto-complete/auto-complete.vue +1 -2
- package/src/components/cascade/cascade.vue +1 -2
- package/src/components/checkbox/checkbox-button.vue +1 -2
- package/src/components/checkbox-group/checkbox-group.vue +1 -2
- package/src/components/date-picker/date-picker.vue +1 -2
- package/src/components/date-range-picker/date-range-picker.vue +1 -2
- package/src/components/form-item/helper.ts +1 -2
- package/src/components/grid/use-responsive.ts +1 -1
- package/src/components/group-input/group-input.vue +1 -2
- package/src/components/icon/icon.vue +1 -2
- package/src/components/input/input.vue +1 -2
- package/src/components/message-confirm/message-confirm.vue +1 -2
- package/src/components/multi-select/multi-select.vue +1 -2
- package/src/components/number-input/number-input.vue +1 -3
- package/src/components/number-range-input/number-range-input.vue +1 -2
- package/src/components/radio-group/radio-group.vue +1 -2
- package/src/components/select/select.vue +1 -2
- package/src/components/table/table-foot.vue +1 -2
- package/src/components/textarea/textarea.vue +1 -2
- package/src/types/action.ts +1 -1
- package/src/types/animation.ts +1 -1
- package/src/types/auto-complete.ts +1 -2
- package/src/types/badge.ts +1 -2
- package/src/types/batch-edit.ts +1 -1
- package/src/types/button.ts +1 -2
- package/src/types/calendar.ts +1 -1
- package/src/types/card.ts +1 -2
- package/src/types/cascade.ts +1 -2
- package/src/types/check-tag.ts +1 -1
- package/src/types/checkbox-group.ts +1 -1
- package/src/types/checkbox.ts +1 -1
- package/src/types/code-editor.ts +1 -2
- package/src/types/condition-editor.ts +1 -1
- package/src/types/context-menu.ts +1 -2
- package/src/types/css-transition.ts +1 -1
- package/src/types/date-panel.ts +1 -1
- package/src/types/date-picker.ts +1 -2
- package/src/types/date-range-picker.ts +1 -2
- package/src/types/dialog.ts +1 -2
- package/src/types/drawer.ts +1 -1
- package/src/types/dropdown.ts +1 -1
- package/src/types/empty.ts +1 -1
- package/src/types/expression-editor.ts +1 -2
- package/src/types/file-picker.ts +1 -2
- package/src/types/float-button.ts +1 -2
- package/src/types/form-item.ts +1 -1
- package/src/types/form.ts +1 -3
- package/src/types/grid-input.ts +1 -1
- package/src/types/grid.ts +1 -2
- package/src/types/group-input.ts +1 -2
- package/src/types/index.ts +1 -1
- package/src/types/layout.ts +1 -1
- package/src/types/list.ts +1 -2
- package/src/types/loading.ts +1 -1
- package/src/types/menu.ts +1 -1
- package/src/types/message-confirm.ts +1 -2
- package/src/types/message.ts +1 -1
- package/src/types/multi-auto-complete.ts +1 -1
- package/src/types/multi-select.ts +1 -2
- package/src/types/multi-tree-select.ts +1 -2
- package/src/types/notification.ts +1 -2
- package/src/types/paginator.ts +1 -1
- package/src/types/palette.ts +1 -2
- package/src/types/password-input.ts +1 -1
- package/src/types/pop-confirm.ts +1 -1
- package/src/types/pop.ts +1 -1
- package/src/types/progress-nodes.ts +1 -2
- package/src/types/progress.ts +1 -2
- package/src/types/quick-batch-edit.ts +1 -1
- package/src/types/radio-group.ts +1 -2
- package/src/types/radio.ts +1 -2
- package/src/types/rich-text-editor.ts +1 -2
- package/src/types/scroll.ts +1 -1
- package/src/types/select.ts +1 -2
- package/src/types/slider.ts +1 -2
- package/src/types/steps.ts +1 -2
- package/src/types/switch.ts +1 -2
- package/src/types/table-editor.ts +1 -1
- package/src/types/table.ts +1 -2
- package/src/types/tabs.ts +1 -1
- package/src/types/tag.ts +1 -1
- package/src/types/text-editor.ts +1 -2
- package/src/types/textarea.ts +1 -2
- package/src/types/theme.ts +1 -1
- package/src/types/tip.ts +1 -1
- package/src/types/tree-select.ts +1 -2
- package/src/types/tree.ts +1 -1
- package/src/types/watermark.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltra/desktop",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"src"
|
|
@@ -13,18 +13,11 @@
|
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
|
-
"development": "./src/index.ts",
|
|
17
16
|
"import": "./dist/index.js"
|
|
18
17
|
},
|
|
19
|
-
"./components/*/style.ts": {
|
|
20
|
-
"types": "./dist/components/*/style.d.ts",
|
|
21
|
-
"development": "./src/components/*/style.ts",
|
|
22
|
-
"import": "./dist/components/*/style.js"
|
|
23
|
-
},
|
|
24
18
|
"./*": {
|
|
25
|
-
"types": "./dist
|
|
26
|
-
"
|
|
27
|
-
"import": "./dist/*.js"
|
|
19
|
+
"types": "./dist/*",
|
|
20
|
+
"import": "./dist/*"
|
|
28
21
|
}
|
|
29
22
|
},
|
|
30
23
|
"scripts": {
|
|
@@ -47,11 +40,11 @@
|
|
|
47
40
|
"@lexical/rich-text": "^0.42.0",
|
|
48
41
|
"@lexical/selection": "^0.42.0",
|
|
49
42
|
"@lexical/utils": "^0.42.0",
|
|
50
|
-
"@veltra/compositions": "1.0.
|
|
51
|
-
"@veltra/directives": "1.0.
|
|
52
|
-
"@veltra/icons": "1.0.
|
|
53
|
-
"@veltra/styles": "1.0.
|
|
54
|
-
"@veltra/utils": "1.0.
|
|
43
|
+
"@veltra/compositions": "1.0.4",
|
|
44
|
+
"@veltra/directives": "1.0.4",
|
|
45
|
+
"@veltra/icons": "1.0.4",
|
|
46
|
+
"@veltra/styles": "1.0.4",
|
|
47
|
+
"@veltra/utils": "1.0.4",
|
|
55
48
|
"codemirror": "^6.0.2",
|
|
56
49
|
"lexical": "^0.42.0"
|
|
57
50
|
},
|
|
@@ -64,11 +57,11 @@
|
|
|
64
57
|
"vue-tsc": "^3.2.6"
|
|
65
58
|
},
|
|
66
59
|
"peerDependencies": {
|
|
67
|
-
"@veltra/compositions": "1.0.
|
|
68
|
-
"@veltra/directives": "1.0.
|
|
69
|
-
"@veltra/icons": "1.0.
|
|
70
|
-
"@veltra/styles": "1.0.
|
|
71
|
-
"@veltra/utils": "1.0.
|
|
60
|
+
"@veltra/compositions": "1.0.4",
|
|
61
|
+
"@veltra/directives": "1.0.4",
|
|
62
|
+
"@veltra/icons": "1.0.4",
|
|
63
|
+
"@veltra/styles": "1.0.4",
|
|
64
|
+
"@veltra/utils": "1.0.4",
|
|
72
65
|
"vue": "^3.5.0"
|
|
73
66
|
}
|
|
74
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'
|
|
@@ -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,
|
|
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'
|
package/src/types/action.ts
CHANGED
package/src/types/animation.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
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 {
|
package/src/types/badge.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ColorType, ComponentProps } from '@veltra/utils
|
|
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 {
|
package/src/types/batch-edit.ts
CHANGED
package/src/types/button.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ColorType, ComponentProps } from '@veltra/utils
|
|
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
|
/** 按钮类型 */
|
package/src/types/calendar.ts
CHANGED
package/src/types/card.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ComponentProps } from '@veltra/utils
|
|
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 {
|
package/src/types/cascade.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ITreeNode } from '@cat-kit/core'
|
|
2
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
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[]
|
package/src/types/check-tag.ts
CHANGED
package/src/types/checkbox.ts
CHANGED
package/src/types/code-editor.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
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
|
|
package/src/types/date-panel.ts
CHANGED
package/src/types/date-picker.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Dater } from '@cat-kit/core'
|
|
2
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
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
|
|
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 {
|
package/src/types/dialog.ts
CHANGED
package/src/types/drawer.ts
CHANGED
package/src/types/dropdown.ts
CHANGED
package/src/types/empty.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
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
|
package/src/types/file-picker.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
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
|
|
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'
|
package/src/types/form-item.ts
CHANGED
package/src/types/form.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { ValidateRule } from '@veltra/utils
|
|
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 {
|
package/src/types/grid-input.ts
CHANGED
package/src/types/grid.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { BreakpointName } from '@veltra/utils
|
|
2
|
-
import type { DeconstructValue } from '@veltra/utils/types/helper'
|
|
1
|
+
import type { BreakpointName, DeconstructValue } from '@veltra/utils'
|
|
3
2
|
import type { ShallowRef } from 'vue'
|
|
4
3
|
|
|
5
4
|
export interface Breakpoint {
|
package/src/types/group-input.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
2
|
-
import type { DeconstructValue } from '@veltra/utils/types/helper'
|
|
1
|
+
import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
|
|
3
2
|
import type { StyleValue } from 'vue'
|
|
4
3
|
|
|
5
4
|
/** 分组输入组件属性 */
|
package/src/types/index.ts
CHANGED
package/src/types/layout.ts
CHANGED
package/src/types/list.ts
CHANGED
package/src/types/loading.ts
CHANGED
package/src/types/menu.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ColorType, ComponentProps } from '@veltra/utils
|
|
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 MessageConfirmProps extends ComponentProps {
|
package/src/types/message.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
2
|
-
import type { DeconstructValue } from '@veltra/utils/types/helper'
|
|
1
|
+
import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
|
|
3
2
|
import type { CSSProperties } from 'vue'
|
|
4
3
|
|
|
5
4
|
/** multi-select组件属性 */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FormComponentProps } from '@veltra/utils
|
|
2
|
-
import type { DeconstructValue } from '@veltra/utils/types/helper'
|
|
1
|
+
import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
|
|
3
2
|
import type { CSSProperties } from 'vue'
|
|
4
3
|
|
|
5
4
|
import type { TreeProps } from './tree'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ColorType } from '@veltra/utils
|
|
2
|
-
import type { DeconstructValue } from '@veltra/utils/types/helper'
|
|
1
|
+
import type { ColorType, DeconstructValue } from '@veltra/utils'
|
|
3
2
|
import type { DefineComponent, RendererElement } from 'vue'
|
|
4
3
|
|
|
5
4
|
/** 通知组件组件属性 */
|
package/src/types/paginator.ts
CHANGED