bfg-common 1.4.71 → 1.4.73

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.
Files changed (24) hide show
  1. package/components/common/vm/actions/clone/Clone.vue +522 -511
  2. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +13 -15
  3. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +1 -1
  4. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +1 -1
  5. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +2 -2
  6. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +1 -1
  7. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Iommu.vue +1 -1
  8. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Pc.vue +1 -1
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryHotPlug.vue +1 -1
  10. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +1 -1
  11. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/Graphics.vue +1 -1
  12. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/Menu.vue +1 -1
  13. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/Secure.vue +1 -1
  14. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +1 -1
  15. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +1 -1
  16. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/FileTransfer.vue +1 -1
  17. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/FolderSharing.vue +1 -1
  18. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +1 -1
  19. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +1 -1
  20. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +1 -1
  21. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +1 -1
  22. package/components/common/vm/actions/common/select/lib/models/interfaces.ts +0 -1
  23. package/components/common/vm/actions/editSettings/EditSettings.vue +327 -316
  24. package/package.json +1 -1
@@ -92,21 +92,6 @@ const emits = defineEmits<{
92
92
 
93
93
  const helpId = ref<string>(`bus-field-help-icon${useUniqueId()}`)
94
94
 
95
- const busOptions = ref<UI_I_OptionItem[]>([])
96
- watch(
97
- () => props.guestMachineType,
98
- () => {
99
- console.log(capabilities.bus, 111, props.guestMachineType)
100
- if (props.guestMachineType) {
101
- console.log(222, props.guestMachineType.value)
102
- busOptions.value = capabilities.bus[props.guestMachineType.value]
103
- const hasSelected = busOptions.value.some(option => option.value === busLocal.value)
104
- if (!hasSelected) busLocal.value = busOptions.value[0].value
105
- }
106
- },
107
- { immediate: true, deep: true }
108
- )
109
-
110
95
  const busLocal = computed<string>({
111
96
  get() {
112
97
  return props.bus
@@ -115,6 +100,19 @@ const busLocal = computed<string>({
115
100
  emits('update:bus', newValue)
116
101
  },
117
102
  })
103
+ const busOptions = ref<UI_I_OptionItem[]>([])
104
+ watch(
105
+ () => props.guestMachineType,
106
+ () => {
107
+ if (props.guestMachineType) {
108
+ busOptions.value = capabilities.bus[props.guestMachineType.value]
109
+
110
+ const hasSelected = busOptions.value.some(option => option.value === busLocal.value)
111
+ if (!hasSelected) busLocal.value = busOptions.value[0].value
112
+ }
113
+ },
114
+ { immediate: true, deep: true }
115
+ )
118
116
 
119
117
  const busValidationType = computed<string>(
120
118
  () => `disk_devices[${props.index}].bus`
@@ -29,7 +29,7 @@
29
29
  type="checkbox"
30
30
  class="pointer"
31
31
  @click.stop
32
- :value="deleteFilesFromDatastore"
32
+ v-model="deleteFilesFromDatastore"
33
33
  @input="deleteFilesFromDatastore = !deleteFilesFromDatastore"
34
34
  />
35
35
  <label
@@ -10,7 +10,7 @@
10
10
  data-id="enable-cpu-hot-add"
11
11
  type="checkbox"
12
12
  :disabled="props.disabled"
13
- :value="enableCpuHotAddLocal"
13
+ v-model="enableCpuHotAddLocal"
14
14
  @input="enableCpuHotAddLocal = !enableCpuHotAddLocal"
15
15
  />
16
16
  <label
@@ -39,7 +39,7 @@
39
39
  data-id="passthrough-host-cpu"
40
40
  :disabled="props.disabled"
41
41
  type="checkbox"
42
- :value="passthroughHostCpuLocal"
42
+ v-model="passthroughHostCpuLocal"
43
43
  @input="passthroughHostCpuLocal = !passthroughHostCpuLocal"
44
44
  @change="changePassthroughHostCpu"
45
45
  />
@@ -83,7 +83,7 @@
83
83
  data-id="host-model-cpu-input"
84
84
  type="checkbox"
85
85
  :disabled="props.disabled"
86
- :value="hostModelCpuLocal"
86
+ v-model="hostModelCpuLocal"
87
87
  @input="hostModelCpuLocal = !hostModelCpuLocal"
88
88
  @change="changeHostModelCpu"
89
89
  />
@@ -12,7 +12,7 @@
12
12
  data-id="expose-hardware-assisted-virtualization"
13
13
  type="checkbox"
14
14
  disabled
15
- :value="hardwareVirtualizationLocal"
15
+ v-model="hardwareVirtualizationLocal"
16
16
  @input="hardwareVirtualizationLocal = !hardwareVirtualizationLocal"
17
17
  />
18
18
  <label
@@ -12,7 +12,7 @@
12
12
  type="checkbox"
13
13
  data-id="select-enable-iommu"
14
14
  disabled
15
- :value="iommuLocal"
15
+ v-model="iommuLocal"
16
16
  @input="iommuLocal = !iommuLocal"
17
17
  />
18
18
  <label
@@ -12,7 +12,7 @@
12
12
  data-id="enable-performance-counters"
13
13
  type="checkbox"
14
14
  disabled
15
- :value="performanceCountersLocal"
15
+ v-model="performanceCountersLocal"
16
16
  @input="performanceCountersLocal = !performanceCountersLocal"
17
17
  />
18
18
  <label
@@ -11,7 +11,7 @@
11
11
  data-id="memory-hot-plug-input"
12
12
  type="checkbox"
13
13
  :disabled="props.disabled"
14
- :value="memoryHotPlugLocal"
14
+ v-model="memoryHotPlugLocal"
15
15
  @input="memoryHotPlugLocal = !memoryHotPlugLocal"
16
16
  />
17
17
  <label
@@ -35,7 +35,7 @@
35
35
  :disabled="props.disabled"
36
36
  type="checkbox"
37
37
  class="pointer"
38
- :value="deleteFilesFromDatastore"
38
+ v-model="deleteFilesFromDatastore"
39
39
  @input="deleteFilesFromDatastore = !deleteFilesFromDatastore"
40
40
  @click.stop
41
41
  />
@@ -10,7 +10,7 @@
10
10
  id="graphics"
11
11
  data-id="graphics-checkbox"
12
12
  type="checkbox"
13
- :value="graphicsLocal"
13
+ v-model="graphicsLocal"
14
14
  @input="graphicsLocal = !graphicsLocal"
15
15
  />
16
16
  <label for="graphics" class="label-text-normal">{{
@@ -10,7 +10,7 @@
10
10
  id="boot-menu"
11
11
  data-id="boot-menu-checkbox"
12
12
  type="checkbox"
13
- :value="bootMenuLocal"
13
+ v-model="bootMenuLocal"
14
14
  @input="bootMenuLocal = !bootMenuLocal"
15
15
  />
16
16
  <label for="boot-menu" class="label-text-normal">{{
@@ -10,7 +10,7 @@
10
10
  id="secure-boot"
11
11
  data-id="secure-boot-checkbox"
12
12
  type="checkbox"
13
- :value="secureBootLocal"
13
+ v-model="secureBootLocal"
14
14
  @input="secureBootLocal = !secureBootLocal"
15
15
  />
16
16
  <label for="secure-boot" class="label-text-normal">{{
@@ -19,7 +19,7 @@
19
19
  :id="`boot-order-${index}`"
20
20
  :data-id="item.testId"
21
21
  type="checkbox"
22
- :value="item.isChecked"
22
+ v-model="item.isChecked"
23
23
  @input="item.isChecked = !item.isChecked"
24
24
  />
25
25
  </template>
@@ -11,7 +11,7 @@
11
11
  data-id="copy-paste-checkbox"
12
12
  :disabled="props.disabled"
13
13
  type="checkbox"
14
- :value="copyPasteLocal"
14
+ v-model="copyPasteLocal"
15
15
  @input="copyPasteLocal = !copyPasteLocal"
16
16
  />
17
17
  <label for="copy-paste" class="label-text-normal">{{
@@ -11,7 +11,7 @@
11
11
  data-id="file-transfer-checkbox"
12
12
  :disabled="props.disabled"
13
13
  type="checkbox"
14
- :value="fileTransferLocal"
14
+ v-model="fileTransferLocal"
15
15
  @input="fileTransferLocal = !fileTransferLocal"
16
16
  />
17
17
  <label for="file-transfer" class="label-text-normal">{{
@@ -11,7 +11,7 @@
11
11
  data-id="folder-sharing-checkbox"
12
12
  type="checkbox"
13
13
  disabled
14
- :value="folderSharingLocal"
14
+ v-model="folderSharingLocal"
15
15
  @input="folderSharingLocal = !folderSharingLocal"
16
16
  />
17
17
  <label for="folder-sharing" class="div-disabled label-text-normal">{{
@@ -11,7 +11,7 @@
11
11
  data-id="playback-compression-checkbox"
12
12
  :disabled="props.disabled"
13
13
  type="checkbox"
14
- :value="playbackCompressionLocal"
14
+ v-model="playbackCompressionLocal"
15
15
  @input="playbackCompressionLocal = !playbackCompressionLocal"
16
16
  />
17
17
  <label for="playback-compression" class="label-text-normal">{{
@@ -10,7 +10,7 @@
10
10
  id="power-control"
11
11
  data-id="power-control-checkbox"
12
12
  type="checkbox"
13
- :value="powerControlLocal"
13
+ v-model="powerControlLocal"
14
14
  @input="powerControlLocal = !powerControlLocal"
15
15
  />
16
16
  <label for="power-control" class="label-text-normal">{{
@@ -11,7 +11,7 @@
11
11
  data-id="enable-password-input"
12
12
  :disabled="props.disabled"
13
13
  type="checkbox"
14
- :value="isEnabledPassword"
14
+ v-model="isEnabledPassword"
15
15
  @input="isEnabledPassword = !isEnabledPassword"
16
16
  @change="setPasswordDisable"
17
17
  />
@@ -20,7 +20,7 @@
20
20
  id="tools-2"
21
21
  data-id="tools-2-checkbox"
22
22
  type="checkbox"
23
- :value="tools"
23
+ v-model="tools"
24
24
  @input="tools = !tools"
25
25
  />
26
26
  <label for="tools-2" class="label-text-normal">{{
@@ -1,6 +1,5 @@
1
1
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
2
2
  import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
3
- import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
4
3
 
5
4
  export interface UI_I_OsChange {
6
5
  selectedMachineType: UI_I_OptionItem | null