bfg-common 1.4.653 → 1.4.655
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/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces.ts +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +5 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +107 -100
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +115 -108
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
v-model:invalid="invalid"
|
|
5
5
|
v-model:selected-video-card="selectedVideoCard"
|
|
6
6
|
v-model:number-displays="numberDisplays"
|
|
7
|
-
v-model:total-video-memory="totalVideoMemory"
|
|
8
7
|
v-model:video-card-model="videoCardModel"
|
|
9
8
|
:is-edit="props.isEdit"
|
|
10
9
|
:error-validation-fields="props.errorValidationFields"
|
|
@@ -21,7 +20,6 @@
|
|
|
21
20
|
v-model:invalid="invalid"
|
|
22
21
|
v-model:selected-video-card="selectedVideoCard"
|
|
23
22
|
v-model:number-displays="numberDisplays"
|
|
24
|
-
v-model:total-video-memory="totalVideoMemory"
|
|
25
23
|
v-model:video-card-model="videoCardModel"
|
|
26
24
|
:is-edit="props.isEdit"
|
|
27
25
|
:error-validation-fields="props.errorValidationFields"
|
|
@@ -77,7 +75,7 @@ watch(isDisabled, (newValue) => {
|
|
|
77
75
|
})
|
|
78
76
|
const numberDisplays = ref<string>('1')
|
|
79
77
|
|
|
80
|
-
const totalVideoMemory = ref<number>(64)
|
|
78
|
+
// const totalVideoMemory = ref<number>(64)
|
|
81
79
|
const invalid = ref<boolean>(false)
|
|
82
80
|
watch(
|
|
83
81
|
invalid,
|
|
@@ -101,12 +99,13 @@ const videoCardModelName = computed<string>(
|
|
|
101
99
|
)
|
|
102
100
|
|
|
103
101
|
watch(
|
|
104
|
-
[numberDisplays, totalVideoMemory, videoCardModel],
|
|
102
|
+
// [numberDisplays, totalVideoMemory, videoCardModel],
|
|
103
|
+
[numberDisplays, videoCardModel],
|
|
105
104
|
() => {
|
|
106
105
|
emits('send-data', {
|
|
107
106
|
adapter: videoCardModel.value,
|
|
108
107
|
displays: +numberDisplays.value,
|
|
109
|
-
memory_mb: totalVideoMemory.value,
|
|
108
|
+
// memory_mb: totalVideoMemory.value,
|
|
110
109
|
})
|
|
111
110
|
},
|
|
112
111
|
{ immediate: true }
|
|
@@ -121,7 +120,7 @@ watch(
|
|
|
121
120
|
selectedVideoCard.value = 1
|
|
122
121
|
videoCardModel.value = newValue.adapter
|
|
123
122
|
numberDisplays.value = '' + newValue.displays
|
|
124
|
-
totalVideoMemory.value = newValue.memory_mb
|
|
123
|
+
// totalVideoMemory.value = newValue.memory_mb
|
|
125
124
|
},
|
|
126
125
|
{ immediate: true }
|
|
127
126
|
)
|
|
@@ -1,100 +1,107 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<
|
|
50
|
-
v-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<ui-stack-block :has-children="true" test-id="video-card-stack-block">
|
|
3
|
+
<template #stackBlockKey>
|
|
4
|
+
<div
|
|
5
|
+
id="vm-wizard-toggle-block-video-card"
|
|
6
|
+
data-id="vm-wizard-toggle-block-video-card"
|
|
7
|
+
class="flex-align-center"
|
|
8
|
+
>
|
|
9
|
+
<span class="title"
|
|
10
|
+
>{{ localization.common.videoCard }}:
|
|
11
|
+
{{ props.videoCardModelName }}</span
|
|
12
|
+
>
|
|
13
|
+
<ui-icon
|
|
14
|
+
v-show="invalid"
|
|
15
|
+
width="18px"
|
|
16
|
+
height="18px"
|
|
17
|
+
name="error-outline"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
<template #stackBlockContent>
|
|
22
|
+
<ui-select
|
|
23
|
+
id="vm-wizard-video-card"
|
|
24
|
+
v-model="selectedVideoCard"
|
|
25
|
+
width="auto"
|
|
26
|
+
:items="props.videoCardOptions"
|
|
27
|
+
:disabled="props.isEdit && props.state !== 1"
|
|
28
|
+
test-id="vm-wizard-video-card-select"
|
|
29
|
+
class="vm-wizard-video-card video-card-select"
|
|
30
|
+
:error-text="props.errorText"
|
|
31
|
+
@click.stop
|
|
32
|
+
/>
|
|
33
|
+
</template>
|
|
34
|
+
<template #stackChildren>
|
|
35
|
+
<common-vm-actions-common-customize-hardware-virtual-hardware-video-card-number-displays
|
|
36
|
+
v-model:number-displays="numberDisplays"
|
|
37
|
+
:disabled="props.isDisabled"
|
|
38
|
+
:error-validation-fields="props.errorValidationFields"
|
|
39
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
40
|
+
/>
|
|
41
|
+
<!-- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-total-video-memory-->
|
|
42
|
+
<!-- v-model:total-video-memory="totalVideoMemory"-->
|
|
43
|
+
<!-- :disabled="props.isDisabled"-->
|
|
44
|
+
<!-- :is-edit="props.isEdit"-->
|
|
45
|
+
<!-- :error-validation-fields="props.errorValidationFields"-->
|
|
46
|
+
<!-- @invalid="invalid = $event"-->
|
|
47
|
+
<!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
|
|
48
|
+
<!-- />-->
|
|
49
|
+
<!-- <templates-home-vm-actions-add-customize-hardware-virtual-hardware-video-card-graphics-->
|
|
50
|
+
<!-- v-models:graphics="graphics"-->
|
|
51
|
+
<!-- />-->
|
|
52
|
+
<common-vm-actions-common-customize-hardware-virtual-hardware-video-card-model
|
|
53
|
+
v-model:video-card-model="videoCardModel"
|
|
54
|
+
:disabled="props.isDisabled"
|
|
55
|
+
/>
|
|
56
|
+
</template>
|
|
57
|
+
</ui-stack-block>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script setup lang="ts">
|
|
61
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
62
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
63
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
64
|
+
|
|
65
|
+
const invalid = defineModel<boolean>('invalid', { required: true })
|
|
66
|
+
const selectedVideoCard = defineModel<string>('selectedVideoCard', {
|
|
67
|
+
required: true,
|
|
68
|
+
})
|
|
69
|
+
const numberDisplays = defineModel<string>('numberDisplays', { required: true })
|
|
70
|
+
// const totalVideoMemory = defineModel<number>('totalVideoMemory', {
|
|
71
|
+
// required: true,
|
|
72
|
+
// })
|
|
73
|
+
const videoCardModel = defineModel<string>('videoCardModel', { required: true })
|
|
74
|
+
|
|
75
|
+
const props = defineProps<{
|
|
76
|
+
isEdit: boolean
|
|
77
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
78
|
+
videoCardModelName: string
|
|
79
|
+
errorText: string
|
|
80
|
+
videoCardOptions: UI_I_OptionItem[]
|
|
81
|
+
isDisabled: boolean
|
|
82
|
+
state?: string | number
|
|
83
|
+
}>()
|
|
84
|
+
const emits = defineEmits<{
|
|
85
|
+
(event: 'remove-error'): void
|
|
86
|
+
(event: 'remove-error-by-title', value: string): void
|
|
87
|
+
}>()
|
|
88
|
+
|
|
89
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<style scoped lang="scss">
|
|
93
|
+
.title {
|
|
94
|
+
margin-right: 10px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:deep(.video-card-select .ui-main-select-toggle) {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
width: 196px;
|
|
101
|
+
}
|
|
102
|
+
.light-theme {
|
|
103
|
+
:deep(.video-card-select .ui-main-select-toggle) {
|
|
104
|
+
background-color: #ffffff;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -1,108 +1,115 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="hardware-video-card">
|
|
3
|
-
<atoms-stack-block :has-children="true" test-id="video-card-stack-block">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
<div
|
|
6
|
-
id="vm-wizard-toggle-block-video-card"
|
|
7
|
-
data-id="vm-wizard-toggle-block-video-card"
|
|
8
|
-
class="flex-align-center"
|
|
9
|
-
>
|
|
10
|
-
<span
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<!--
|
|
65
|
-
<!--
|
|
66
|
-
<!-- />-->
|
|
67
|
-
<
|
|
68
|
-
v-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</template>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="hardware-video-card">
|
|
3
|
+
<atoms-stack-block :has-children="true" test-id="video-card-stack-block">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
<div
|
|
6
|
+
id="vm-wizard-toggle-block-video-card"
|
|
7
|
+
data-id="vm-wizard-toggle-block-video-card"
|
|
8
|
+
class="flex-align-center"
|
|
9
|
+
>
|
|
10
|
+
<span
|
|
11
|
+
>{{ localization.common.videoCard }}:
|
|
12
|
+
{{ props.videoCardModelName }}</span
|
|
13
|
+
>
|
|
14
|
+
<atoms-the-icon
|
|
15
|
+
v-show="invalid"
|
|
16
|
+
width="24px"
|
|
17
|
+
height="24px"
|
|
18
|
+
class="is-error tooltip-trigger"
|
|
19
|
+
name="info"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<template #stackBlockContent>
|
|
24
|
+
<atoms-tooltip-error
|
|
25
|
+
:has-error="!!props.errorText"
|
|
26
|
+
selector=".vm-wizard-video-card"
|
|
27
|
+
@remove="emits('remove-error')"
|
|
28
|
+
>
|
|
29
|
+
<template #elem>
|
|
30
|
+
<div class="select">
|
|
31
|
+
<select
|
|
32
|
+
id="vm-wizard-video-card"
|
|
33
|
+
v-model="selectedVideoCard"
|
|
34
|
+
data-id="vm-wizard-video-card-select"
|
|
35
|
+
class="vm-wizard-video-card input-text-color"
|
|
36
|
+
:disabled="props.isEdit && props.state !== 1"
|
|
37
|
+
@click.stop
|
|
38
|
+
>
|
|
39
|
+
<option
|
|
40
|
+
v-for="(item, key) in props.videoCardOptions"
|
|
41
|
+
:key="key"
|
|
42
|
+
:value="item.value"
|
|
43
|
+
>
|
|
44
|
+
{{ item.text }}
|
|
45
|
+
</option>
|
|
46
|
+
</select>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
<template #content>{{ props.errorText }}</template>
|
|
50
|
+
</atoms-tooltip-error>
|
|
51
|
+
</template>
|
|
52
|
+
<template #stackChildren>
|
|
53
|
+
<common-vm-actions-common-customize-hardware-virtual-hardware-video-card-number-displays
|
|
54
|
+
v-model:number-displays="numberDisplays"
|
|
55
|
+
:disabled="props.isDisabled"
|
|
56
|
+
:error-validation-fields="props.errorValidationFields"
|
|
57
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
58
|
+
/>
|
|
59
|
+
<!-- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-total-video-memory-->
|
|
60
|
+
<!-- v-model:total-video-memory="totalVideoMemory"-->
|
|
61
|
+
<!-- :disabled="props.isDisabled"-->
|
|
62
|
+
<!-- :is-edit="props.isEdit"-->
|
|
63
|
+
<!-- :error-validation-fields="props.errorValidationFields"-->
|
|
64
|
+
<!-- @invalid="invalid = $event"-->
|
|
65
|
+
<!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
|
|
66
|
+
<!-- />-->
|
|
67
|
+
<!-- <templates-home-vm-actions-add-customize-hardware-virtual-hardware-video-card-graphics-->
|
|
68
|
+
<!-- v-models:graphics="graphics"-->
|
|
69
|
+
<!-- />-->
|
|
70
|
+
<common-vm-actions-common-customize-hardware-virtual-hardware-video-card-model
|
|
71
|
+
v-model:video-card-model="videoCardModel"
|
|
72
|
+
:disabled="props.isDisabled"
|
|
73
|
+
/>
|
|
74
|
+
</template>
|
|
75
|
+
</atoms-stack-block>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<script setup lang="ts">
|
|
80
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
81
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
82
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
83
|
+
|
|
84
|
+
const invalid = defineModel<boolean>('invalid', { required: true })
|
|
85
|
+
const selectedVideoCard = defineModel<string>('selectedVideoCard', {
|
|
86
|
+
required: true,
|
|
87
|
+
})
|
|
88
|
+
const numberDisplays = defineModel<string>('numberDisplays', { required: true })
|
|
89
|
+
// const totalVideoMemory = defineModel<number>('totalVideoMemory', {
|
|
90
|
+
// required: true,
|
|
91
|
+
// })
|
|
92
|
+
const videoCardModel = defineModel<string>('videoCardModel', { required: true })
|
|
93
|
+
|
|
94
|
+
const props = defineProps<{
|
|
95
|
+
isEdit: boolean
|
|
96
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
97
|
+
videoCardModelName: string
|
|
98
|
+
errorText: string
|
|
99
|
+
videoCardOptions: UI_I_OptionItem[]
|
|
100
|
+
isDisabled: boolean
|
|
101
|
+
state?: string | number
|
|
102
|
+
}>()
|
|
103
|
+
const emits = defineEmits<{
|
|
104
|
+
(event: 'remove-error'): void
|
|
105
|
+
(event: 'remove-error-by-title', value: string): void
|
|
106
|
+
}>()
|
|
107
|
+
|
|
108
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<style scoped lang="scss">
|
|
112
|
+
#network-connect {
|
|
113
|
+
margin-right: 4px;
|
|
114
|
+
}
|
|
115
|
+
</style>
|