bfg-common 1.5.577 → 1.5.578
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/add/Add.vue +886 -960
- package/components/common/vm/actions/add/New.vue +16 -54
- package/components/common/vm/actions/add/Old.vue +16 -55
- package/components/common/vm/actions/add/lib/config/steps.ts +347 -347
- package/components/common/vm/actions/clone/Clone.vue +744 -816
- package/components/common/vm/actions/clone/new/New.vue +14 -50
- package/components/common/vm/actions/clone/old/Old.vue +16 -52
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +14 -81
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +7 -56
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +8 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +211 -206
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +225 -120
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +220 -118
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +66 -53
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +139 -159
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +8 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +8 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +62 -75
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +241 -149
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +3 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +2 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +62 -100
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +6 -17
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerOld.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +17 -39
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/lib/config/options.ts +4 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +6 -93
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +8 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +8 -58
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +5 -69
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +12 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsOld.vue +12 -33
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +114 -132
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +41 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderOld.vue +44 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +8 -23
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +21 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +26 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +28 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +24 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +8 -112
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapNew.vue → New.vue} +6 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapOld.vue → Old.vue} +5 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +6 -7
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +9 -27
- package/components/common/vm/actions/common/lib/models/interfaces.ts +58 -25
- package/components/common/vm/actions/common/select/options/New.vue +258 -258
- package/components/common/vm/actions/common/select/options/Old.vue +103 -103
- package/components/common/vm/actions/common/select/options/Options.vue +54 -54
- package/components/common/vm/actions/editSettings/EditSettings.vue +32 -90
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +14 -41
- package/components/common/vm/actions/editSettings/new/New.vue +14 -41
- package/components/common/vm/actions/lib/models/interfaces.ts +4 -29
- package/components/common/vm/actions/lib/utils.ts +64 -36
- package/package.json +1 -1
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordNew.vue → New.vue} +0 -0
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordOld.vue → Old.vue} +0 -0
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
</template>
|
|
67
67
|
<template #content>
|
|
68
68
|
<common-wizards-common-steps-name
|
|
69
|
-
v-model:name="
|
|
69
|
+
v-model:name="model.name"
|
|
70
70
|
v-model:location="location"
|
|
71
71
|
:show="
|
|
72
72
|
selectedStep.id === dynamicSteps.selectName ||
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
<common-wizards-common-steps-compute-resource
|
|
119
119
|
v-if="props.isSphere"
|
|
120
120
|
v-show="selectedStep.id === dynamicSteps.selectComputeResource"
|
|
121
|
-
v-model="
|
|
121
|
+
v-model="computeResource"
|
|
122
122
|
:node="computeResourceTreeLocal"
|
|
123
123
|
:alert-messages="props.computeResourceAlert"
|
|
124
124
|
:is-loading="props.isLoadingComputeTree"
|
|
@@ -228,9 +228,9 @@
|
|
|
228
228
|
<template #content>
|
|
229
229
|
<div class="select-block-wrap overflow-auto pb-4">
|
|
230
230
|
<common-vm-actions-common-select-os
|
|
231
|
-
v-model:
|
|
232
|
-
v-model:guest-os-
|
|
233
|
-
v-model:
|
|
231
|
+
v-model:guest-os-family="model.guest_os_family"
|
|
232
|
+
v-model:guest-os-version="model.guest_os_version"
|
|
233
|
+
v-model:machine-type="model.machine_type"
|
|
234
234
|
:families-options="props.guestOsFamilies"
|
|
235
235
|
:versions-options="props.guestOsVersions"
|
|
236
236
|
:machine-types-options="props.machineTypes"
|
|
@@ -251,21 +251,11 @@
|
|
|
251
251
|
<template #content>
|
|
252
252
|
<div class="select-block-wrap customize-hardware flex flex-col">
|
|
253
253
|
<common-vm-actions-common-customize-hardware
|
|
254
|
+
v-model="model"
|
|
254
255
|
:project="props.project"
|
|
255
256
|
:is-vmt="props.isVmt"
|
|
256
|
-
:
|
|
257
|
-
:guest-machine-type="vmForm.guestMachineType"
|
|
258
|
-
:guest-os-family="vmForm.guestOsFamily"
|
|
259
|
-
:guest-os-version="vmForm.guestOsVersion"
|
|
260
|
-
:storage="vmForm.storage"
|
|
261
|
-
:hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
|
|
262
|
-
:cd-dvd-drives-for-boot-options="
|
|
263
|
-
props.virtualHardwareCdDvdDrivesLocal
|
|
264
|
-
"
|
|
265
|
-
:networks-for-boot-options="props.virtualHardwareNetworksLocal"
|
|
266
|
-
:cd-dvd-drives="props.virtualHardwareCdDvdDrivesLocal"
|
|
257
|
+
:storage="model.storage"
|
|
267
258
|
:customize-hardware-submit="props.customizeHardwareSubmit"
|
|
268
|
-
:max-cpus="props.maxCpus"
|
|
269
259
|
:max-memory="props.maxMemory"
|
|
270
260
|
:cpu-models="props.cpuModels"
|
|
271
261
|
:selected-nav-item="props.selectedNavItem"
|
|
@@ -279,10 +269,8 @@
|
|
|
279
269
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
280
270
|
:passthrough-devices="props.passthroughDevices"
|
|
281
271
|
:mediated-devices="props.mediatedDevices"
|
|
282
|
-
:compute-resource="
|
|
272
|
+
:compute-resource="computeResource"
|
|
283
273
|
:compatibility-info="props.compatibilityInfo"
|
|
284
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
285
|
-
@send-data="emits('change-customize-hardware', $event)"
|
|
286
274
|
@get-storage="emits('get-storage', $event)"
|
|
287
275
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
288
276
|
@get-active-device-child="
|
|
@@ -314,31 +302,19 @@
|
|
|
314
302
|
class="select-block-wrap overflow-auto h-full flex flex-col pr-8"
|
|
315
303
|
>
|
|
316
304
|
<common-vm-actions-common-customize-hardware
|
|
305
|
+
v-model="model"
|
|
317
306
|
:project="props.project"
|
|
318
307
|
:is-vmt="props.isVmt"
|
|
319
|
-
:
|
|
320
|
-
:guest-machine-type="vmForm.guestMachineType"
|
|
321
|
-
:guest-os-family="vmForm.guestOsFamily"
|
|
322
|
-
:guest-os-version="vmForm.guestOsVersion"
|
|
323
|
-
:storage="vmForm.storage"
|
|
324
|
-
:hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
|
|
325
|
-
:cd-dvd-drives-for-boot-options="
|
|
326
|
-
props.virtualHardwareCdDvdDrivesLocal
|
|
327
|
-
"
|
|
328
|
-
:networks-for-boot-options="props.virtualHardwareNetworksLocal"
|
|
308
|
+
:storage="model.storage"
|
|
329
309
|
:cd-dvd-drives="props.vmtSettings.cdDvdDrives || []"
|
|
330
310
|
:hard-disks="props.vmtSettings.hardDisks || []"
|
|
331
311
|
:networks="props.vmtSettings.networks || []"
|
|
332
312
|
:customize-hardware-submit="
|
|
333
313
|
props.customizeHardwareForTemplateSubmit
|
|
334
314
|
"
|
|
335
|
-
:max-cpus="props.maxCpus"
|
|
336
315
|
:max-memory="props.maxMemory"
|
|
337
316
|
:cpu-models="props.cpuModels"
|
|
338
|
-
:cpu="props.vmtSettings.cpu"
|
|
339
|
-
:memory="props.vmtSettings.memory"
|
|
340
317
|
:video-card="props.vmtSettings.videoCard"
|
|
341
|
-
:usb-controller="props.vmtSettings.usbController"
|
|
342
318
|
:pci-devices="props.vmtSettings.pciDevices"
|
|
343
319
|
:hard-disks-for-edit="props.vmtSettings.hardDisks || []"
|
|
344
320
|
:options="props.vmtSettings.options"
|
|
@@ -353,11 +329,9 @@
|
|
|
353
329
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
354
330
|
:passthrough-devices="props.passthroughDevices"
|
|
355
331
|
:mediated-devices="props.mediatedDevices"
|
|
356
|
-
:compute-resource="
|
|
332
|
+
:compute-resource="computeResource"
|
|
357
333
|
:compatibility-info="props.compatibilityInfo"
|
|
358
334
|
is-clone
|
|
359
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
360
|
-
@send-data="emits('change-customize-hardware', $event)"
|
|
361
335
|
@get-storage="emits('get-storage', $event)"
|
|
362
336
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
363
337
|
@get-active-device-child="
|
|
@@ -445,17 +419,11 @@ import type {
|
|
|
445
419
|
} from '~/components/common/vm/actions/common/lib/models/types'
|
|
446
420
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
447
421
|
import type {
|
|
422
|
+
UI_I_CreateVmData,
|
|
448
423
|
// UI_I_Capabilities,
|
|
449
424
|
UI_I_VmForm,
|
|
450
425
|
} from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
451
|
-
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
|
452
|
-
import type {
|
|
453
|
-
UI_I_SendDataNewCdDvdDrive,
|
|
454
|
-
UI_I_SendDataNewHardDisk,
|
|
455
|
-
UI_I_SendDataNewNetwork,
|
|
456
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
457
426
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
458
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
|
459
427
|
import type {
|
|
460
428
|
UI_I_MediatedDevice,
|
|
461
429
|
UI_I_PciDevice,
|
|
@@ -465,7 +433,10 @@ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/
|
|
|
465
433
|
import type { UI_T_CompatibilityStatus } from '~/components/common/wizards/common/compatibility/lib/models/types'
|
|
466
434
|
import { dynamicSteps } from '~/components/common/vm/actions/add/lib/config/steps'
|
|
467
435
|
|
|
468
|
-
const
|
|
436
|
+
const model = defineModel<UI_I_CreateVmData>({
|
|
437
|
+
required: true,
|
|
438
|
+
})
|
|
439
|
+
const computeResource = defineModel<UI_I_TreeNode | null>('computeResource', {
|
|
469
440
|
required: true,
|
|
470
441
|
})
|
|
471
442
|
const selectedCreateType = defineModel<string>('selectedCreateType', {
|
|
@@ -504,10 +475,6 @@ const props = withDefaults(
|
|
|
504
475
|
guestOsFamilies: UI_I_OptionItem[]
|
|
505
476
|
guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
|
|
506
477
|
machineTypes: UI_I_OptionItem[]
|
|
507
|
-
virtualHardwareHardDisksLocal: UI_I_SendDataNewHardDisk[] | null
|
|
508
|
-
virtualHardwareCdDvdDrivesLocal: UI_I_SendDataNewCdDvdDrive[] | null
|
|
509
|
-
virtualHardwareNetworksLocal: UI_I_SendDataNewNetwork[] | null
|
|
510
|
-
maxCpus: number
|
|
511
478
|
maxMemory: number
|
|
512
479
|
cpuModels: UI_I_OptionItem[]
|
|
513
480
|
selectedNavItem: UI_T_SelectedNavItem
|
|
@@ -561,11 +528,6 @@ const emits = defineEmits<{
|
|
|
561
528
|
(event: 'change-select-options', value: string[]): void
|
|
562
529
|
(event: 'change-clone-count', value: number): void
|
|
563
530
|
(event: 'change-compatibility', value: UI_I_OptionItem): void
|
|
564
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
|
565
|
-
(
|
|
566
|
-
event: 'change-customize-hardware',
|
|
567
|
-
value: UI_I_SendDataCustomizeHardware
|
|
568
|
-
): void
|
|
569
531
|
(event: 'hide'): void
|
|
570
532
|
}>()
|
|
571
533
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
selectedStep.id === dynamicSteps.selectName ||
|
|
35
35
|
selectedStep.id === dynamicSteps.selectNameFolder
|
|
36
36
|
"
|
|
37
|
-
v-model:name="
|
|
37
|
+
v-model:name="model.name"
|
|
38
38
|
v-model:location="location"
|
|
39
39
|
:show="
|
|
40
40
|
selectedStep.id === dynamicSteps.selectName ||
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<common-wizards-common-steps-compute-resource
|
|
56
56
|
v-if="props.isSphere"
|
|
57
57
|
v-show="selectedStep.id === dynamicSteps.selectComputeResource"
|
|
58
|
-
v-model="
|
|
58
|
+
v-model="computeResource"
|
|
59
59
|
:node="computeResourceTreeLocal"
|
|
60
60
|
:alert-messages="props.computeResourceAlert"
|
|
61
61
|
:is-loading="props.isLoadingComputeTree"
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
selectedStep.id === dynamicSteps.selectGuestOSMachineType ||
|
|
92
92
|
selectedStep.id === dynamicSteps.selectGuestOS
|
|
93
93
|
"
|
|
94
|
-
v-model:
|
|
95
|
-
v-model:guest-os-
|
|
96
|
-
v-model:
|
|
94
|
+
v-model:guest-os-family="model.guest_os_family"
|
|
95
|
+
v-model:guest-os-version="model.guest_os_version"
|
|
96
|
+
v-model:machine-type="model.machine_type"
|
|
97
97
|
:families-options="props.guestOsFamilies"
|
|
98
98
|
:versions-options="props.guestOsVersions"
|
|
99
99
|
:machine-types-options="props.machineTypes"
|
|
@@ -102,21 +102,11 @@
|
|
|
102
102
|
/>
|
|
103
103
|
<common-vm-actions-common-customize-hardware
|
|
104
104
|
v-show="selectedStep.id === dynamicSteps.customizeHardware"
|
|
105
|
+
v-model="model"
|
|
105
106
|
:project="props.project"
|
|
106
107
|
:is-vmt="props.isVmt"
|
|
107
|
-
:
|
|
108
|
-
:guest-machine-type="vmForm.guestMachineType"
|
|
109
|
-
:guest-os-family="vmForm.guestOsFamily"
|
|
110
|
-
:guest-os-version="vmForm.guestOsVersion"
|
|
111
|
-
:storage="vmForm.storage"
|
|
112
|
-
:hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
|
|
113
|
-
:cd-dvd-drives-for-boot-options="
|
|
114
|
-
props.virtualHardwareCdDvdDrivesLocal
|
|
115
|
-
"
|
|
116
|
-
:networks-for-boot-options="props.virtualHardwareNetworksLocal"
|
|
117
|
-
:cd-dvd-drives="props.virtualHardwareCdDvdDrivesLocal"
|
|
108
|
+
:storage="model.storage"
|
|
118
109
|
:customize-hardware-submit="props.customizeHardwareSubmit"
|
|
119
|
-
:max-cpus="props.maxCpus"
|
|
120
110
|
:max-memory="props.maxMemory"
|
|
121
111
|
:cpu-models="props.cpuModels"
|
|
122
112
|
:selected-nav-item="props.selectedNavItem"
|
|
@@ -130,9 +120,7 @@
|
|
|
130
120
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
131
121
|
:passthrough-devices="props.passthroughDevices"
|
|
132
122
|
:mediated-devices="props.mediatedDevices"
|
|
133
|
-
:compute-resource="
|
|
134
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
135
|
-
@send-data="emits('change-customize-hardware', $event)"
|
|
123
|
+
:compute-resource="computeResource"
|
|
136
124
|
@get-storage="emits('get-storage', $event)"
|
|
137
125
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
138
126
|
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
@@ -144,34 +132,21 @@
|
|
|
144
132
|
<common-vm-actions-common-customize-hardware
|
|
145
133
|
v-if="props.vmtSettings"
|
|
146
134
|
v-show="selectedStep.id === dynamicSteps.customizeHardwareTemplate"
|
|
135
|
+
v-model="model"
|
|
147
136
|
:is-vmt="props.isVmt"
|
|
148
137
|
:project="props.project"
|
|
149
|
-
:
|
|
150
|
-
:guest-machine-type="vmForm.guestMachineType"
|
|
151
|
-
:guest-os-family="vmForm.guestOsFamily"
|
|
152
|
-
:guest-os-version="vmForm.guestOsVersion"
|
|
153
|
-
:storage="vmForm.storage"
|
|
154
|
-
:hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
|
|
155
|
-
:cd-dvd-drives-for-boot-options="
|
|
156
|
-
props.virtualHardwareCdDvdDrivesLocal
|
|
157
|
-
"
|
|
158
|
-
:networks-for-boot-options="props.virtualHardwareNetworksLocal"
|
|
138
|
+
:storage="model.storage"
|
|
159
139
|
:cd-dvd-drives="props.vmtSettings.cdDvdDrives || []"
|
|
160
140
|
:hard-disks="props.vmtSettings.hardDisks || []"
|
|
161
141
|
:networks="props.vmtSettings.networks || []"
|
|
162
142
|
:customize-hardware-submit="
|
|
163
143
|
props.customizeHardwareForTemplateSubmit
|
|
164
144
|
"
|
|
165
|
-
:max-cpus="props.maxCpus"
|
|
166
145
|
:max-memory="props.maxMemory"
|
|
167
146
|
:cpu-models="props.cpuModels"
|
|
168
|
-
:cpu="props.vmtSettings.cpu"
|
|
169
|
-
:memory="props.vmtSettings.memory"
|
|
170
147
|
:video-card="props.vmtSettings.videoCard"
|
|
171
|
-
:usb-controller="props.vmtSettings.usbController"
|
|
172
148
|
:pci-devices="props.vmtSettings.pciDevices"
|
|
173
149
|
:hard-disks-for-edit="props.vmtSettings.hardDisks || []"
|
|
174
|
-
:options="props.vmtSettings.options"
|
|
175
150
|
:selected-nav-item="props.selectedNavItem"
|
|
176
151
|
:nodes="props.nodes"
|
|
177
152
|
:files="props.files"
|
|
@@ -183,10 +158,8 @@
|
|
|
183
158
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
184
159
|
:passthrough-devices="props.passthroughDevices"
|
|
185
160
|
:mediated-devices="props.mediatedDevices"
|
|
186
|
-
:compute-resource="
|
|
161
|
+
:compute-resource="computeResource"
|
|
187
162
|
is-clone
|
|
188
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
189
|
-
@send-data="emits('change-customize-hardware', $event)"
|
|
190
163
|
@get-storage="emits('get-storage', $event)"
|
|
191
164
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
192
165
|
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
@@ -247,17 +220,11 @@ import type {
|
|
|
247
220
|
} from '~/components/common/vm/actions/common/lib/models/types'
|
|
248
221
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
249
222
|
import type {
|
|
223
|
+
UI_I_CreateVmData,
|
|
250
224
|
// UI_I_Capabilities,
|
|
251
225
|
UI_I_VmForm,
|
|
252
226
|
} from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
253
|
-
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
|
254
|
-
import type {
|
|
255
|
-
UI_I_SendDataNewCdDvdDrive,
|
|
256
|
-
UI_I_SendDataNewHardDisk,
|
|
257
|
-
UI_I_SendDataNewNetwork,
|
|
258
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
259
227
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
260
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
|
261
228
|
import type {
|
|
262
229
|
UI_I_MediatedDevice,
|
|
263
230
|
UI_I_PciDevice,
|
|
@@ -267,7 +234,10 @@ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/
|
|
|
267
234
|
import type { UI_T_CompatibilityStatus } from '~/components/common/wizards/common/compatibility/lib/models/types'
|
|
268
235
|
import { dynamicSteps } from '~/components/common/vm/actions/add/lib/config/steps'
|
|
269
236
|
|
|
270
|
-
const
|
|
237
|
+
const model = defineModel<UI_I_CreateVmData>({
|
|
238
|
+
required: true,
|
|
239
|
+
})
|
|
240
|
+
const computeResource = defineModel<UI_I_TreeNode | null>('computeResource', {
|
|
271
241
|
required: true,
|
|
272
242
|
})
|
|
273
243
|
const selectedCreateType = defineModel<string>('selectedCreateType', {
|
|
@@ -306,10 +276,6 @@ const props = withDefaults(
|
|
|
306
276
|
guestOsFamilies: UI_I_OptionItem[]
|
|
307
277
|
guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
|
|
308
278
|
machineTypes: UI_I_OptionItem[]
|
|
309
|
-
virtualHardwareHardDisksLocal: UI_I_SendDataNewHardDisk[] | null
|
|
310
|
-
virtualHardwareCdDvdDrivesLocal: UI_I_SendDataNewCdDvdDrive[] | null
|
|
311
|
-
virtualHardwareNetworksLocal: UI_I_SendDataNewNetwork[] | null
|
|
312
|
-
maxCpus: number
|
|
313
279
|
maxMemory: number
|
|
314
280
|
cpuModels: UI_I_OptionItem[]
|
|
315
281
|
selectedNavItem: UI_T_SelectedNavItem
|
|
@@ -360,11 +326,6 @@ const emits = defineEmits<{
|
|
|
360
326
|
(event: 'change-select-options', value: string[]): void
|
|
361
327
|
(event: 'change-clone-count', value: number): void
|
|
362
328
|
(event: 'change-compatibility', value: UI_I_OptionItem): void
|
|
363
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
|
364
|
-
(
|
|
365
|
-
event: 'change-customize-hardware',
|
|
366
|
-
value: UI_I_SendDataCustomizeHardware
|
|
367
|
-
): void
|
|
368
329
|
(event: 'hide'): void
|
|
369
330
|
}>()
|
|
370
331
|
|