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
@@ -1,316 +1,327 @@
1
- <template>
2
- <div class="edit-vm">
3
- <atoms-modal
4
- test-id="edit-vm-wizard"
5
- :show="true"
6
- :title="localization.common.editSettings"
7
- :second-title="vmNameCash"
8
- :disabled-submit="loadingLocal"
9
- @submit="onUpdate"
10
- @hide="onHideModal"
11
- >
12
- <template #modalBody>
13
- <atoms-loader v-show="!vmSettingsLocal || loadingLocal" id="loader" />
14
- <div v-if="vmSettingsLocal" class="vm-context">
15
- <common-vm-actions-common-customize-hardware
16
- v-model:vm-name="vmName"
17
- v-model:guest-machine-type="vmSettingsLocal.guestMachineType"
18
- v-model:guest-os-family="vmSettingsLocal.guestOsFamily"
19
- v-model:guest-os-version="vmSettingsLocal.guestOsVersion"
20
- :project="props.project"
21
- :storage="vmSettingsLocal.storage"
22
- :hard-disks-for-boot-options="virtualHardwareHardDisksLocal"
23
- :cd-dvd-drives-for-boot-options="virtualHardwareCdDvdDrivesLocal"
24
- :networks-for-boot-options="virtualHardwareNetworksLocal"
25
- :cd-dvd-drives="vmSettingsLocal.cdDvdDrives"
26
- :hard-disks="vmSettingsLocal.hardDisks"
27
- :networks="vmSettingsLocal.networks"
28
- :customize-hardware-submit="0"
29
- :max-cpus="vmSettingsLocal.maxCpus"
30
- :max-memory="vmSettingsLocal.maxMemory"
31
- :cpu-models="vmSettingsLocal.cpuModels"
32
- :cpu="vmSettingsLocal.cpu"
33
- :memory="vmSettingsLocal.memory"
34
- :video-card="vmSettingsLocal.videoCard"
35
- :usb-controller="vmSettingsLocal.usbController"
36
- :pci-devices="vmSettingsLocal.pciDevices"
37
- :selected-nav-item="selectedNavItem"
38
- :hard-disks-for-edit="vmSettingsLocal.hardDisks"
39
- :options="vmSettingsLocal.options"
40
- :nodes="props.nodes"
41
- :files="props.files"
42
- :networks-table="props.networksTable"
43
- :error-validation-fields="props.errorValidationFields"
44
- :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
45
- :passthrough-devices="props.passthroughDevices"
46
- :state="props.state"
47
- :get-datastore-table-func="props.getDatastoreTableFunc"
48
- :datastore="props.datastore"
49
- is-edit
50
- @get-storage="emits('get-storage', $event)"
51
- @get-folders-or-files="emits('get-folders-or-files', $event)"
52
- @get-active-device-child="emits('get-active-device-child', $event)"
53
- @show-datastore-child="emits('show-datastore-child', $event)"
54
- @get-networks-table="emits('get-networks-table', $event)"
55
- @get-pci-devices="emits('get-pci-devices')"
56
- @change-boot-order="onChangeBootOrder"
57
- @send-data="onChangeCustomizeHardware"
58
- />
59
- </div>
60
- </template>
61
- </atoms-modal>
62
- </div>
63
- </template>
64
-
65
- <script setup lang="ts">
66
- import type { UI_T_Project } from '~/lib/models/types'
67
- import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
68
- import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
69
- import type {
70
- UI_I_EditVmPayload,
71
- UI_I_PciDevice,
72
- } from '~/lib/models/store/vm/interfaces'
73
- import type { UI_I_Localization } from '~/lib/models/interfaces'
74
- import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
75
- import type {
76
- UI_I_SendDataCpu,
77
- UI_I_SendDataMemory,
78
- UI_I_SendDataNewCdDvdDrive,
79
- UI_I_SendDataNewHardDisk,
80
- UI_I_SendDataNewNetwork,
81
- } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
82
- import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
83
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
84
- import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
85
- import type { UI_I_VmSettings } from '~/lib/models/store/vm/interfaces'
86
- import type {
87
- UI_I_DatastoreTableItem,
88
- UI_I_FolderOrFileTreePayload,
89
- } from '~/lib/models/store/storage/interfaces'
90
- import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
91
- import type { UI_T_EditVmFinishFunc } from '~/components/common/vm/actions/editSettings/lib/models/types'
92
-
93
- const props = defineProps<{
94
- project: UI_T_Project
95
- loading: boolean
96
- vmSettings: UI_I_VmSettings | null
97
- nodes: UI_I_FileTreeNode[]
98
- files: UI_I_FileTreeNode[]
99
- networksTable: UI_I_NetworkTableItem[]
100
- errorValidationFields: UI_I_ErrorValidationField<string>[]
101
- vmCpuHelpTextSecond: string
102
- vmId: string
103
- datastore: UI_I_DatastoreTableItem[]
104
- validateSendDataFunc: UI_T_EditVmFinishFunc
105
- getDatastoreTableFunc?: (payload: UI_I_TablePayload) => Promise<void>
106
- state?: string | number
107
- passthroughDevices?: UI_I_PciDevice[]
108
- }>()
109
-
110
- const emits = defineEmits<{
111
- (event: 'hide'): void
112
- (event: 'update-vm'): void
113
- (event: 'get-storage', value: UI_I_TablePayload): void
114
- (event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
115
- (event: 'get-active-device-child', value: UI_I_FileTreeNode): void
116
- (event: 'show-datastore-child', value: UI_I_FileTreeNode): void
117
- (event: 'get-networks-table', value: UI_I_TablePayload): void
118
- (event: 'get-pci-devices'): void
119
- }>()
120
-
121
- const localization = computed<UI_I_Localization>(() => useLocal())
122
-
123
- const selectedNavItem = ref<UI_T_SelectedNavItem>(0)
124
-
125
- const loadingLocal = ref<boolean>(false)
126
- watch(
127
- () => props.loading,
128
- (newValue: boolean) => {
129
- loadingLocal.value = newValue
130
- },
131
- { immediate: true }
132
- )
133
-
134
- const vmSettingsLocal = computed<UI_I_VmSettings | null>(() => props.vmSettings)
135
-
136
- const vmName = ref<string>(vmSettingsLocal.value?.name || '')
137
- const vmNameCash = ref<string>(vmSettingsLocal.value?.name || '')
138
- watch(vmSettingsLocal, (newValue) => {
139
- vmName.value = newValue?.name || ''
140
- vmNameCash.value = newValue?.name || ''
141
- })
142
-
143
- const virtualHardwareHardDisks = ref<UI_I_SendDataNewHardDisk[] | null>(null)
144
- const virtualHardwareCdDvdDrives = ref<UI_I_SendDataNewCdDvdDrive[] | null>(
145
- null
146
- )
147
- const virtualHardwareNetworks = ref<UI_I_SendDataNewNetwork[] | null>(null)
148
- const onChangeBootOrder = (data: UI_T_ChangeBootOrder): void => {
149
- virtualHardwareHardDisks.value = data[0]
150
- virtualHardwareCdDvdDrives.value = data[1]
151
- virtualHardwareNetworks.value = data[2]
152
- }
153
-
154
- const customizeHardware = ref<UI_I_SendDataCustomizeHardware | null>(null)
155
- const onChangeCustomizeHardware = (
156
- data: UI_I_SendDataCustomizeHardware
157
- ): void => {
158
- customizeHardware.value = data
159
- }
160
- const onHideModal = (): void => {
161
- emits('hide')
162
- }
163
- const onUpdate = (): void => {
164
- validateSendData()
165
- }
166
-
167
- const virtualHardwareHardDisksLocal = computed<
168
- UI_I_SendDataNewHardDisk[] | null
169
- >(() => customizeHardware.value?.virtualHardware?.hardDisks || null)
170
- const virtualHardwareNetworksLocal = computed<UI_I_SendDataNewNetwork[] | null>(
171
- () => customizeHardware.value?.virtualHardware?.networks || null
172
- )
173
- const virtualHardwareCdDvdDrivesLocal = computed<
174
- UI_I_SendDataNewCdDvdDrive[] | null
175
- >(() => customizeHardware.value?.virtualHardware?.cdDvdDrives || null)
176
-
177
- const virtualHardwareCpu = computed<UI_I_SendDataCpu | null>(
178
- () => customizeHardware.value?.virtualHardware?.cpu || null
179
- )
180
- const virtualHardwareMemory = computed<UI_I_SendDataMemory | null>(
181
- () => customizeHardware.value?.virtualHardware?.memory || null
182
- )
183
-
184
- const validateSendData = async (): Promise<void> => {
185
- loadingLocal.value = true
186
- props
187
- .validateSendDataFunc(
188
- vmSettingsLocal.value,
189
- virtualHardwareCpu.value,
190
- virtualHardwareMemory.value,
191
- customizeHardware.value,
192
- virtualHardwareNetworks.value,
193
- virtualHardwareHardDisks.value,
194
- virtualHardwareCdDvdDrives.value,
195
- vmName.value,
196
- localization.value,
197
- props.vmId
198
- )
199
- .then((data) => {
200
- loadingLocal.value = false
201
-
202
- !data && emits('update-vm')
203
- })
204
- }
205
- </script>
206
-
207
- <style scoped lang="scss">
208
- .vm-context {
209
- padding: 16px 15px 10px 10px;
210
- height: 100%;
211
- display: flex;
212
- flex-direction: column;
213
-
214
- .context-title-wrap {
215
- padding-bottom: 3px;
216
- border-bottom: 1px solid #a6a6a6;
217
-
218
- h4 {
219
- font-weight: 700;
220
- font-size: 13px;
221
- color: var(--vm-context-title);
222
- }
223
- p {
224
- font-weight: 400;
225
- font-size: 13px;
226
- color: var(--vm-context-sub-title);
227
- }
228
- }
229
-
230
- .finish-block {
231
- padding: 18px 24px 24px 24px;
232
-
233
- .add-hosts-ready-to-complete-mt-12 {
234
- margin-top: 12px;
235
-
236
- .add-hosts-ready-to-complete-bold {
237
- line-height: 18px;
238
- font-weight: 700;
239
- }
240
- }
241
- }
242
-
243
- .vm-hardware-version {
244
- align-self: flex-end;
245
- margin-top: auto;
246
- }
247
- }
248
-
249
- :deep(.modal-dialog) {
250
- width: 840px;
251
- }
252
- :deep(.modal .modal-dialog .modal-content .modal-footer) {
253
- flex: unset;
254
- height: unset;
255
- min-height: unset;
256
- }
257
- :deep(.wizard-modal-titlebar h3) {
258
- color: #000;
259
- font-size: 24px;
260
- font-weight: 200;
261
- line-height: 27px;
262
- margin: 0;
263
- padding: 0;
264
- }
265
- :deep(.clr-wizard-stepnav-item) {
266
- padding-left: 0;
267
- }
268
- :deep(.clr-wizard-stepnav
269
- .clr-wizard-stepnav-item
270
- button
271
- .clr-wizard-stepnav-link-title) {
272
- width: 189px;
273
- font-weight: 700;
274
- font-size: 13px;
275
- }
276
-
277
- #vm-wizard-notification {
278
- h3 {
279
- color: var(--global-font-color7);
280
- margin-top: 6px;
281
- }
282
- p {
283
- color: var(--global-font-color6);
284
- line-height: 16px;
285
- }
286
- }
287
-
288
- .power-on-by-default-wrap {
289
- display: flex;
290
- align-items: center;
291
-
292
- input {
293
- margin-right: 6px;
294
- }
295
- }
296
-
297
- .loading {
298
- :deep(.spinner) {
299
- width: 45px;
300
- height: 45px;
301
- min-width: 45px;
302
- min-height: 45px;
303
- }
304
- }
305
- </style>
306
-
307
- <style>
308
- :root {
309
- --vm-context-title: #333;
310
- --vm-context-sub-title: #000;
311
- }
312
- :root.dark-theme {
313
- --vm-context-title: #adbbc4;
314
- --vm-context-sub-title: #adbbc4;
315
- }
316
- </style>
1
+ <template>
2
+ <div class="edit-vm">
3
+ <atoms-modal
4
+ test-id="edit-vm-wizard"
5
+ :show="true"
6
+ :title="localization.common.editSettings"
7
+ :second-title="vmNameCash"
8
+ :disabled-submit="loadingLocal"
9
+ @submit="onUpdate"
10
+ @hide="onHideModal"
11
+ >
12
+ <template #modalBody>
13
+ <atoms-loader v-show="!vmSettingsLocal || loadingLocal" id="loader" />
14
+ <div v-if="vmSettingsLocal" class="vm-context">
15
+ <common-vm-actions-common-customize-hardware
16
+ v-model:vm-name="vmName"
17
+ v-model:guest-machine-type="vmSettingsLocal.guestMachineType"
18
+ v-model:guest-os-family="vmSettingsLocal.guestOsFamily"
19
+ v-model:guest-os-version="vmSettingsLocal.guestOsVersion"
20
+ :project="props.project"
21
+ :storage="vmSettingsLocal.storage"
22
+ :hard-disks-for-boot-options="virtualHardwareHardDisksLocal"
23
+ :cd-dvd-drives-for-boot-options="virtualHardwareCdDvdDrivesLocal"
24
+ :networks-for-boot-options="virtualHardwareNetworksLocal"
25
+ :cd-dvd-drives="vmSettingsLocal.cdDvdDrives"
26
+ :hard-disks="vmSettingsLocal.hardDisks"
27
+ :networks="vmSettingsLocal.networks"
28
+ :customize-hardware-submit="0"
29
+ :max-cpus="vmSettingsLocal.maxCpus"
30
+ :max-memory="vmSettingsLocal.maxMemory"
31
+ :cpu-models="vmSettingsLocal.cpuModels"
32
+ :cpu="vmSettingsLocal.cpu"
33
+ :memory="vmSettingsLocal.memory"
34
+ :video-card="vmSettingsLocal.videoCard"
35
+ :usb-controller="vmSettingsLocal.usbController"
36
+ :pci-devices="vmSettingsLocal.pciDevices"
37
+ :selected-nav-item="selectedNavItem"
38
+ :hard-disks-for-edit="vmSettingsLocal.hardDisks"
39
+ :options="vmSettingsLocal.options"
40
+ :nodes="props.nodes"
41
+ :files="props.files"
42
+ :networks-table="props.networksTable"
43
+ :error-validation-fields="props.errorValidationFields"
44
+ :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
45
+ :passthrough-devices="props.passthroughDevices"
46
+ :state="props.state"
47
+ :get-datastore-table-func="props.getDatastoreTableFunc"
48
+ :datastore="props.datastore"
49
+ is-edit
50
+ @get-storage="emits('get-storage', $event)"
51
+ @get-folders-or-files="emits('get-folders-or-files', $event)"
52
+ @get-active-device-child="emits('get-active-device-child', $event)"
53
+ @show-datastore-child="emits('show-datastore-child', $event)"
54
+ @get-networks-table="emits('get-networks-table', $event)"
55
+ @get-pci-devices="emits('get-pci-devices')"
56
+ @change-boot-order="onChangeBootOrder"
57
+ @send-data="onChangeCustomizeHardware"
58
+ />
59
+ </div>
60
+ </template>
61
+ </atoms-modal>
62
+ </div>
63
+ </template>
64
+
65
+ <script setup lang="ts">
66
+ import type { UI_T_Project } from '~/lib/models/types'
67
+ import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
68
+ import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
69
+ import type {
70
+ UI_I_EditVmPayload,
71
+ UI_I_PciDevice,
72
+ } from '~/lib/models/store/vm/interfaces'
73
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
74
+ import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
75
+ import type {
76
+ UI_I_SendDataCpu,
77
+ UI_I_SendDataMemory,
78
+ UI_I_SendDataNewCdDvdDrive,
79
+ UI_I_SendDataNewHardDisk,
80
+ UI_I_SendDataNewNetwork,
81
+ } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
82
+ import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
83
+ import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
84
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
85
+ import type { UI_I_VmSettings } from '~/lib/models/store/vm/interfaces'
86
+ import type {
87
+ UI_I_DatastoreTableItem,
88
+ UI_I_FolderOrFileTreePayload,
89
+ } from '~/lib/models/store/storage/interfaces'
90
+ import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
91
+ import type { UI_T_EditVmFinishFunc } from '~/components/common/vm/actions/editSettings/lib/models/types'
92
+ import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
93
+ import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
94
+
95
+ const props = defineProps<{
96
+ project: UI_T_Project
97
+ loading: boolean
98
+ vmSettings: UI_I_VmSettings | null
99
+ nodes: UI_I_FileTreeNode[]
100
+ files: UI_I_FileTreeNode[]
101
+ networksTable: UI_I_NetworkTableItem[]
102
+ errorValidationFields: UI_I_ErrorValidationField<string>[]
103
+ vmCpuHelpTextSecond: string
104
+ vmId: string
105
+ datastore: UI_I_DatastoreTableItem[]
106
+ validateSendDataFunc: UI_T_EditVmFinishFunc
107
+ getDatastoreTableFunc?: (payload: UI_I_TablePayload) => Promise<void>
108
+ state?: string | number
109
+ passthroughDevices?: UI_I_PciDevice[]
110
+ capabilities?: UI_I_Capabilities
111
+ }>()
112
+
113
+ const emits = defineEmits<{
114
+ (event: 'hide'): void
115
+ (event: 'update-vm'): void
116
+ (event: 'get-storage', value: UI_I_TablePayload): void
117
+ (event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
118
+ (event: 'get-active-device-child', value: UI_I_FileTreeNode): void
119
+ (event: 'show-datastore-child', value: UI_I_FileTreeNode): void
120
+ (event: 'get-networks-table', value: UI_I_TablePayload): void
121
+ (event: 'get-pci-devices'): void
122
+ }>()
123
+
124
+ const localization = computed<UI_I_Localization>(() => useLocal())
125
+
126
+ watch(
127
+ () => props.capabilities,
128
+ () => {
129
+ if (props.capabilities) mapCapabilities(props.capabilities)
130
+ },
131
+ { deep: true, immediate: true }
132
+ )
133
+
134
+ const selectedNavItem = ref<UI_T_SelectedNavItem>(0)
135
+
136
+ const loadingLocal = ref<boolean>(false)
137
+ watch(
138
+ () => props.loading,
139
+ (newValue: boolean) => {
140
+ loadingLocal.value = newValue
141
+ },
142
+ { immediate: true }
143
+ )
144
+
145
+ const vmSettingsLocal = computed<UI_I_VmSettings | null>(() => props.vmSettings)
146
+
147
+ const vmName = ref<string>(vmSettingsLocal.value?.name || '')
148
+ const vmNameCash = ref<string>(vmSettingsLocal.value?.name || '')
149
+ watch(vmSettingsLocal, (newValue) => {
150
+ vmName.value = newValue?.name || ''
151
+ vmNameCash.value = newValue?.name || ''
152
+ })
153
+
154
+ const virtualHardwareHardDisks = ref<UI_I_SendDataNewHardDisk[] | null>(null)
155
+ const virtualHardwareCdDvdDrives = ref<UI_I_SendDataNewCdDvdDrive[] | null>(
156
+ null
157
+ )
158
+ const virtualHardwareNetworks = ref<UI_I_SendDataNewNetwork[] | null>(null)
159
+ const onChangeBootOrder = (data: UI_T_ChangeBootOrder): void => {
160
+ virtualHardwareHardDisks.value = data[0]
161
+ virtualHardwareCdDvdDrives.value = data[1]
162
+ virtualHardwareNetworks.value = data[2]
163
+ }
164
+
165
+ const customizeHardware = ref<UI_I_SendDataCustomizeHardware | null>(null)
166
+ const onChangeCustomizeHardware = (
167
+ data: UI_I_SendDataCustomizeHardware
168
+ ): void => {
169
+ customizeHardware.value = data
170
+ }
171
+ const onHideModal = (): void => {
172
+ emits('hide')
173
+ }
174
+ const onUpdate = (): void => {
175
+ validateSendData()
176
+ }
177
+
178
+ const virtualHardwareHardDisksLocal = computed<
179
+ UI_I_SendDataNewHardDisk[] | null
180
+ >(() => customizeHardware.value?.virtualHardware?.hardDisks || null)
181
+ const virtualHardwareNetworksLocal = computed<UI_I_SendDataNewNetwork[] | null>(
182
+ () => customizeHardware.value?.virtualHardware?.networks || null
183
+ )
184
+ const virtualHardwareCdDvdDrivesLocal = computed<
185
+ UI_I_SendDataNewCdDvdDrive[] | null
186
+ >(() => customizeHardware.value?.virtualHardware?.cdDvdDrives || null)
187
+
188
+ const virtualHardwareCpu = computed<UI_I_SendDataCpu | null>(
189
+ () => customizeHardware.value?.virtualHardware?.cpu || null
190
+ )
191
+ const virtualHardwareMemory = computed<UI_I_SendDataMemory | null>(
192
+ () => customizeHardware.value?.virtualHardware?.memory || null
193
+ )
194
+
195
+ const validateSendData = async (): Promise<void> => {
196
+ loadingLocal.value = true
197
+ props
198
+ .validateSendDataFunc(
199
+ vmSettingsLocal.value,
200
+ virtualHardwareCpu.value,
201
+ virtualHardwareMemory.value,
202
+ customizeHardware.value,
203
+ virtualHardwareNetworks.value,
204
+ virtualHardwareHardDisks.value,
205
+ virtualHardwareCdDvdDrives.value,
206
+ vmName.value,
207
+ localization.value,
208
+ props.vmId
209
+ )
210
+ .then((data) => {
211
+ loadingLocal.value = false
212
+
213
+ !data && emits('update-vm')
214
+ })
215
+ }
216
+ </script>
217
+
218
+ <style scoped lang="scss">
219
+ .vm-context {
220
+ padding: 16px 15px 10px 10px;
221
+ height: 100%;
222
+ display: flex;
223
+ flex-direction: column;
224
+
225
+ .context-title-wrap {
226
+ padding-bottom: 3px;
227
+ border-bottom: 1px solid #a6a6a6;
228
+
229
+ h4 {
230
+ font-weight: 700;
231
+ font-size: 13px;
232
+ color: var(--vm-context-title);
233
+ }
234
+ p {
235
+ font-weight: 400;
236
+ font-size: 13px;
237
+ color: var(--vm-context-sub-title);
238
+ }
239
+ }
240
+
241
+ .finish-block {
242
+ padding: 18px 24px 24px 24px;
243
+
244
+ .add-hosts-ready-to-complete-mt-12 {
245
+ margin-top: 12px;
246
+
247
+ .add-hosts-ready-to-complete-bold {
248
+ line-height: 18px;
249
+ font-weight: 700;
250
+ }
251
+ }
252
+ }
253
+
254
+ .vm-hardware-version {
255
+ align-self: flex-end;
256
+ margin-top: auto;
257
+ }
258
+ }
259
+
260
+ :deep(.modal-dialog) {
261
+ width: 840px;
262
+ }
263
+ :deep(.modal .modal-dialog .modal-content .modal-footer) {
264
+ flex: unset;
265
+ height: unset;
266
+ min-height: unset;
267
+ }
268
+ :deep(.wizard-modal-titlebar h3) {
269
+ color: #000;
270
+ font-size: 24px;
271
+ font-weight: 200;
272
+ line-height: 27px;
273
+ margin: 0;
274
+ padding: 0;
275
+ }
276
+ :deep(.clr-wizard-stepnav-item) {
277
+ padding-left: 0;
278
+ }
279
+ :deep(.clr-wizard-stepnav
280
+ .clr-wizard-stepnav-item
281
+ button
282
+ .clr-wizard-stepnav-link-title) {
283
+ width: 189px;
284
+ font-weight: 700;
285
+ font-size: 13px;
286
+ }
287
+
288
+ #vm-wizard-notification {
289
+ h3 {
290
+ color: var(--global-font-color7);
291
+ margin-top: 6px;
292
+ }
293
+ p {
294
+ color: var(--global-font-color6);
295
+ line-height: 16px;
296
+ }
297
+ }
298
+
299
+ .power-on-by-default-wrap {
300
+ display: flex;
301
+ align-items: center;
302
+
303
+ input {
304
+ margin-right: 6px;
305
+ }
306
+ }
307
+
308
+ .loading {
309
+ :deep(.spinner) {
310
+ width: 45px;
311
+ height: 45px;
312
+ min-width: 45px;
313
+ min-height: 45px;
314
+ }
315
+ }
316
+ </style>
317
+
318
+ <style>
319
+ :root {
320
+ --vm-context-title: #333;
321
+ --vm-context-sub-title: #000;
322
+ }
323
+ :root.dark-theme {
324
+ --vm-context-title: #adbbc4;
325
+ --vm-context-sub-title: #adbbc4;
326
+ }
327
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.71",
4
+ "version": "1.4.73",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",