bfg-common 1.5.293 → 1.5.295
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/localization/local_en.json +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +27 -24
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +6 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +45 -40
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +152 -147
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +128 -122
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +111 -97
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/DelayNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +83 -77
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +11 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +154 -143
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +44 -43
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +128 -128
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +1 -1
- package/package.json +2 -2
|
@@ -1,122 +1,128 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vm-options">
|
|
3
|
-
<common-vm-actions-common-customize-hardware-vmoptions-general-options
|
|
4
|
-
v-model:vm-name="vmName"
|
|
5
|
-
v-model:guest-machine-type="guestMachineType"
|
|
6
|
-
v-model:guest-os-family="guestOsFamily"
|
|
7
|
-
v-model:guest-os-version="guestOsVersion"
|
|
8
|
-
:is-edit="props.isEdit"
|
|
9
|
-
:is-clone="props.isClone"
|
|
10
|
-
:state="props.state"
|
|
11
|
-
/>
|
|
12
|
-
<common-vm-actions-common-customize-hardware-vmoptions-remote-console-options
|
|
13
|
-
:error-validation-fields="props.errorValidationFields"
|
|
14
|
-
:remote-console-options="props.options?.remote_console"
|
|
15
|
-
:is-edit="props.isEdit"
|
|
16
|
-
:state="props.state"
|
|
17
|
-
@send-data="emits('send-data-remote-console-options', $event)"
|
|
18
|
-
@invalid="remoteConsoleOptionsInvalid = $event"
|
|
19
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
20
|
-
/>
|
|
21
|
-
<common-vm-actions-common-customize-hardware-vmoptions-tools
|
|
22
|
-
:tools="props.options?.guest_tools?.enabled"
|
|
23
|
-
@send-data="emits('send-data-tools', $event)"
|
|
24
|
-
/>
|
|
25
|
-
<common-vm-actions-common-customize-hardware-vmoptions-boot-options
|
|
26
|
-
:error-validation-fields="props.errorValidationFields"
|
|
27
|
-
:hard-disks="props.hardDisks"
|
|
28
|
-
:cd-dvd-drives="props.cdDvdDrives"
|
|
29
|
-
:networks="props.networks"
|
|
30
|
-
:boot-options="props.options?.boot_options"
|
|
31
|
-
:is-edit="props.isEdit"
|
|
32
|
-
:state="props.state"
|
|
33
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
34
|
-
@send-data="emits('send-data-boot-options', $event)"
|
|
35
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
36
|
-
/>
|
|
37
|
-
<div class="vm-hardware-version-wrap justify-end flex flex-1 mt-4">
|
|
38
|
-
<span class="vm-hardware-version">
|
|
39
|
-
{{ props.compatibilityInfo }}
|
|
40
|
-
</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<script setup lang="ts">
|
|
46
|
-
import type {
|
|
47
|
-
UI_I_SendDataRemoteConsoleOptions,
|
|
48
|
-
UI_I_SendDataTools,
|
|
49
|
-
UI_I_SendDataBootOptions,
|
|
50
|
-
UI_I_SendDataVmoptions,
|
|
51
|
-
} from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
52
|
-
import type {
|
|
53
|
-
UI_I_SendDataNewCdDvdDrive,
|
|
54
|
-
UI_I_SendDataNewHardDisk,
|
|
55
|
-
UI_I_SendDataNewNetwork,
|
|
56
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
57
|
-
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vm-options">
|
|
3
|
+
<common-vm-actions-common-customize-hardware-vmoptions-general-options
|
|
4
|
+
v-model:vm-name="vmName"
|
|
5
|
+
v-model:guest-machine-type="guestMachineType"
|
|
6
|
+
v-model:guest-os-family="guestOsFamily"
|
|
7
|
+
v-model:guest-os-version="guestOsVersion"
|
|
8
|
+
:is-edit="props.isEdit"
|
|
9
|
+
:is-clone="props.isClone"
|
|
10
|
+
:state="props.state"
|
|
11
|
+
/>
|
|
12
|
+
<common-vm-actions-common-customize-hardware-vmoptions-remote-console-options
|
|
13
|
+
:error-validation-fields="props.errorValidationFields"
|
|
14
|
+
:remote-console-options="props.options?.remote_console"
|
|
15
|
+
:is-edit="props.isEdit"
|
|
16
|
+
:state="props.state"
|
|
17
|
+
@send-data="emits('send-data-remote-console-options', $event)"
|
|
18
|
+
@invalid="remoteConsoleOptionsInvalid = $event"
|
|
19
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
20
|
+
/>
|
|
21
|
+
<common-vm-actions-common-customize-hardware-vmoptions-tools
|
|
22
|
+
:tools="props.options?.guest_tools?.enabled"
|
|
23
|
+
@send-data="emits('send-data-tools', $event)"
|
|
24
|
+
/>
|
|
25
|
+
<common-vm-actions-common-customize-hardware-vmoptions-boot-options
|
|
26
|
+
:error-validation-fields="props.errorValidationFields"
|
|
27
|
+
:hard-disks="props.hardDisks"
|
|
28
|
+
:cd-dvd-drives="props.cdDvdDrives"
|
|
29
|
+
:networks="props.networks"
|
|
30
|
+
:boot-options="props.options?.boot_options"
|
|
31
|
+
:is-edit="props.isEdit"
|
|
32
|
+
:state="props.state"
|
|
33
|
+
@change-boot-order="emits('change-boot-order', $event)"
|
|
34
|
+
@send-data="emits('send-data-boot-options', $event)"
|
|
35
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
36
|
+
/>
|
|
37
|
+
<div class="vm-hardware-version-wrap justify-end flex flex-1 mt-4">
|
|
38
|
+
<span class="vm-hardware-version">
|
|
39
|
+
{{ props.compatibilityInfo }}
|
|
40
|
+
</span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script setup lang="ts">
|
|
46
|
+
import type {
|
|
47
|
+
UI_I_SendDataRemoteConsoleOptions,
|
|
48
|
+
UI_I_SendDataTools,
|
|
49
|
+
UI_I_SendDataBootOptions,
|
|
50
|
+
UI_I_SendDataVmoptions,
|
|
51
|
+
} from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
52
|
+
import type {
|
|
53
|
+
UI_I_SendDataNewCdDvdDrive,
|
|
54
|
+
UI_I_SendDataNewHardDisk,
|
|
55
|
+
UI_I_SendDataNewNetwork,
|
|
56
|
+
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
57
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
58
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
59
|
+
|
|
60
|
+
const vmName = defineModel<string>('vmName', { required: true })
|
|
61
|
+
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
62
|
+
'guestMachineType',
|
|
63
|
+
{
|
|
64
|
+
required: true,
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
|
|
68
|
+
required: true,
|
|
69
|
+
})
|
|
70
|
+
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
|
|
71
|
+
required: true,
|
|
72
|
+
})
|
|
73
|
+
const remoteConsoleOptionsInvalid = defineModel<boolean>(
|
|
74
|
+
'remoteConsoleOptionsInvalid',
|
|
75
|
+
{ required: true }
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
const props = defineProps<{
|
|
79
|
+
hardDisks: UI_I_SendDataNewHardDisk[] | null
|
|
80
|
+
cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
|
|
81
|
+
networks: UI_I_SendDataNewNetwork[] | null
|
|
82
|
+
isEdit: boolean
|
|
83
|
+
isClone: boolean
|
|
84
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
85
|
+
options?: UI_I_SendDataVmoptions
|
|
86
|
+
state?: string | number
|
|
87
|
+
compatibilityInfo?: string
|
|
88
|
+
}>()
|
|
89
|
+
const emits = defineEmits<{
|
|
90
|
+
(
|
|
91
|
+
event: 'change-boot-order',
|
|
92
|
+
value: [
|
|
93
|
+
UI_I_SendDataNewHardDisk[],
|
|
94
|
+
UI_I_SendDataNewCdDvdDrive[],
|
|
95
|
+
UI_I_SendDataNewNetwork[]
|
|
96
|
+
]
|
|
97
|
+
): void
|
|
98
|
+
(
|
|
99
|
+
event: 'send-data-remote-console-options',
|
|
100
|
+
value: UI_I_SendDataRemoteConsoleOptions
|
|
101
|
+
): void
|
|
102
|
+
(event: 'send-data-tools', value: UI_I_SendDataTools): void
|
|
103
|
+
(event: 'send-data-boot-options', value: UI_I_SendDataBootOptions): void
|
|
104
|
+
(event: 'remove-error-by-title', value: string): void
|
|
105
|
+
}>()
|
|
106
|
+
</script>
|
|
107
|
+
|
|
108
|
+
<style scoped lang="scss">
|
|
109
|
+
.vm-options {
|
|
110
|
+
height: calc(100% - 20px);
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
gap: 12px;
|
|
114
|
+
margin-top: 20px;
|
|
115
|
+
padding: 0 0 12px;
|
|
116
|
+
overflow: auto;
|
|
117
|
+
|
|
118
|
+
.vm-hardware-version-wrap {
|
|
119
|
+
align-items: flex-end;
|
|
120
|
+
text-align: right;
|
|
121
|
+
|
|
122
|
+
.vm-hardware-version {
|
|
123
|
+
font-size: 13px;
|
|
124
|
+
color: #9da6ad; // for light and dark
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
</style>
|
|
@@ -1,97 +1,111 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vm-options">
|
|
3
|
-
<div class="clr-component">
|
|
4
|
-
<div class="stack-view">
|
|
5
|
-
<common-vm-actions-common-customize-hardware-vmoptions-general-options
|
|
6
|
-
v-model:vm-name="vmName"
|
|
7
|
-
v-model:guest-machine-type="guestMachineType"
|
|
8
|
-
v-model:guest-os-family="guestOsFamily"
|
|
9
|
-
v-model:guest-os-version="guestOsVersion"
|
|
10
|
-
:is-edit="props.isEdit"
|
|
11
|
-
:is-clone="props.isClone"
|
|
12
|
-
:state="props.state"
|
|
13
|
-
/>
|
|
14
|
-
<common-vm-actions-common-customize-hardware-vmoptions-remote-console-options
|
|
15
|
-
:error-validation-fields="props.errorValidationFields"
|
|
16
|
-
:remote-console-options="props.options?.remote_console"
|
|
17
|
-
:is-edit="props.isEdit"
|
|
18
|
-
:state="props.state"
|
|
19
|
-
@send-data="emits('send-data-remote-console-options', $event)"
|
|
20
|
-
@invalid="remoteConsoleOptionsInvalid = $event"
|
|
21
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
22
|
-
/>
|
|
23
|
-
<common-vm-actions-common-customize-hardware-vmoptions-tools
|
|
24
|
-
:tools="props.options?.guest_tools?.enabled"
|
|
25
|
-
@send-data="emits('send-data-tools', $event)"
|
|
26
|
-
/>
|
|
27
|
-
<common-vm-actions-common-customize-hardware-vmoptions-boot-options
|
|
28
|
-
:error-validation-fields="props.errorValidationFields"
|
|
29
|
-
:hard-disks="props.hardDisks"
|
|
30
|
-
:cd-dvd-drives="props.cdDvdDrives"
|
|
31
|
-
:networks="props.networks"
|
|
32
|
-
:boot-options="props.options?.boot_options"
|
|
33
|
-
:is-edit="props.isEdit"
|
|
34
|
-
:state="props.state"
|
|
35
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
36
|
-
@send-data="emits('send-data-boot-options', $event)"
|
|
37
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
38
|
-
/>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script setup lang="ts">
|
|
45
|
-
import type {
|
|
46
|
-
UI_I_SendDataRemoteConsoleOptions,
|
|
47
|
-
UI_I_SendDataTools,
|
|
48
|
-
UI_I_SendDataBootOptions,
|
|
49
|
-
UI_I_SendDataVmoptions,
|
|
50
|
-
} from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
51
|
-
import type {
|
|
52
|
-
UI_I_SendDataNewCdDvdDrive,
|
|
53
|
-
UI_I_SendDataNewHardDisk,
|
|
54
|
-
UI_I_SendDataNewNetwork,
|
|
55
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
56
|
-
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const
|
|
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
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vm-options">
|
|
3
|
+
<div class="clr-component">
|
|
4
|
+
<div class="stack-view">
|
|
5
|
+
<common-vm-actions-common-customize-hardware-vmoptions-general-options
|
|
6
|
+
v-model:vm-name="vmName"
|
|
7
|
+
v-model:guest-machine-type="guestMachineType"
|
|
8
|
+
v-model:guest-os-family="guestOsFamily"
|
|
9
|
+
v-model:guest-os-version="guestOsVersion"
|
|
10
|
+
:is-edit="props.isEdit"
|
|
11
|
+
:is-clone="props.isClone"
|
|
12
|
+
:state="props.state"
|
|
13
|
+
/>
|
|
14
|
+
<common-vm-actions-common-customize-hardware-vmoptions-remote-console-options
|
|
15
|
+
:error-validation-fields="props.errorValidationFields"
|
|
16
|
+
:remote-console-options="props.options?.remote_console"
|
|
17
|
+
:is-edit="props.isEdit"
|
|
18
|
+
:state="props.state"
|
|
19
|
+
@send-data="emits('send-data-remote-console-options', $event)"
|
|
20
|
+
@invalid="remoteConsoleOptionsInvalid = $event"
|
|
21
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
22
|
+
/>
|
|
23
|
+
<common-vm-actions-common-customize-hardware-vmoptions-tools
|
|
24
|
+
:tools="props.options?.guest_tools?.enabled"
|
|
25
|
+
@send-data="emits('send-data-tools', $event)"
|
|
26
|
+
/>
|
|
27
|
+
<common-vm-actions-common-customize-hardware-vmoptions-boot-options
|
|
28
|
+
:error-validation-fields="props.errorValidationFields"
|
|
29
|
+
:hard-disks="props.hardDisks"
|
|
30
|
+
:cd-dvd-drives="props.cdDvdDrives"
|
|
31
|
+
:networks="props.networks"
|
|
32
|
+
:boot-options="props.options?.boot_options"
|
|
33
|
+
:is-edit="props.isEdit"
|
|
34
|
+
:state="props.state"
|
|
35
|
+
@change-boot-order="emits('change-boot-order', $event)"
|
|
36
|
+
@send-data="emits('send-data-boot-options', $event)"
|
|
37
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script setup lang="ts">
|
|
45
|
+
import type {
|
|
46
|
+
UI_I_SendDataRemoteConsoleOptions,
|
|
47
|
+
UI_I_SendDataTools,
|
|
48
|
+
UI_I_SendDataBootOptions,
|
|
49
|
+
UI_I_SendDataVmoptions,
|
|
50
|
+
} from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
51
|
+
import type {
|
|
52
|
+
UI_I_SendDataNewCdDvdDrive,
|
|
53
|
+
UI_I_SendDataNewHardDisk,
|
|
54
|
+
UI_I_SendDataNewNetwork,
|
|
55
|
+
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
56
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
57
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
58
|
+
|
|
59
|
+
const vmName = defineModel<string>('vmName', { required: true })
|
|
60
|
+
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
61
|
+
'guestMachineType',
|
|
62
|
+
{ required: true }
|
|
63
|
+
)
|
|
64
|
+
const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
|
|
65
|
+
required: true,
|
|
66
|
+
})
|
|
67
|
+
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
|
|
68
|
+
required: true,
|
|
69
|
+
})
|
|
70
|
+
const remoteConsoleOptionsInvalid = defineModel<boolean>(
|
|
71
|
+
'remoteConsoleOptionsInvalid',
|
|
72
|
+
{ required: true }
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
const props = defineProps<{
|
|
76
|
+
hardDisks: UI_I_SendDataNewHardDisk[] | null
|
|
77
|
+
cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
|
|
78
|
+
networks: UI_I_SendDataNewNetwork[] | null
|
|
79
|
+
isEdit: boolean
|
|
80
|
+
isClone: boolean
|
|
81
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
82
|
+
options?: UI_I_SendDataVmoptions
|
|
83
|
+
state?: string | number
|
|
84
|
+
}>()
|
|
85
|
+
const emits = defineEmits<{
|
|
86
|
+
(
|
|
87
|
+
event: 'change-boot-order',
|
|
88
|
+
value: [
|
|
89
|
+
UI_I_SendDataNewHardDisk[],
|
|
90
|
+
UI_I_SendDataNewCdDvdDrive[],
|
|
91
|
+
UI_I_SendDataNewNetwork[]
|
|
92
|
+
]
|
|
93
|
+
): void
|
|
94
|
+
(
|
|
95
|
+
event: 'send-data-remote-console-options',
|
|
96
|
+
value: UI_I_SendDataRemoteConsoleOptions
|
|
97
|
+
): void
|
|
98
|
+
(event: 'send-data-tools', value: UI_I_SendDataTools): void
|
|
99
|
+
(event: 'send-data-boot-options', value: UI_I_SendDataBootOptions): void
|
|
100
|
+
(event: 'remove-error-by-title', value: string): void
|
|
101
|
+
}>()
|
|
102
|
+
</script>
|
|
103
|
+
|
|
104
|
+
<style scoped lang="scss">
|
|
105
|
+
.clr-component {
|
|
106
|
+
padding-top: 36px;
|
|
107
|
+
}
|
|
108
|
+
.stack-view {
|
|
109
|
+
background-color: var(--block-view-bg-color);
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -1,77 +1,83 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-vm-actions-common-customize-hardware-vmoptions-general-options-new
|
|
3
|
-
v-if="isNewView"
|
|
4
|
-
v-model:vm-name="vmName"
|
|
5
|
-
v-model:guest-machine-type="guestMachineType"
|
|
6
|
-
v-model:guest-os-family="guestOsFamily"
|
|
7
|
-
v-model:guest-os-version="guestOsVersion"
|
|
8
|
-
v-model:block-is-open="blockIsOpen"
|
|
9
|
-
:is-disabled="isDisabled"
|
|
10
|
-
:machine-type-options="machineTypeOptions"
|
|
11
|
-
:os-options="osOptions"
|
|
12
|
-
:versions-options="versionsOptions"
|
|
13
|
-
@change-os="onChangeOS"
|
|
14
|
-
|
|
15
|
-
<common-vm-actions-common-customize-hardware-vmoptions-general-options-old
|
|
16
|
-
v-else
|
|
17
|
-
v-model:vm-name="vmName"
|
|
18
|
-
v-model:guest-machine-type="guestMachineType"
|
|
19
|
-
v-model:guest-os-family="guestOsFamily"
|
|
20
|
-
v-model:guest-os-version="guestOsVersion"
|
|
21
|
-
v-model:block-is-open="blockIsOpen"
|
|
22
|
-
:is-disabled="isDisabled"
|
|
23
|
-
:machine-type-options="machineTypeOptions"
|
|
24
|
-
:os-options="osOptions"
|
|
25
|
-
:versions-options="versionsOptions"
|
|
26
|
-
@change-os="onChangeOS"
|
|
27
|
-
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script setup lang="ts">
|
|
31
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
32
|
-
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
|
33
|
-
|
|
34
|
-
const vmName = defineModel<string>('vmName', {required: true})
|
|
35
|
-
const guestMachineType = defineModel<
|
|
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
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<common-vm-actions-common-customize-hardware-vmoptions-general-options-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:vm-name="vmName"
|
|
5
|
+
v-model:guest-machine-type="guestMachineType"
|
|
6
|
+
v-model:guest-os-family="guestOsFamily"
|
|
7
|
+
v-model:guest-os-version="guestOsVersion"
|
|
8
|
+
v-model:block-is-open="blockIsOpen"
|
|
9
|
+
:is-disabled="isDisabled"
|
|
10
|
+
:machine-type-options="machineTypeOptions"
|
|
11
|
+
:os-options="osOptions"
|
|
12
|
+
:versions-options="versionsOptions"
|
|
13
|
+
@change-os="onChangeOS"
|
|
14
|
+
/>
|
|
15
|
+
<common-vm-actions-common-customize-hardware-vmoptions-general-options-old
|
|
16
|
+
v-else
|
|
17
|
+
v-model:vm-name="vmName"
|
|
18
|
+
v-model:guest-machine-type="guestMachineType"
|
|
19
|
+
v-model:guest-os-family="guestOsFamily"
|
|
20
|
+
v-model:guest-os-version="guestOsVersion"
|
|
21
|
+
v-model:block-is-open="blockIsOpen"
|
|
22
|
+
:is-disabled="isDisabled"
|
|
23
|
+
:machine-type-options="machineTypeOptions"
|
|
24
|
+
:os-options="osOptions"
|
|
25
|
+
:versions-options="versionsOptions"
|
|
26
|
+
@change-os="onChangeOS"
|
|
27
|
+
/>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
32
|
+
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
|
33
|
+
|
|
34
|
+
const vmName = defineModel<string>('vmName', { required: true })
|
|
35
|
+
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
36
|
+
'guestMachineType',
|
|
37
|
+
{ required: true }
|
|
38
|
+
)
|
|
39
|
+
const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
|
|
40
|
+
required: true,
|
|
41
|
+
})
|
|
42
|
+
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
|
|
43
|
+
required: true,
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
const props = defineProps<{
|
|
47
|
+
isEdit: boolean
|
|
48
|
+
isClone: boolean
|
|
49
|
+
state?: string | number
|
|
50
|
+
}>()
|
|
51
|
+
|
|
52
|
+
const { $store }: any = useNuxtApp()
|
|
53
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
54
|
+
|
|
55
|
+
const isDisabled = computed<boolean>(
|
|
56
|
+
() => (!props.isEdit && !props.isClone) || (props.isEdit && props.state !== 1)
|
|
57
|
+
)
|
|
58
|
+
const machineTypeOptions = ref<UI_I_OptionItem[]>(
|
|
59
|
+
capabilities.value.machineTypes
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
const osOptions = ref<UI_I_OptionItem[]>(capabilities.value.guestOsFamilies)
|
|
63
|
+
const onChangeOS = (): void => {
|
|
64
|
+
guestOsVersion.value = versionsOptions.value[0]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const versionsOptions = computed<UI_I_OptionItem[]>(() => {
|
|
68
|
+
if (!guestOsFamily.value) return []
|
|
69
|
+
|
|
70
|
+
return capabilities.value.guestOsVersions[guestOsFamily.value.value] || []
|
|
71
|
+
})
|
|
72
|
+
watch(
|
|
73
|
+
versionsOptions,
|
|
74
|
+
() => {
|
|
75
|
+
guestOsVersion.value = versionsOptions.value[0]
|
|
76
|
+
}
|
|
77
|
+
// { immediate: true }
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
const blockIsOpen = ref<boolean>(false)
|
|
81
|
+
</script>
|
|
82
|
+
|
|
83
|
+
<style scoped lang="scss"></style>
|