bfg-common 1.4.398 → 1.4.400

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 (122) hide show
  1. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +203 -189
  2. package/package.json +1 -1
  3. package/components/common/vm/actions/common/_customizeHardware/CustomizeHardware.vue +0 -274
  4. package/components/common/vm/actions/common/_customizeHardware/lib/config/navItems.ts +0 -21
  5. package/components/common/vm/actions/common/_customizeHardware/lib/models/interfaces.ts +0 -7
  6. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/VirtualHardware.vue +0 -702
  7. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/browseView/BrowseView.vue +0 -203
  8. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/browseView/lib/models/interfaces.ts +0 -8
  9. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/bus/Bus.vue +0 -156
  10. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/bus/lib/config/options.ts +0 -20
  11. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +0 -270
  12. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/config/fileTypes.ts +0 -9
  13. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/config/options.ts +0 -11
  14. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/models/types.ts +0 -1
  15. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +0 -57
  16. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +0 -110
  17. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Cpu.vue +0 -403
  18. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +0 -56
  19. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CpuModel.vue +0 -225
  20. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Hv.vue +0 -99
  21. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Iommu.vue +0 -55
  22. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/MaxCpu.vue +0 -106
  23. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Pc.vue +0 -55
  24. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Sa.vue +0 -106
  25. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/lib/config/cpuOptions.ts +0 -21
  26. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/shares/Shares.vue +0 -160
  27. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +0 -28
  28. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/tooltip/Tooltip.vue +0 -59
  29. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/config/binaryOptions.ts +0 -12
  30. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/config/dropdownItems.ts +0 -66
  31. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/models/interfaces.ts +0 -118
  32. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/models/types.ts +0 -4
  33. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/limit/Limit.vue +0 -236
  34. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/limit/lib/config/options.ts +0 -28
  35. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/Memory.vue +0 -329
  36. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/MemoryHotPlug.vue +0 -54
  37. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/lib/config/memoryOptions.ts +0 -35
  38. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/DiskFile.vue +0 -24
  39. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/MaximumSize.vue +0 -27
  40. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +0 -462
  41. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +0 -81
  42. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/cache/lib/config/options.ts +0 -7
  43. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +0 -153
  44. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/limitIops/lib/config/options.ts +0 -28
  45. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/Location.vue +0 -172
  46. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +0 -52
  47. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/StorageModalNew.vue +0 -175
  48. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/lib/config/table.ts +0 -167
  49. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/mode/Mode.vue +0 -88
  50. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/mode/lib/config/options.ts +0 -18
  51. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/provisioning/Provisioning.vue +0 -88
  52. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/provisioning/lib/config/options.ts +0 -15
  53. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/sharing/Sharing.vue +0 -86
  54. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/sharing/lib/config/options.ts +0 -12
  55. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/Location.vue +0 -145
  56. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +0 -305
  57. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/adapterType/AdapterType.vue +0 -87
  58. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/adapterType/lib/config/options.ts +0 -9
  59. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +0 -148
  60. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/macAddress/lib/config/options.ts +0 -11
  61. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +0 -168
  62. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +0 -48
  63. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +0 -49
  64. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/lib/config/options.ts +0 -10
  65. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/lib/config/options.ts +0 -7
  66. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/note/Note.vue +0 -27
  67. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +0 -42
  68. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelection.vue +0 -57
  69. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +0 -82
  70. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newUsbController/lib/config/options.ts +0 -6
  71. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/other/InputDevices.vue +0 -21
  72. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/other/Other.vue +0 -32
  73. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/reservation/Reservation.vue +0 -237
  74. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/reservation/lib/config/options.ts +0 -33
  75. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/Graphics.vue +0 -50
  76. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/TotalVideoMemory.vue +0 -121
  77. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/VideoCard.vue +0 -182
  78. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/lib/config/options.ts +0 -11
  79. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/model/Model.vue +0 -59
  80. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/model/lib/config/options.ts +0 -10
  81. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +0 -83
  82. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/numberDisplays/lib/config/options.ts +0 -14
  83. package/components/common/vm/actions/common/_customizeHardware/vmoptions/Vmoptions.vue +0 -181
  84. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/BootOptions.vue +0 -114
  85. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Menu.vue +0 -50
  86. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Secure.vue +0 -50
  87. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/delay/Delay.vue +0 -54
  88. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/delay/lib/config/config.ts +0 -14
  89. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +0 -84
  90. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/firmware/lib/config/config.ts +0 -11
  91. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/order/Order.vue +0 -201
  92. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces.ts +0 -9
  93. package/components/common/vm/actions/common/_customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +0 -192
  94. package/components/common/vm/actions/common/_customizeHardware/vmoptions/lib/models/interfaces.ts +0 -34
  95. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +0 -52
  96. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/FileTransfer.vue +0 -52
  97. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/FolderSharing.vue +0 -51
  98. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +0 -52
  99. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +0 -50
  100. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +0 -254
  101. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +0 -85
  102. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/lib/config/config.ts +0 -14
  103. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +0 -85
  104. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/lib/config/config.ts +0 -12
  105. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +0 -56
  106. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/keymap/lib/config/config.ts +0 -6
  107. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/MouseMode.vue +0 -57
  108. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/lib/config/config.ts +0 -11
  109. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +0 -142
  110. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/lib/models/interfaces.ts +0 -5
  111. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/lib/utils.ts +0 -12
  112. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/SharePolicy.vue +0 -56
  113. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/lib/config/config.ts +0 -11
  114. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +0 -85
  115. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/lib/config/config.ts +0 -12
  116. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +0 -85
  117. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/type/lib/config/config.ts +0 -7
  118. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +0 -57
  119. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/lib/config/config.ts +0 -14
  120. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +0 -85
  121. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/lib/config/config.ts +0 -12
  122. package/components/common/vm/actions/common/_customizeHardware/vmoptions/tools/Tools.vue +0 -72
