bfg-common 1.5.239 → 1.5.241
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/assets/scss/common/theme.scss +6 -0
- package/components/atoms/table/dataGrid/DataGrid.vue +1 -1
- package/components/common/browse/BrowseNew.vue +8 -2
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +5 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +7 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +194 -190
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +246 -237
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +158 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +8 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +8 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +8 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +4 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +36 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +5 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +5 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +85 -81
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +71 -67
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +150 -149
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +146 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +5 -1
- package/components/common/vm/actions/common/select/storage/new/New.vue +5 -1
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +2 -1
- package/package.json +2 -2
|
@@ -1,81 +1,85 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-stack-block
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
v-model:boot
|
|
27
|
-
:is-disabled="isDisabled"
|
|
28
|
-
/>
|
|
29
|
-
<common-vm-actions-common-customize-hardware-vmoptions-boot-options-
|
|
30
|
-
v-model:boot-
|
|
31
|
-
:is-disabled="isDisabled"
|
|
32
|
-
/>
|
|
33
|
-
<common-vm-actions-common-customize-hardware-vmoptions-boot-options-
|
|
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
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<ui-stack-block
|
|
3
|
+
:has-children="true"
|
|
4
|
+
test-id="boot-options-stack-block"
|
|
5
|
+
is-toggle-on-stack-view-key
|
|
6
|
+
>
|
|
7
|
+
<template #stackBlockKey>
|
|
8
|
+
<div
|
|
9
|
+
id="vm-wizard-toggle-block-boot-option"
|
|
10
|
+
data-id="vm-wizard-toggle-block-boot-option"
|
|
11
|
+
class="flex-align-center"
|
|
12
|
+
>
|
|
13
|
+
<span>{{ localization.common.bootOptions }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<template #stackChildren>
|
|
17
|
+
<common-vm-actions-common-customize-hardware-vmoptions-boot-options-firmware
|
|
18
|
+
v-model:firmware="firmware"
|
|
19
|
+
:error-validation-fields="props.errorValidationFields"
|
|
20
|
+
:is-edit="props.isEdit"
|
|
21
|
+
:is-disabled="isDisabled"
|
|
22
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
23
|
+
/>
|
|
24
|
+
<common-vm-actions-common-customize-hardware-vmoptions-boot-options-secure
|
|
25
|
+
v-if="firmware === 'uefi'"
|
|
26
|
+
v-model:secure-boot="secureBoot"
|
|
27
|
+
:is-disabled="isDisabled"
|
|
28
|
+
/>
|
|
29
|
+
<common-vm-actions-common-customize-hardware-vmoptions-boot-options-menu
|
|
30
|
+
v-model:boot-menu="bootMenu"
|
|
31
|
+
:is-disabled="isDisabled"
|
|
32
|
+
/>
|
|
33
|
+
<common-vm-actions-common-customize-hardware-vmoptions-boot-options-delay
|
|
34
|
+
v-model:boot-delay="bootDelay"
|
|
35
|
+
:is-disabled="isDisabled"
|
|
36
|
+
/>
|
|
37
|
+
<common-vm-actions-common-customize-hardware-vmoptions-boot-options-order
|
|
38
|
+
:hard-disks="props.hardDisks"
|
|
39
|
+
:cd-dvd-drives="props.cdDvdDrives"
|
|
40
|
+
:networks="props.networks"
|
|
41
|
+
:is-disabled="isDisabled"
|
|
42
|
+
@change="emits('change-boot-order', $event)"
|
|
43
|
+
/>
|
|
44
|
+
</template>
|
|
45
|
+
</ui-stack-block>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script setup lang="ts">
|
|
49
|
+
import type {
|
|
50
|
+
UI_I_SendDataNewCdDvdDrive,
|
|
51
|
+
UI_I_SendDataNewHardDisk,
|
|
52
|
+
UI_I_SendDataNewNetwork,
|
|
53
|
+
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
54
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
55
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
56
|
+
|
|
57
|
+
const firmware = defineModel<string>('firmware', { required: true })
|
|
58
|
+
const secureBoot = defineModel<boolean>('secureBoot', { required: true })
|
|
59
|
+
const bootMenu = defineModel<boolean>('bootMenu', { required: true })
|
|
60
|
+
const bootDelay = defineModel<number>('bootDelay', { required: true })
|
|
61
|
+
|
|
62
|
+
const props = defineProps<{
|
|
63
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
64
|
+
hardDisks: UI_I_SendDataNewHardDisk[] | null
|
|
65
|
+
cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
|
|
66
|
+
networks: UI_I_SendDataNewNetwork[] | null
|
|
67
|
+
isEdit: boolean
|
|
68
|
+
isDisabled: boolean
|
|
69
|
+
}>()
|
|
70
|
+
const emits = defineEmits<{
|
|
71
|
+
(
|
|
72
|
+
event: 'change-boot-order',
|
|
73
|
+
value: [
|
|
74
|
+
UI_I_SendDataNewHardDisk[],
|
|
75
|
+
UI_I_SendDataNewCdDvdDrive[],
|
|
76
|
+
UI_I_SendDataNewNetwork[]
|
|
77
|
+
]
|
|
78
|
+
): void
|
|
79
|
+
(event: 'remove-error-by-title', value: string): void
|
|
80
|
+
}>()
|
|
81
|
+
|
|
82
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,67 +1,71 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-stack-block :has-children="false">
|
|
3
|
-
<template #stackBlockKey>
|
|
4
|
-
{{ localization.common.bootOrder }}
|
|
5
|
-
</template>
|
|
6
|
-
<template #stackBlockContent>
|
|
7
|
-
<ui-drag-drop-list
|
|
8
|
-
:items="props.bootList"
|
|
9
|
-
grab-item-key="text"
|
|
10
|
-
:disabled="props.isDisabled"
|
|
11
|
-
@drop="emits('change-order', $event)"
|
|
12
|
-
@grab="onGrab"
|
|
13
|
-
>
|
|
14
|
-
<template
|
|
15
|
-
v-for="(item, index) in props.bootList"
|
|
16
|
-
:key="index"
|
|
17
|
-
#[`leftSide${index}`]
|
|
18
|
-
>
|
|
19
|
-
<ui-checkbox
|
|
20
|
-
v-model="item.isChecked"
|
|
21
|
-
:test-id="item.testId"
|
|
22
|
-
size="md"
|
|
23
|
-
:disabled="props.isDisabled"
|
|
24
|
-
/>
|
|
25
|
-
</template>
|
|
26
|
-
<template
|
|
27
|
-
v-for="(item, index) in props.bootList"
|
|
28
|
-
:key="props.bootList.length + index"
|
|
29
|
-
#[`rightSide${index}`]
|
|
30
|
-
>
|
|
31
|
-
<div :class="['device-icon', item.iconClassName]" />
|
|
32
|
-
<span class="device-name">{{ item.text }}</span>
|
|
33
|
-
</template>
|
|
34
|
-
<template #icon v-if="grabedItem">
|
|
35
|
-
<div :class="['device-icon', grabedItem.iconClassName]" />
|
|
36
|
-
</template>
|
|
37
|
-
</ui-drag-drop-list>
|
|
38
|
-
</template>
|
|
39
|
-
</ui-stack-block>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
|
-
<script setup lang="ts">
|
|
43
|
-
import type { UI_I_BootItem } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces'
|
|
44
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
45
|
-
import type { UI_I_DropEvent } from '~/components/atoms/list/dragDropList/lib/config/events'
|
|
46
|
-
|
|
47
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
48
|
-
|
|
49
|
-
const props = defineProps<{
|
|
50
|
-
bootList: UI_I_BootItem[]
|
|
51
|
-
isDisabled: boolean
|
|
52
|
-
}>()
|
|
53
|
-
const emits = defineEmits<{
|
|
54
|
-
(event: 'change-order', value: UI_I_DropEvent): void
|
|
55
|
-
}>()
|
|
56
|
-
|
|
57
|
-
const grabedItem = ref<any>(null)
|
|
58
|
-
const onGrab = (item: any): void => {
|
|
59
|
-
grabedItem.value = item
|
|
60
|
-
}
|
|
61
|
-
</script>
|
|
62
|
-
|
|
63
|
-
<style scoped lang="scss">
|
|
64
|
-
.device-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<ui-stack-block :has-children="false">
|
|
3
|
+
<template #stackBlockKey>
|
|
4
|
+
{{ localization.common.bootOrder }}
|
|
5
|
+
</template>
|
|
6
|
+
<template #stackBlockContent>
|
|
7
|
+
<ui-drag-drop-list
|
|
8
|
+
:items="props.bootList"
|
|
9
|
+
grab-item-key="text"
|
|
10
|
+
:disabled="props.isDisabled"
|
|
11
|
+
@drop="emits('change-order', $event)"
|
|
12
|
+
@grab="onGrab"
|
|
13
|
+
>
|
|
14
|
+
<template
|
|
15
|
+
v-for="(item, index) in props.bootList"
|
|
16
|
+
:key="index"
|
|
17
|
+
#[`leftSide${index}`]
|
|
18
|
+
>
|
|
19
|
+
<ui-checkbox
|
|
20
|
+
v-model="item.isChecked"
|
|
21
|
+
:test-id="item.testId"
|
|
22
|
+
size="md"
|
|
23
|
+
:disabled="props.isDisabled"
|
|
24
|
+
/>
|
|
25
|
+
</template>
|
|
26
|
+
<template
|
|
27
|
+
v-for="(item, index) in props.bootList"
|
|
28
|
+
:key="props.bootList.length + index"
|
|
29
|
+
#[`rightSide${index}`]
|
|
30
|
+
>
|
|
31
|
+
<div :class="['device-icon', item.iconClassName]" />
|
|
32
|
+
<span class="device-name">{{ item.text }}</span>
|
|
33
|
+
</template>
|
|
34
|
+
<template #icon v-if="grabedItem">
|
|
35
|
+
<div :class="['device-icon', grabedItem.iconClassName]" />
|
|
36
|
+
</template>
|
|
37
|
+
</ui-drag-drop-list>
|
|
38
|
+
</template>
|
|
39
|
+
</ui-stack-block>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script setup lang="ts">
|
|
43
|
+
import type { UI_I_BootItem } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces'
|
|
44
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
45
|
+
import type { UI_I_DropEvent } from '~/components/atoms/list/dragDropList/lib/config/events'
|
|
46
|
+
|
|
47
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
48
|
+
|
|
49
|
+
const props = defineProps<{
|
|
50
|
+
bootList: UI_I_BootItem[]
|
|
51
|
+
isDisabled: boolean
|
|
52
|
+
}>()
|
|
53
|
+
const emits = defineEmits<{
|
|
54
|
+
(event: 'change-order', value: UI_I_DropEvent): void
|
|
55
|
+
}>()
|
|
56
|
+
|
|
57
|
+
const grabedItem = ref<any>(null)
|
|
58
|
+
const onGrab = (item: any): void => {
|
|
59
|
+
grabedItem.value = item
|
|
60
|
+
}
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style scoped lang="scss">
|
|
64
|
+
.device-icon {
|
|
65
|
+
width: 20px;
|
|
66
|
+
height: 20px;
|
|
67
|
+
}
|
|
68
|
+
.device-name {
|
|
69
|
+
margin-left: -4px;
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -1,149 +1,150 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-stack-block
|
|
3
|
-
:has-children="true"
|
|
4
|
-
test-id="general-options-stack-block"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<span
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<span
|
|
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
|
-
|
|
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
|
-
|
|
101
|
-
</
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
import type {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
:deep(.guest-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<ui-stack-block
|
|
3
|
+
:has-children="true"
|
|
4
|
+
test-id="general-options-stack-block"
|
|
5
|
+
is-toggle-on-stack-view-key
|
|
6
|
+
@toggle="blockIsOpen = $event"
|
|
7
|
+
>
|
|
8
|
+
<template #stackBlockKey>
|
|
9
|
+
<div
|
|
10
|
+
id="vm-wizard-toggle-block-general-options"
|
|
11
|
+
data-id="vm-wizard-toggle-block-general-options"
|
|
12
|
+
class="flex-align-center"
|
|
13
|
+
>
|
|
14
|
+
<span>{{ localization.common.generalOptions }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<template #stackBlockContent>
|
|
18
|
+
<div v-show="!blockIsOpen" class="vm-name-wrap">
|
|
19
|
+
<span class="vsphere-icon-vm"></span>
|
|
20
|
+
<span>{{ vmName }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<template #stackChildren>
|
|
24
|
+
<ui-stack-block :has-children="false">
|
|
25
|
+
<template #stackBlockKey>
|
|
26
|
+
{{ localization.common.vmName }}
|
|
27
|
+
</template>
|
|
28
|
+
<template #stackBlockContent>
|
|
29
|
+
<div class="vm-name-wrap">
|
|
30
|
+
<span class="vsphere-icon-vm"></span>
|
|
31
|
+
<span>{{ vmName }}</span>
|
|
32
|
+
</div>
|
|
33
|
+
<!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
|
|
34
|
+
<!-- <input-->
|
|
35
|
+
<!-- v-else-->
|
|
36
|
+
<!-- id="general-option-vm-name"-->
|
|
37
|
+
<!-- v-models="vmName"-->
|
|
38
|
+
<!-- type="text"-->
|
|
39
|
+
<!-- />-->
|
|
40
|
+
</template>
|
|
41
|
+
</ui-stack-block>
|
|
42
|
+
|
|
43
|
+
<ui-stack-block :has-children="false">
|
|
44
|
+
<template #stackBlockKey>
|
|
45
|
+
{{ localization.common.machineType }}
|
|
46
|
+
</template>
|
|
47
|
+
<template #stackBlockContent>
|
|
48
|
+
<ui-select
|
|
49
|
+
v-if="guestMachineType"
|
|
50
|
+
id="guest-machine-type-select"
|
|
51
|
+
v-model="guestMachineType"
|
|
52
|
+
:items="props.machineTypeOptions"
|
|
53
|
+
:disabled="props.isDisabled"
|
|
54
|
+
width="auto"
|
|
55
|
+
test-id="guest-machine-type-select"
|
|
56
|
+
class="guest-machine-type-select"
|
|
57
|
+
size="sm"
|
|
58
|
+
/>
|
|
59
|
+
</template>
|
|
60
|
+
</ui-stack-block>
|
|
61
|
+
|
|
62
|
+
<ui-stack-block :has-children="false">
|
|
63
|
+
<template #stackBlockKey>
|
|
64
|
+
{{ localization.common.guestOsFamily }}
|
|
65
|
+
</template>
|
|
66
|
+
<template #stackBlockContent>
|
|
67
|
+
<ui-select
|
|
68
|
+
v-if="guestOsFamily"
|
|
69
|
+
id="guest-os-family-select"
|
|
70
|
+
v-model="guestOsFamily"
|
|
71
|
+
:items="props.osOptions"
|
|
72
|
+
:disabled="props.isDisabled"
|
|
73
|
+
width="auto"
|
|
74
|
+
test-id="guest-os-family-select"
|
|
75
|
+
class="guest-os-family-select"
|
|
76
|
+
size="sm"
|
|
77
|
+
@change="emits('change-os')"
|
|
78
|
+
/>
|
|
79
|
+
</template>
|
|
80
|
+
</ui-stack-block>
|
|
81
|
+
|
|
82
|
+
<ui-stack-block :has-children="false">
|
|
83
|
+
<template #stackBlockKey>
|
|
84
|
+
{{ localization.common.guestOsVersion }}
|
|
85
|
+
</template>
|
|
86
|
+
<template #stackBlockContent>
|
|
87
|
+
<ui-select
|
|
88
|
+
v-if="guestOsVersion"
|
|
89
|
+
id="guest-os-version-select"
|
|
90
|
+
v-model="guestOsVersion"
|
|
91
|
+
:items="props.versionsOptions"
|
|
92
|
+
:disabled="props.isDisabled"
|
|
93
|
+
width="auto"
|
|
94
|
+
test-id="guest-os-version-select"
|
|
95
|
+
class="guest-os-version-select"
|
|
96
|
+
size="sm"
|
|
97
|
+
/>
|
|
98
|
+
</template>
|
|
99
|
+
</ui-stack-block>
|
|
100
|
+
</template>
|
|
101
|
+
</ui-stack-block>
|
|
102
|
+
</template>
|
|
103
|
+
|
|
104
|
+
<script setup lang="ts">
|
|
105
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
106
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
107
|
+
|
|
108
|
+
const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
|
|
109
|
+
const vmName = defineModel<string>('vmName', { required: true })
|
|
110
|
+
const guestMachineType = defineModel<string>('guestMachineType', {
|
|
111
|
+
required: true,
|
|
112
|
+
})
|
|
113
|
+
const guestOsFamily = defineModel<string>('guestOsFamily', { required: true })
|
|
114
|
+
const guestOsVersion = defineModel<string>('guestOsVersion', {
|
|
115
|
+
required: true,
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
const props = defineProps<{
|
|
119
|
+
isDisabled: boolean
|
|
120
|
+
machineTypeOptions: UI_I_OptionItem[]
|
|
121
|
+
osOptions: UI_I_OptionItem[]
|
|
122
|
+
versionsOptions: UI_I_OptionItem[]
|
|
123
|
+
}>()
|
|
124
|
+
const emits = defineEmits<{
|
|
125
|
+
(event: 'change-os'): void
|
|
126
|
+
}>()
|
|
127
|
+
|
|
128
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
129
|
+
</script>
|
|
130
|
+
|
|
131
|
+
<style scoped lang="scss">
|
|
132
|
+
.vm-name-wrap {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 4px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.vsphere-icon-vm {
|
|
139
|
+
width: 20px;
|
|
140
|
+
height: 20px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:deep(.guest-os-family-select .ui-main-select-toggle),
|
|
144
|
+
:deep(.guest-machine-type-select .ui-main-select-toggle) {
|
|
145
|
+
width: 108px;
|
|
146
|
+
}
|
|
147
|
+
:deep(.guest-os-version-select .ui-main-select-toggle) {
|
|
148
|
+
width: 196px;
|
|
149
|
+
}
|
|
150
|
+
</style>
|