bfg-common 1.4.70 → 1.4.71

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 (21) hide show
  1. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +13 -2
  2. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +2 -1
  3. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +3 -4
  4. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +6 -4
  5. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +3 -2
  6. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Iommu.vue +3 -2
  7. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Pc.vue +3 -2
  8. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryHotPlug.vue +3 -2
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +2 -1
  10. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/Graphics.vue +3 -2
  11. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/Menu.vue +3 -2
  12. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/Secure.vue +3 -2
  13. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +2 -1
  14. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +2 -1
  15. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/FileTransfer.vue +2 -1
  16. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/FolderSharing.vue +2 -1
  17. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +3 -2
  18. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +2 -1
  19. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +2 -1
  20. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +2 -1
  21. package/package.json +1 -1
@@ -92,8 +92,19 @@ const emits = defineEmits<{
92
92
 
93
93
  const helpId = ref<string>(`bus-field-help-icon${useUniqueId()}`)
94
94
 
95
- const busOptions = computed<UI_I_OptionItem[]>(() =>
96
- props.guestMachineType ? capabilities.bus[props.guestMachineType.value] : []
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 }
97
108
  )
98
109
 
99
110
  const busLocal = computed<string>({
@@ -24,12 +24,13 @@
24
24
  <div class="flex-align-center" @click.stop>
25
25
  <input
26
26
  :id="`cd-dvd-delete-files-from-datastore-${props.index}`"
27
- v-model="deleteFilesFromDatastore"
28
27
  :data-id="`cd-dvd-delete-files-from-datastore-${props.index}`"
29
28
  :disabled="props.disabled"
30
29
  type="checkbox"
31
30
  class="pointer"
32
31
  @click.stop
32
+ :value="deleteFilesFromDatastore"
33
+ @input="deleteFilesFromDatastore = !deleteFilesFromDatastore"
33
34
  />
34
35
  <label
35
36
  :for="`cd-dvd-delete-files-from-datastore-${props.index}`"
@@ -7,10 +7,11 @@
7
7
  <template #stackBlockContent>
8
8
  <input
9
9
  id="enable-cpu-hot-add"
10
- v-model="enableCpuHotAddLocal"
11
10
  data-id="enable-cpu-hot-add"
12
11
  type="checkbox"
13
12
  :disabled="props.disabled"
13
+ :value="enableCpuHotAddLocal"
14
+ @input="enableCpuHotAddLocal = !enableCpuHotAddLocal"
14
15
  />
15
16
  <label
16
17
  for="enable-cpu-hot-add"
@@ -41,12 +42,10 @@ const emits = defineEmits<{
41
42
  // })
42
43
  const enableCpuHotAddLocal = computed<boolean>({
43
44
  get() {
44
- console.log(props.enableCpuHotAdd, 111)
45
45
  return props.enableCpuHotAdd
46
46
  },
47
47
  set(newValue) {
48
- console.log(newValue, 222)
49
- emits('update:enable-cpu-hot-add', newValue)
48
+ emits('update:enable-cpu-hot-add', !newValue)
50
49
  },
51
50
  })
52
51
  </script>
@@ -36,10 +36,11 @@
36
36
  <div class="passthrough-host-cpu-wrap flex-align-center">
37
37
  <input
38
38
  id="passthrough-host-cpu"
39
- v-model="passthroughHostCpuLocal"
40
39
  data-id="passthrough-host-cpu"
41
40
  :disabled="props.disabled"
42
41
  type="checkbox"
42
+ :value="passthroughHostCpuLocal"
43
+ @input="passthroughHostCpuLocal = !passthroughHostCpuLocal"
43
44
  @change="changePassthroughHostCpu"
44
45
  />
45
46
  <label for="passthrough-host-cpu" class="label-text-normal">{{
@@ -79,10 +80,11 @@
79
80
  <div class="flex-align-center">
80
81
  <input
81
82
  id="host-model-cpu"
82
- v-model="hostModelCpuLocal"
83
83
  data-id="host-model-cpu-input"
84
84
  type="checkbox"
85
85
  :disabled="props.disabled"
86
+ :value="hostModelCpuLocal"
87
+ @input="hostModelCpuLocal = !hostModelCpuLocal"
86
88
  @change="changeHostModelCpu"
87
89
  />
88
90
  <label for="host-model-cpu" class="label-text-normal">{{
@@ -162,7 +164,7 @@ const passthroughHostCpuLocal = computed<boolean>({
162
164
  return props.passthroughHostCpu
163
165
  },
164
166
  set(newValue) {
165
- emits('update:passthrough-host-cpu', newValue)
167
+ emits('update:passthrough-host-cpu', !newValue)
166
168
  },
167
169
  })
168
170
  const hostModelCpuLocal = computed<boolean>({
@@ -170,7 +172,7 @@ const hostModelCpuLocal = computed<boolean>({
170
172
  return props.hostModelCpu
171
173
  },
172
174
  set(newValue) {
173
- emits('update:host-model-cpu', newValue)
175
+ emits('update:host-model-cpu', !newValue)
174
176
  },
175
177
  })
176
178
 
@@ -9,10 +9,11 @@
9
9
  <div class="flex-align-center">
10
10
  <input
11
11
  id="expose-hardware-assisted-virtualization"
12
- v-model="hardwareVirtualizationLocal"
13
12
  data-id="expose-hardware-assisted-virtualization"
14
13
  type="checkbox"
15
14
  disabled
15
+ :value="hardwareVirtualizationLocal"
16
+ @input="hardwareVirtualizationLocal = !hardwareVirtualizationLocal"
16
17
  />
17
18
  <label
18
19
  for="expose-hardware-assisted-virtualization"
@@ -73,7 +74,7 @@ const hardwareVirtualizationLocal = computed<boolean>({
73
74
  return props.hardwareVirtualization
74
75
  },
75
76
  set(newValue) {
76
- emits('update:hardware-virtualization', newValue)
77
+ emits('update:hardware-virtualization', !newValue)
77
78
  },
78
79
  })
79
80
 
@@ -9,10 +9,11 @@
9
9
  <div class="flex-align-center">
10
10
  <input
11
11
  id="enable-iommu"
12
- v-model="iommuLocal"
13
12
  type="checkbox"
14
13
  data-id="select-enable-iommu"
15
14
  disabled
15
+ :value="iommuLocal"
16
+ @input="iommuLocal = !iommuLocal"
16
17
  />
17
18
  <label
18
19
  for="enable-iommu"
@@ -43,7 +44,7 @@ const iommuLocal = computed<boolean>({
43
44
  return props.iommu
44
45
  },
45
46
  set(newValue) {
46
- emits('update:iommu', newValue)
47
+ emits('update:iommu', !newValue)
47
48
  },
48
49
  })
49
50
  </script>
@@ -9,10 +9,11 @@
9
9
  <div class="flex-align-center">
10
10
  <input
11
11
  id="enable-performance-counters"
12
- v-model="performanceCountersLocal"
13
12
  data-id="enable-performance-counters"
14
13
  type="checkbox"
15
14
  disabled
15
+ :value="performanceCountersLocal"
16
+ @input="performanceCountersLocal = !performanceCountersLocal"
16
17
  />
17
18
  <label
18
19
  for="enable-performance-counters"
@@ -43,7 +44,7 @@ const performanceCountersLocal = computed<boolean>({
43
44
  return props.performanceCounters
44
45
  },
45
46
  set(newValue) {
46
- emits('update:performance-counters', newValue)
47
+ emits('update:performance-counters', !newValue)
47
48
  },
48
49
  })
49
50
  </script>
@@ -8,10 +8,11 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="memory-hot-plug"
11
- v-model="memoryHotPlugLocal"
12
11
  data-id="memory-hot-plug-input"
13
12
  type="checkbox"
14
13
  :disabled="props.disabled"
14
+ :value="memoryHotPlugLocal"
15
+ @input="memoryHotPlugLocal = !memoryHotPlugLocal"
15
16
  />
16
17
  <label
17
18
  for="memory-hot-plug"
@@ -42,7 +43,7 @@ const memoryHotPlugLocal = computed<boolean>({
42
43
  return props.memoryHotPlug
43
44
  },
44
45
  set(newValue) {
45
- emits('update:memory-hot-plug', newValue)
46
+ emits('update:memory-hot-plug', !newValue)
46
47
  },
47
48
  })
48
49
  </script>
@@ -31,11 +31,12 @@
31
31
  <div @click.stop class="flex-align-center">
32
32
  <input
33
33
  :id="`hard-disk-delete-files-from-datastore-${props.index}`"
34
- v-model="deleteFilesFromDatastore"
35
34
  :data-id="`hard-disk-delete-files-from-datastore-${props.index}`"
36
35
  :disabled="props.disabled"
37
36
  type="checkbox"
38
37
  class="pointer"
38
+ :value="deleteFilesFromDatastore"
39
+ @input="deleteFilesFromDatastore = !deleteFilesFromDatastore"
39
40
  @click.stop
40
41
  />
41
42
  <label
@@ -8,9 +8,10 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="graphics"
11
- v-model="graphicsLocal"
12
11
  data-id="graphics-checkbox"
13
12
  type="checkbox"
13
+ :value="graphicsLocal"
14
+ @input="graphicsLocal = !graphicsLocal"
14
15
  />
15
16
  <label for="graphics" class="label-text-normal">{{
16
17
  localization.common.enable3dSupport
@@ -38,7 +39,7 @@ const graphicsLocal = computed<boolean>({
38
39
  return props.graphics
39
40
  },
40
41
  set(newValue) {
41
- emits('update:graphics', newValue)
42
+ emits('update:graphics', !newValue)
42
43
  },
43
44
  })
44
45
  </script>
@@ -8,9 +8,10 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="boot-menu"
11
- v-model="bootMenuLocal"
12
11
  data-id="boot-menu-checkbox"
13
12
  type="checkbox"
13
+ :value="bootMenuLocal"
14
+ @input="bootMenuLocal = !bootMenuLocal"
14
15
  />
15
16
  <label for="boot-menu" class="label-text-normal">{{
16
17
  localization.common.enable
@@ -38,7 +39,7 @@ const bootMenuLocal = computed<boolean>({
38
39
  return props.bootMenu
39
40
  },
40
41
  set(newValue) {
41
- emits('update:boot-menu', newValue)
42
+ emits('update:boot-menu', !newValue)
42
43
  },
43
44
  })
44
45
  </script>
@@ -8,9 +8,10 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="secure-boot"
11
- v-model="secureBootLocal"
12
11
  data-id="secure-boot-checkbox"
13
12
  type="checkbox"
13
+ :value="secureBootLocal"
14
+ @input="secureBootLocal = !secureBootLocal"
14
15
  />
15
16
  <label for="secure-boot" class="label-text-normal">{{
16
17
  localization.common.enable
@@ -38,7 +39,7 @@ const secureBootLocal = computed<boolean>({
38
39
  return props.secureBoot
39
40
  },
40
41
  set(newValue) {
41
- emits('update:secure-boot', newValue)
42
+ emits('update:secure-boot', !newValue)
42
43
  },
43
44
  })
44
45
  </script>
@@ -17,9 +17,10 @@
17
17
  >
18
18
  <input
19
19
  :id="`boot-order-${index}`"
20
- v-model="item.isChecked"
21
20
  :data-id="item.testId"
22
21
  type="checkbox"
22
+ :value="item.isChecked"
23
+ @input="item.isChecked = !item.isChecked"
23
24
  />
24
25
  </template>
25
26
  <template
@@ -8,10 +8,11 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="copy-paste"
11
- v-model="copyPasteLocal"
12
11
  data-id="copy-paste-checkbox"
13
12
  :disabled="props.disabled"
14
13
  type="checkbox"
14
+ :value="copyPasteLocal"
15
+ @input="copyPasteLocal = !copyPasteLocal"
15
16
  />
16
17
  <label for="copy-paste" class="label-text-normal">{{
17
18
  localization.common.enable
@@ -8,10 +8,11 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="file-transfer"
11
- v-model="fileTransferLocal"
12
11
  data-id="file-transfer-checkbox"
13
12
  :disabled="props.disabled"
14
13
  type="checkbox"
14
+ :value="fileTransferLocal"
15
+ @input="fileTransferLocal = !fileTransferLocal"
15
16
  />
16
17
  <label for="file-transfer" class="label-text-normal">{{
17
18
  localization.common.enable
@@ -8,10 +8,11 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="folder-sharing"
11
- v-model="folderSharingLocal"
12
11
  data-id="folder-sharing-checkbox"
13
12
  type="checkbox"
14
13
  disabled
14
+ :value="folderSharingLocal"
15
+ @input="folderSharingLocal = !folderSharingLocal"
15
16
  />
16
17
  <label for="folder-sharing" class="div-disabled label-text-normal">{{
17
18
  localization.common.enable
@@ -8,10 +8,11 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="playback-compression"
11
- v-model="playbackCompressionLocal"
12
11
  data-id="playback-compression-checkbox"
13
12
  :disabled="props.disabled"
14
13
  type="checkbox"
14
+ :value="playbackCompressionLocal"
15
+ @input="playbackCompressionLocal = !playbackCompressionLocal"
15
16
  />
16
17
  <label for="playback-compression" class="label-text-normal">{{
17
18
  localization.common.enable
@@ -40,7 +41,7 @@ const playbackCompressionLocal = computed<boolean>({
40
41
  return props.playbackCompression
41
42
  },
42
43
  set(newValue) {
43
- emits('update:playback-compression', newValue)
44
+ emits('update:playback-compression', !newValue)
44
45
  },
45
46
  })
46
47
  </script>
@@ -8,9 +8,10 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="power-control"
11
- v-model="powerControlLocal"
12
11
  data-id="power-control-checkbox"
13
12
  type="checkbox"
13
+ :value="powerControlLocal"
14
+ @input="powerControlLocal = !powerControlLocal"
14
15
  />
15
16
  <label for="power-control" class="label-text-normal">{{
16
17
  localization.common.enable
@@ -8,10 +8,11 @@
8
8
  <div class="flex-align-center">
9
9
  <input
10
10
  id="enable-password"
11
- v-model="isEnabledPassword"
12
11
  data-id="enable-password-input"
13
12
  :disabled="props.disabled"
14
13
  type="checkbox"
14
+ :value="isEnabledPassword"
15
+ @input="isEnabledPassword = !isEnabledPassword"
15
16
  @change="setPasswordDisable"
16
17
  />
17
18
  <label for="enable-password" class="label-text-normal mr-1">{{
@@ -18,9 +18,10 @@
18
18
  <template #stackBlockContent>
19
19
  <input
20
20
  id="tools-2"
21
- v-model="tools"
22
21
  data-id="tools-2-checkbox"
23
22
  type="checkbox"
23
+ :value="tools"
24
+ @input="tools = !tools"
24
25
  />
25
26
  <label for="tools-2" class="label-text-normal">{{
26
27
  localization.common.enable
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.70",
4
+ "version": "1.4.71",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",