@@ -1,225 +0,0 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.cpuModel }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-align-center">
9
- <atoms-tooltip-error
10
- :has-error="!!apiError"
11
- selector="#vm-wizard-cpu-model-field"
12
- @remove="onRemoveValidationError"
13
- >
14
- <template #elem>
15
- <div class="select">
16
- <select
17
- id="vm-wizard-cpu-model-field"
18
- data-id="vm-wizard-cpu-model-field"
19
- :value="props.cpuModel"
20
- :disabled="props.disabled"
21
- @change="changeCpuModel"
22
- >
23
- <option
24
- v-for="(item, key) in cpuModelOptions"
25
- :key="key"
26
- :value="item.value"
27
- >
28
- {{ item.text }}
29
- </option>
30
- </select>
31
- </div>
32
- </template>
33
- <template #content>{{ apiError }}</template>
34
- </atoms-tooltip-error>
35
-
36
- <div class="passthrough-host-cpu-wrap flex-align-center">
37
- <input
38
- id="passthrough-host-cpu"
39
- v-model="passthroughHostCpuLocal"
40
- data-id="passthrough-host-cpu"
41
- :disabled="props.disabled"
42
- type="checkbox"
43
- @change="changePassthroughHostCpu"
44
- />
45
- <label for="passthrough-host-cpu" class="label-text-normal">{{
46
- localization.common.passthroughHostCpu
47
- }}</label>
48
- <div id="passthrough-help-icon" class="flex-align-center relative">
49
- <atoms-the-icon
50
- data-id="show-passthrough-help-icon"
51
- fill="#0072a3"
52
- width="24px"
53
- height="24px"
54
- name="info-circle"
55
- class="pointer"
56
- @click.stop="isShowPassthroughHost = !isShowPassthroughHost"
57
- />
58
- <Teleport to="body">
59
- <atoms-tooltip-signpost
60
- v-if="isShowPassthroughHost"
61
- elem-id="passthrough-help-icon"
62
- @hide="isShowPassthroughHost = false"
63
- >
64
- <h3 class="passthrough-help-title">
65
- {{ localization.mainNavigation.help }}
66
- </h3>
67
-
68
- <p class="passthrough-help-text">
69
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. A
70
- cum eius expedita, fuga mollitia perferendis quod soluta
71
- vel? Dolor, illo, nam? A consequatur, consequuntur eos
72
- impedit iusto labore sunt tempora!
73
- </p>
74
- </atoms-tooltip-signpost>
75
- </Teleport>
76
- </div>
77
- </div>
78
- <div class="divider"></div>
79
- <div class="flex-align-center">
80
- <input
81
- id="host-model-cpu"
82
- v-model="hostModelCpuLocal"
83
- data-id="host-model-cpu-input"
84
- type="checkbox"
85
- :disabled="props.disabled"
86
- @change="changeHostModelCpu"
87
- />
88
- <label for="host-model-cpu" class="label-text-normal">{{
89
- localization.common.hostModelCpu
90
- }}</label>
91
- <div id="host-model-help-icon" class="flex-align-center relative">
92
- <atoms-the-icon
93
- fill="#0072a3"
94
- width="24px"
95
- height="24px"
96
- name="info-circle"
97
- class="pointer"
98
- data-id="show-host-model-help-icon"
99
- @click.stop="isShowHostModel = !isShowHostModel"
100
- />
101
- <Teleport to="body">
102
- <atoms-tooltip-signpost
103
- v-if="isShowHostModel"
104
- elem-id="host-model-help-icon"
105
- @hide="isShowHostModel = false"
106
- >
107
- <h3 class="host-model-help-title">
108
- {{ localization.mainNavigation.help }}
109
- </h3>
110
-
111
- <p class="host-model-help-text">
112
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. A
113
- cum eius expedita, fuga mollitia perferendis quod soluta
114
- vel? Dolor, illo, nam? A consequatur, consequuntur eos
115
- impedit iusto labore sunt tempora!
116
- </p>
117
- </atoms-tooltip-signpost>
118
- </Teleport>
119
- </div>
120
- </div>
121
- </div>
122
- </template>
123
- </atoms-stack-block>
124
- </div>
125
- </template>
126
-
127
- <script setup lang="ts">
128
- import type {
129
- UI_I_Localization,
130
- UI_I_HTMLSelectElement,
131
- } from '~/lib/models/interfaces'
132
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
133
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
134
- const localization = computed<UI_I_Localization>(() => useLocal())
135
-
136
- const props = defineProps<{
137
- cpuModel: string
138
- passthroughHostCpu: boolean
139
- hostModelCpu: boolean
140
- cpuModels: UI_I_OptionItem[]
141
- isEdit: boolean
142
- disabled: boolean
143
- errorValidationFields: UI_I_ErrorValidationField<string>[]
144
- }>()
145
- const emits = defineEmits<{
146
- (event: 'update:cpu-model', value: string): boolean
147
- (event: 'update:passthrough-host-cpu', value: boolean): boolean
148
- (event: 'update:host-model-cpu', value: boolean): boolean
149
- (event: 'remove-error-by-title', value: string): void
150
- }>()
151
-
152
- const cpuModelOptions = ref<UI_I_OptionItem[]>(props.cpuModels)
153
- watch(
154
- () => props.cpuModels,
155
- (newValue) => {
156
- cpuModelOptions.value = [...newValue]
157
- }
158
- )
159
-
160
- const passthroughHostCpuLocal = computed<boolean>({
161
- get() {
162
- return props.passthroughHostCpu
163
- },
164
- set(newValue) {
165
- emits('update:passthrough-host-cpu', newValue)
166
- },
167
- })
168
- const hostModelCpuLocal = computed<boolean>({
169
- get() {
170
- return props.hostModelCpu
171
- },
172
- set(newValue) {
173
- emits('update:host-model-cpu', newValue)
174
- },
175
- })
176
-
177
- const changeCpuModel = (event: UI_I_HTMLSelectElement): void => {
178
- emits('update:cpu-model', event.target.value)
179
- emits('update:passthrough-host-cpu', false)
180
- emits('update:host-model-cpu', false)
181
- }
182
- const changePassthroughHostCpu = (event: Event): void => {
183
- const target = event.target as HTMLInputElement
184
- emits('update:cpu-model', target.checked ? '' : props.cpuModels?.[0].value)
185
- emits('update:host-model-cpu', false)
186
- }
187
- const changeHostModelCpu = (event: Event): void => {
188
- const target = event.target as HTMLInputElement
189
- emits('update:cpu-model', target.checked ? '' : props.cpuModels?.[0].value)
190
- emits('update:passthrough-host-cpu', false)
191
- }
192
-
193
- const isShowPassthroughHost = ref<false>(false)
194
- const isShowHostModel = ref<false>(false)
195
-
196
- const typeError = 'cpu.model'
197
-
198
- const apiError = computed<string>(() => {
199
- return (
200
- props.errorValidationFields?.find((message) => message.field === typeError)
201
- ?.error_message || ''
202
- )
203
- })
204
-
205
- const onRemoveValidationError = (): void => {
206
- emits('remove-error-by-title', typeError)
207
- }
208
- </script>
209
-
210
- <style scoped lang="scss">
211
- .passthrough-host-cpu-wrap {
212
- margin-right: 8px;
213
- }
214
- #passthrough-host-cpu,
215
- #host-model-cpu {
216
- margin: 0 4px 0 0;
217
- }
218
-
219
- .divider {
220
- height: 16px;
221
- width: 1px;
222
- background-color: var(--global-border-color);
223
- margin: 0 6px 0 0;
224
- }
225
- </style>
@@ -1,99 +0,0 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.hardwareVirtualization }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-space-between">
9
- <div class="flex-align-center">
10
- <input
11
- id="expose-hardware-assisted-virtualization"
12
- v-model="hardwareVirtualizationLocal"
13
- data-id="expose-hardware-assisted-virtualization"
14
- type="checkbox"
15
- disabled
16
- />
17
- <label
18
- for="expose-hardware-assisted-virtualization"
19
- :class="['label-text-normal', { 'div-disabled': true }]"
20
- >{{
21
- localization.common.exposeHardwareAssistedVirtualizationGuestOs
22
- }}</label
23
- >
24
- </div>
25
-
26
- <div id="hv-help-icon">
27
- <atoms-the-icon
28
- fill="#0072a3"
29
- width="24px"
30
- height="24px"
31
- name="info-circle"
32
- data-id="show-hv-help-icon"
33
- @click.stop="isShowHvHelp = !isShowHvHelp"
34
- />
35
- <Teleport to="body">
36
- <atoms-tooltip-signpost
37
- v-if="isShowHvHelp"
38
- elem-id="hv-help-icon"
39
- @hide="isShowHvHelp = false"
40
- >
41
- <h3 class="hv-help-title">
42
- {{ localization.mainNavigation.help }}
43
- </h3>
44
-
45
- <p class="hv-help-text">
46
- {{
47
- localization.common.hardwareVirtualizationHelpDescription
48
- }}
49
- </p>
50
- </atoms-tooltip-signpost>
51
- </Teleport>
52
- </div>
53
- </div>
54
- </template>
55
- </atoms-stack-block>
56
- </div>
57
- </template>
58
-
59
- <script setup lang="ts">
60
- import type { UI_I_Localization } from '~/lib/models/interfaces'
61
-
62
- const localization = computed<UI_I_Localization>(() => useLocal())
63
-
64
- const props = defineProps<{
65
- hardwareVirtualization: boolean
66
- }>()
67
- const emits = defineEmits<{
68
- (event: 'update:hardware-virtualization', value: boolean): boolean
69
- }>()
70
-
71
- const hardwareVirtualizationLocal = computed<boolean>({
72
- get() {
73
- return props.hardwareVirtualization
74
- },
75
- set(newValue) {
76
- emits('update:hardware-virtualization', newValue)
77
- },
78
- })
79
-
80
- const isShowHvHelp = ref<boolean>(false)
81
- </script>
82
-
83
- <style scoped lang="scss">
84
- #expose-hardware-assisted-virtualization {
85
- margin: 4px 4px 0 0;
86
- }
87
-
88
- h3.hv-help-title {
89
- margin-top: 7px;
90
- font-size: 22px;
91
- color: #565656;
92
- }
93
- p.hv-help-text {
94
- width: 310px;
95
- margin-top: 24px;
96
- font-size: 14px;
97
- color: #565656;
98
- }
99
- </style>
@@ -1,55 +0,0 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.iommu }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-space-between">
9
- <div class="flex-align-center">
10
- <input
11
- id="enable-iommu"
12
- v-model="iommuLocal"
13
- type="checkbox"
14
- data-id="select-enable-iommu"
15
- disabled
16
- />
17
- <label
18
- for="enable-iommu"
19
- :class="['label-text-normal', { 'div-disabled': true }]"
20
- >{{ localization.common.enabled }}</label
21
- >
22
- </div>
23
- </div>
24
- </template>
25
- </atoms-stack-block>
26
- </div>
27
- </template>
28
-
29
- <script setup lang="ts">
30
- import type { UI_I_Localization } from '~/lib/models/interfaces'
31
-
32
- const localization = computed<UI_I_Localization>(() => useLocal())
33
-
34
- const props = defineProps<{
35
- iommu: boolean
36
- }>()
37
- const emits = defineEmits<{
38
- (event: 'update:iommu', value: boolean): boolean
39
- }>()
40
-
41
- const iommuLocal = computed<boolean>({
42
- get() {
43
- return props.iommu
44
- },
45
- set(newValue) {
46
- emits('update:iommu', newValue)
47
- },
48
- })
49
- </script>
50
-
51
- <style scoped lang="scss">
52
- #enable-iommu {
53
- margin: 4px 4px 0 0;
54
- }
55
- </style>
@@ -1,106 +0,0 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.maxCpu }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-align-center">
9
- <atoms-tooltip-error
10
- :has-error="!!maxVcpusLocalAndApiErrorsTexts"
11
- selector="#vm-wizard-max-vcpus-field input"
12
- @remove="emits('remove-error-by-title', 'cpu.max_vcpus')"
13
- >
14
- <template #elem>
15
- <atoms-combobox
16
- id="vm-wizard-max-vcpus-field"
17
- v-model.number="selectedMaxCpuLocal"
18
- :items="cpuOptions"
19
- :disabled="props.disabled"
20
- test-id="max-cpu-combobox"
21
- @click.stop
22
- />
23
- </template>
24
- <template #content>{{ maxVcpusLocalAndApiErrorsTexts }}</template>
25
- </atoms-tooltip-error>
26
- </div>
27
- </template>
28
- </atoms-stack-block>
29
- </div>
30
- </template>
31
-
32
- <script setup lang="ts">
33
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
34
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
35
- import type { UI_I_Localization } from '~/lib/models/interfaces'
36
-
37
- const props = defineProps<{
38
- cpuOptions: UI_I_OptionItem[]
39
- selectedMaxCpu: number
40
- disabled: boolean
41
- errorValidationFields: UI_I_ErrorValidationField<string>[]
42
- }>()
43
- const emits = defineEmits<{
44
- (event: 'update:selected-max-cpu', value: number): void
45
- (event: 'invalid', value: boolean): void
46
- (event: 'remove-error-by-title', value: string): void
47
- }>()
48
-
49
- const localization = computed<UI_I_Localization>(() => useLocal())
50
-
51
- const selectedMaxCpuLocal = computed<number>({
52
- get() {
53
- return props.selectedMaxCpu
54
- },
55
- set(newValue) {
56
- emits('update:selected-max-cpu', newValue)
57
- },
58
- })
59
-
60
- const apiErrorLocal = computed<string>(() => {
61
- return (
62
- props.errorValidationFields?.find(
63
- (message) => message.field === 'cpu.max_vcpus'
64
- )?.error_message || ''
65
- )
66
- })
67
-
68
- const errorTextLocal = computed<string>(() => {
69
- const validValue = /^\d+(\.\d+)?$/.test(selectedMaxCpuLocal.value + '')
70
- if (!validValue) {
71
- return localization.value.common.inputContainsInvalidCharacters
72
- }
73
-
74
- const min = props.cpuOptions[0].value
75
- const max = props.cpuOptions[1].value
76
- if (selectedMaxCpuLocal.value < min || selectedMaxCpuLocal.value > max) {
77
- return localization.value.common.memoryMustBe
78
- .replace('{0}', min)
79
- .replace('{1}', max)
80
- }
81
-
82
- return ''
83
- })
84
- const maxVcpusLocalAndApiErrorsTexts = computed<string>(() => {
85
- const localError = errorTextLocal.value
86
- const apiError = apiErrorLocal.value
87
-
88
- let result = ''
89
- if (localError && !apiError) result = localError
90
- if (!localError && !apiError) result = apiError
91
- if (localError && apiError) result = localError + ', ' + apiError
92
- if (!localError && apiError) result = apiError
93
-
94
- return result
95
- })
96
- const isInvalid = computed<boolean>(() => !!errorTextLocal.value)
97
- watch(
98
- isInvalid,
99
- (newValue) => {
100
- emits('invalid', newValue)
101
- },
102
- { immediate: true }
103
- )
104
- </script>
105
-
106
- <style scoped></style>
@@ -1,55 +0,0 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.performanceCounters }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-space-between">
9
- <div class="flex-align-center">
10
- <input
11
- id="enable-performance-counters"
12
- v-model="performanceCountersLocal"
13
- data-id="enable-performance-counters"
14
- type="checkbox"
15
- disabled
16
- />
17
- <label
18
- for="enable-performance-counters"
19
- :class="['label-text-normal', { 'div-disabled': true }]"
20
- >{{ localization.common.enableVirtualizedCpuPerformanceCounters }}</label
21
- >
22
- </div>
23
- </div>
24
- </template>
25
- </atoms-stack-block>
26
- </div>
27
- </template>
28
-
29
- <script setup lang="ts">
30
- import type { UI_I_Localization } from '~/lib/models/interfaces'
31
-
32
- const localization = computed<UI_I_Localization>(() => useLocal())
33
-
34
- const props = defineProps<{
35
- performanceCounters: boolean
36
- }>()
37
- const emits = defineEmits<{
38
- (event: 'update:performance-counters', value: boolean): void
39
- }>()
40
-
41
- const performanceCountersLocal = computed<boolean>({
42
- get() {
43
- return props.performanceCounters
44
- },
45
- set(newValue) {
46
- emits('update:performance-counters', newValue)
47
- },
48
- })
49
- </script>
50
-
51
- <style scoped lang="scss">
52
- #enable-performance-counters {
53
- margin: 4px 4px 0 0;
54
- }
55
- </style>
@@ -1,106 +0,0 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.schedulingAffinity }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-space-between">
9
- <div class="flex-align-center">
10
- <input
11
- id="sa-edit-setting-input"
12
- v-model="schedulingAffinityLocal"
13
- data-id="sa-edit-setting-input"
14
- type="text"
15
- class="edit-setting-input"
16
- disabled
17
- />
18
- </div>
19
-
20
- <div id="sa-help-icon">
21
- <atoms-the-icon
22
- fill="#0072a3"
23
- width="24px"
24
- height="24px"
25
- name="info-circle"
26
- data-id="show-sa-help-icon"
27
- @click.stop="isShowSaHelp = !isShowSaHelp"
28
- />
29
- <Teleport to="body">
30
- <atoms-tooltip-signpost
31
- v-if="isShowSaHelp"
32
- elem-id="sa-help-icon"
33
- @hide="isShowSaHelp = false"
34
- >
35
- <h3 class="sa-help-title">
36
- {{ localization.mainNavigation.help }}
37
- </h3>
38
-
39
- <p class="sa-help-text">
40
- {{ localization.common.schedulingAffinityHelpDescription1 }}
41
- </p>
42
- <p class="sa-help-text">
43
- {{ localization.common.schedulingAffinityHelpDescription2 }}
44
- </p>
45
- <p class="sa-help-text">
46
- {{ localization.common.schedulingAffinityHelpDescription3 }}
47
- </p>
48
- <p class="sa-help-text">
49
- <strong>{{ localization.common.hyperthreadingStatus }}: </strong>
50
- {{ localization.common.inactive }}
51
- </p>
52
- <p class="sa-help-text">
53
- <strong>{{ localization.common.availableCpus }}: </strong>
54
- 8({{ localization.common.physicalCpus }})
55
- </p>
56
- </atoms-tooltip-signpost>
57
- </Teleport>
58
- </div>
59
- </div>
60
- </template>
61
- </atoms-stack-block>
62
- </div>
63
- </template>
64
-
65
- <script setup lang="ts">
66
- import type { UI_I_Localization } from '~/lib/models/interfaces'
67
-
68
- const localization = computed<UI_I_Localization>(() => useLocal())
69
-
70
- const props = defineProps<{
71
- schedulingAffinity: string
72
- }>()
73
- const emits = defineEmits<{
74
- (event: 'update:scheduling-affinity', value: string): void
75
- }>()
76
-
77
- const schedulingAffinityLocal = computed<string>({
78
- get() {
79
- return props.schedulingAffinity
80
- },
81
- set(newValue) {
82
- emits('update:scheduling-affinity', newValue)
83
- },
84
- })
85
-
86
- const isShowSaHelp = ref<boolean>(false)
87
- </script>
88
-
89
- <style scoped lang="scss">
90
- h3.sa-help-title {
91
- margin-top: 7px;
92
- font-size: 22px;
93
- color: #565656;
94
- }
95
- p.sa-help-text {
96
- width: 310px;
97
- margin-top: 24px;
98
- font-size: 14px;
99
- color: #565656;
100
- }
101
- p.sa-help-text strong {
102
- font-size: 14px;
103
- font-weight: bold;
104
- color: #565656;
105
- }
106
- </style>
@@ -1,21 +0,0 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
3
-
4
- export const cpuOptionsFunc = (
5
- localization: UI_I_Localization,
6
- min: number,
7
- max: number
8
- ): UI_I_OptionItem[] => {
9
- return [
10
- {
11
- text: `${localization.common.minimum}: ${min}`,
12
- value: min,
13
- testId: 'option-minimum-cpu',
14
- },
15
- {
16
- text: `${localization.common.maximum}: ${max}`,
17
- value: max,
18
- testId: 'option-minimum-cpu',
19
- },
20
- ]
21
- }