bfg-common 1.4.101 → 1.4.103

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 (44) hide show
  1. package/assets/img/icons/icons-sprite-dark-2.svg +343 -308
  2. package/assets/img/icons/icons-sprite-dark-5.svg +491 -83
  3. package/assets/img/icons/icons-sprite-dark-6.svg +3 -1
  4. package/assets/img/icons/icons-sprite-light-2.svg +343 -308
  5. package/assets/img/icons/icons-sprite-light-5.svg +491 -83
  6. package/assets/img/icons/icons-sprite-light-6.svg +3 -1
  7. package/assets/localization/local_be.json +2584 -2584
  8. package/assets/localization/local_en.json +2588 -2588
  9. package/assets/localization/local_hy.json +2588 -2588
  10. package/assets/localization/local_zh.json +2586 -2586
  11. package/assets/scss/common/icons/icons-2.scss +18 -0
  12. package/assets/scss/common/icons/icons-5.scss +367 -11
  13. package/assets/scss/common/icons/icons-6.scss +4 -4
  14. package/assets/scss/common/icons/icons.scss +0 -4
  15. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  16. package/components/atoms/stack/StackBlock.vue +184 -184
  17. package/components/common/browse/blocks/Title.vue +91 -91
  18. package/components/common/browse/blocks/info/Date.vue +21 -21
  19. package/components/common/context/recursion/Recursion.vue +86 -86
  20. package/components/common/context/recursion/RecursionNew.vue +198 -198
  21. package/components/common/context/recursion/RecursionOld.vue +212 -212
  22. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +156 -156
  23. package/components/common/split/horizontal/HorizontalNew.vue +321 -321
  24. package/components/common/vm/actions/add/Add.vue +609 -609
  25. package/components/common/vm/actions/clone/Clone.vue +522 -522
  26. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  27. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  28. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  29. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  30. package/components/common/vm/actions/editSettings/EditSettings.vue +327 -327
  31. package/composables/productNameLocal.ts +30 -30
  32. package/package.json +1 -1
  33. package/plugins/recursion.ts +311 -311
  34. package/public/spice-console/lib/images/bitmap.js +203 -203
  35. package/store/tasks/mappers/recentTasks.ts +45 -45
  36. package/assets/img/icons/icons-sprite-dark-7.svg +0 -8
  37. package/assets/img/icons/icons-sprite-dark-8.svg +0 -190
  38. package/assets/img/icons/icons-sprite-dark-9.svg +0 -71
  39. package/assets/img/icons/icons-sprite-light-7.svg +0 -8
  40. package/assets/img/icons/icons-sprite-light-8.svg +0 -190
  41. package/assets/img/icons/icons-sprite-light-9.svg +0 -71
  42. package/assets/scss/common/icons/icons-7.scss +0 -29
  43. package/assets/scss/common/icons/icons-8.scss +0 -191
  44. package/assets/scss/common/icons/icons-9.scss +0 -95
@@ -1,327 +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
- 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>
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>