bfg-common 1.5.489 → 1.5.491
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.
- package/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/collapse/CollapseNav.vue +170 -170
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/context/lib/models/interfaces.ts +33 -33
- package/components/common/diagramMain/DiagramMain.vue +905 -905
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -106
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/layout/theHeader/helpMenu/About.vue +79 -79
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -79
- package/components/common/pages/backups/DetailView.vue +52 -52
- package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
- package/components/common/pages/backups/modals/Modals.vue +243 -243
- package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/TableView.vue +95 -95
- package/components/common/pages/backups/modals/createBackup/general/General.vue +141 -141
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +12 -12
- package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +27 -27
- package/components/common/pages/backups/modals/restore/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/restore/name/Name.vue +166 -166
- package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
- package/components/common/pages/backups/modals/restore/networks/Networks.vue +67 -67
- package/components/common/pages/backups/modals/restore/networks/table/Table.vue +214 -214
- package/components/common/pages/backups/modals/restore/types/lib/config/typeOptions.ts +25 -25
- package/components/common/pages/backups/tools/Tools.vue +75 -75
- package/components/common/pages/backups/tools/lib/config/tabs.ts +36 -36
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/spiceConsole/Drawer.vue +392 -392
- package/components/common/spiceConsole/SpiceConsole.vue +184 -184
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/add/Add.vue +877 -877
- package/components/common/vm/actions/add/New.vue +1 -1
- package/components/common/vm/actions/add/Old.vue +1 -1
- package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
- package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
- package/components/common/vm/actions/add/lib/config/steps.ts +347 -331
- package/components/common/vm/actions/clone/Clone.vue +1 -1
- package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +368 -368
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +143 -143
- package/components/common/vm/actions/common/select/computeResource/New.vue +184 -184
- package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +131 -131
- package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/name/Name.vue +200 -200
- package/components/common/vm/actions/common/select/name/New.vue +3 -4
- package/components/common/vm/actions/common/select/name/Old.vue +130 -131
- package/components/common/vm/actions/common/select/os/Old.vue +152 -152
- package/components/common/vm/actions/common/select/os/Os.vue +139 -139
- package/components/common/vm/actions/common/select/storage/new/New.vue +320 -320
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/vm/actions/register/Register.vue +267 -267
- package/components/common/vm/actions/register/lib/config/steps.ts +86 -86
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/composables/useAppVersion.ts +21 -21
- package/composables/useLocal.ts +6 -6
- package/composables/useLocalCommon.ts +39 -39
- package/package.json +1 -1
- package/plugins/date.ts +233 -233
- package/plugins/panelStates.ts +70 -70
- package/plugins/text.ts +59 -59
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +440 -440
- package/public/spice-console/run.js +210 -210
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/components/common/vmt/actions/add/Add.vue +0 -549
- package/components/common/vmt/actions/add/New.vue +0 -346
- package/components/common/vmt/actions/add/Old.vue +0 -305
- package/components/common/vmt/actions/add/lib/config/steps.ts +0 -107
- package/components/common/vmt/actions/add/lib/models/interfaces.ts +0 -23
@@ -1,346 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<ui-wizard
|
3
|
-
:steps="props.wizard.steps"
|
4
|
-
:selected-scheme="props.selectedScheme"
|
5
|
-
:title="props.title"
|
6
|
-
:texts="texts"
|
7
|
-
:is-loading="props.isLoading"
|
8
|
-
test-id="vmt-add"
|
9
|
-
show
|
10
|
-
@change-steps="emits('change-steps', $event)"
|
11
|
-
@hide="emits('hide')"
|
12
|
-
@submit="emits('finish')"
|
13
|
-
>
|
14
|
-
<template #content="{ selectedStep }">
|
15
|
-
<!-- <ui-wizard-block-->
|
16
|
-
<!-- v-if="selectedStep.id === props.dynamicSteps.scheduledTasks"-->
|
17
|
-
<!-- >-->
|
18
|
-
<!-- <template #content>-->
|
19
|
-
<!-- <common-pages-scheduled-tasks-modals-common-new-task-form-->
|
20
|
-
<!-- v-model="props.newTaskForm"-->
|
21
|
-
<!-- target="0"-->
|
22
|
-
<!-- class="new-task-form"-->
|
23
|
-
<!-- />-->
|
24
|
-
<!-- </template>-->
|
25
|
-
<!-- </ui-wizard-block>-->
|
26
|
-
<ui-wizard-block
|
27
|
-
v-if="selectedStep.id === props.dynamicSteps.selectName"
|
28
|
-
:sub-title-height="height0"
|
29
|
-
>
|
30
|
-
<template #subTitle>
|
31
|
-
<div ref="subTitleBlock0" class="subtitle-block">
|
32
|
-
<div
|
33
|
-
id="name-alert-wrapper"
|
34
|
-
:class="[{ 'mb-4': !isNameAlertWrapperEmpty }]"
|
35
|
-
></div>
|
36
|
-
<ui-wizard-subtitle :sub-title="localization.vmt.wizardSubTitle1" />
|
37
|
-
</div>
|
38
|
-
</template>
|
39
|
-
<template #content>
|
40
|
-
<common-vm-actions-common-select-name
|
41
|
-
:show="selectedStep.id === props.dynamicSteps.selectName"
|
42
|
-
:name-form-submit="props.nameFormSubmit"
|
43
|
-
:project="props.project"
|
44
|
-
:exist-name="vmtForm.name"
|
45
|
-
@submit="emits('change-name', $event)"
|
46
|
-
@check-name="emits('check-name', $event)"
|
47
|
-
@has-errors="isNameAlertWrapperEmpty = $event"
|
48
|
-
/>
|
49
|
-
</template>
|
50
|
-
</ui-wizard-block>
|
51
|
-
<ui-wizard-block
|
52
|
-
v-if="selectedStep.id === props.dynamicSteps.selectStorage"
|
53
|
-
:sub-title-height="height2"
|
54
|
-
>
|
55
|
-
<template #subTitle>
|
56
|
-
<div ref="subTitleBlock2">
|
57
|
-
<div class="subtitle-block">
|
58
|
-
<div
|
59
|
-
id="storage-alert-wrapper"
|
60
|
-
:class="[{ 'mb-4': !isStorageAlertWrapperEmpty }]"
|
61
|
-
></div>
|
62
|
-
<ui-wizard-subtitle
|
63
|
-
:sub-title="localization.vmt.wizardSubTitle2"
|
64
|
-
/>
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
</template>
|
68
|
-
<template #content>
|
69
|
-
<common-vm-actions-common-select-storage
|
70
|
-
:storage-submit="props.storageSubmit"
|
71
|
-
:datastore="props.datastore"
|
72
|
-
:is-datastore-loading="props.isDatastoreLoading"
|
73
|
-
:get-datastore-table-func="props.getDatastoreTableFunc"
|
74
|
-
@submit="emits('change-storage', $event)"
|
75
|
-
@has-errors="isStorageAlertWrapperEmpty = $event"
|
76
|
-
/>
|
77
|
-
</template>
|
78
|
-
</ui-wizard-block>
|
79
|
-
|
80
|
-
<ui-wizard-block
|
81
|
-
v-if="selectedStep.id === props.dynamicSteps.selectGuestOSMachineType"
|
82
|
-
:sub-title-height="height3"
|
83
|
-
>
|
84
|
-
<template #subTitle>
|
85
|
-
<div ref="subTitleBlock3">
|
86
|
-
<div class="subtitle-block">
|
87
|
-
<ui-wizard-subtitle
|
88
|
-
:sub-title="localization.vmt.wizardSubTitle3"
|
89
|
-
/>
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
</template>
|
93
|
-
<template #content>
|
94
|
-
<common-vm-actions-common-select-os
|
95
|
-
v-model:machine-type="vmtForm.guestMachineType"
|
96
|
-
v-model:guest-os-family="vmtForm.guestOsFamily"
|
97
|
-
v-model:guest-os-version="vmtForm.guestOsVersion"
|
98
|
-
:families-options="props.guestOsFamilies"
|
99
|
-
:versions-options="props.guestOsVersions"
|
100
|
-
:machine-types-options="props.machineTypes"
|
101
|
-
:error-validation-fields="props.errorValidationFields"
|
102
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
103
|
-
/>
|
104
|
-
</template>
|
105
|
-
</ui-wizard-block>
|
106
|
-
|
107
|
-
<ui-wizard-block
|
108
|
-
v-if="selectedStep.id === props.dynamicSteps.customizeHardware"
|
109
|
-
>
|
110
|
-
<template #content>
|
111
|
-
<div class="select-block-wrap customize-hardware flex flex-col">
|
112
|
-
<common-vm-actions-common-customize-hardware
|
113
|
-
:project="props.project"
|
114
|
-
:vm-name="vmtForm.name"
|
115
|
-
:guest-machine-type="vmtForm.guestMachineType"
|
116
|
-
:guest-os-family="vmtForm.guestOsFamily"
|
117
|
-
:guest-os-version="vmtForm.guestOsVersion"
|
118
|
-
:storage="vmtForm.storage"
|
119
|
-
:hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
|
120
|
-
:cd-dvd-drives-for-boot-options="
|
121
|
-
props.virtualHardwareCdDvdDrivesLocal
|
122
|
-
"
|
123
|
-
:networks-for-boot-options="props.virtualHardwareNetworksLocal"
|
124
|
-
:cd-dvd-drives="props.virtualHardwareCdDvdDrivesLocal"
|
125
|
-
:customize-hardware-submit="props.customizeHardwareSubmit"
|
126
|
-
:max-cpus="props.maxCpus"
|
127
|
-
:max-memory="props.maxMemory"
|
128
|
-
:cpu-models="props.cpuModels"
|
129
|
-
:selected-nav-item="props.selectedNavItem"
|
130
|
-
:nodes="props.nodes"
|
131
|
-
:files="props.files"
|
132
|
-
:networks-table="props.networksTable"
|
133
|
-
:error-validation-fields="props.errorValidationFields"
|
134
|
-
:get-datastore-table-func="props.getDatastoreTableFunc"
|
135
|
-
:datastore="props.datastore"
|
136
|
-
:is-datastore-loading="props.isDatastoreLoading"
|
137
|
-
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
138
|
-
:passthrough-devices="props.passthroughDevices"
|
139
|
-
:mediated-devices="props.mediatedDevices"
|
140
|
-
:compute-resource="vmtForm.computeResource"
|
141
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
142
|
-
@send-data="emits('change-customize-hardware', $event)"
|
143
|
-
@get-storage="emits('get-storage', $event)"
|
144
|
-
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
145
|
-
@get-active-device-child="
|
146
|
-
emits('get-active-device-child', $event)
|
147
|
-
"
|
148
|
-
@show-datastore-child="emits('show-datastore-child', $event)"
|
149
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
150
|
-
@get-networks-table="emits('get-networks-table', $event)"
|
151
|
-
@get-pci-devices="emits('get-pci-devices')"
|
152
|
-
/>
|
153
|
-
</div>
|
154
|
-
</template>
|
155
|
-
</ui-wizard-block>
|
156
|
-
<ui-wizard-block
|
157
|
-
v-if="selectedStep.id === props.dynamicSteps.readyComplete"
|
158
|
-
:sub-title-height="heightLast"
|
159
|
-
>
|
160
|
-
<template #subTitle>
|
161
|
-
<div ref="subTitleBlockLast">
|
162
|
-
<div class="subtitle-block">
|
163
|
-
<ui-wizard-subtitle
|
164
|
-
:sub-title="localization.vmt.wizardSubTitleLast"
|
165
|
-
/>
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
</template>
|
169
|
-
<template #content>
|
170
|
-
<div class="mt-3 mb-4">
|
171
|
-
<common-ready-to-complete
|
172
|
-
v-if="selectedStep.id === props.dynamicSteps.readyComplete"
|
173
|
-
:data="props.readyCompleteTableInfo"
|
174
|
-
/>
|
175
|
-
</div>
|
176
|
-
</template>
|
177
|
-
</ui-wizard-block>
|
178
|
-
</template>
|
179
|
-
</ui-wizard>
|
180
|
-
</template>
|
181
|
-
|
182
|
-
<script setup lang="ts">
|
183
|
-
import { useElementSize } from '@vueuse/core'
|
184
|
-
import type { UI_I_WizardStep, UI_I_WizardTexts } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
185
|
-
import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
186
|
-
import type {
|
187
|
-
UI_I_DatastoreTableItem,
|
188
|
-
UI_I_FolderOrFileTreePayload,
|
189
|
-
} from '~/lib/models/store/storage/interfaces'
|
190
|
-
import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
|
191
|
-
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
192
|
-
import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
|
193
|
-
import type {
|
194
|
-
UI_I_ArbitraryObject,
|
195
|
-
UI_I_Localization,
|
196
|
-
} from '~/lib/models/interfaces'
|
197
|
-
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
198
|
-
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
199
|
-
import type {
|
200
|
-
UI_I_SendDataNewCdDvdDrive,
|
201
|
-
UI_I_SendDataNewHardDisk,
|
202
|
-
UI_I_SendDataNewNetwork,
|
203
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
204
|
-
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
205
|
-
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
206
|
-
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
207
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
208
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
209
|
-
import type {
|
210
|
-
UI_I_MediatedDevice,
|
211
|
-
UI_I_PciDevice,
|
212
|
-
} from '~/lib/models/store/vm/interfaces'
|
213
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
214
|
-
import type {
|
215
|
-
UI_I_VmtForm,
|
216
|
-
UI_I_DynamicSteps,
|
217
|
-
} from '~/components/common/vmt/actions/add/lib/models/interfaces'
|
218
|
-
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
219
|
-
|
220
|
-
const vmtForm = defineModel<UI_I_VmtForm>('vmtForm')
|
221
|
-
const props = defineProps<{
|
222
|
-
alertMessages: string[]
|
223
|
-
title: string
|
224
|
-
wizard: Wizard
|
225
|
-
dynamicSteps: UI_I_DynamicSteps
|
226
|
-
newTaskForm: UI_I_ScheduleNewTasksForm
|
227
|
-
selectedScheme: number[]
|
228
|
-
nameFormSubmit: Function | null
|
229
|
-
storageSubmit: Function | null
|
230
|
-
customizeHardwareSubmit: Function | null
|
231
|
-
isLoading: boolean
|
232
|
-
selectedNavItem: UI_T_SelectedNavItem
|
233
|
-
virtualHardwareCdDvdDrivesLocal: UI_I_SendDataNewCdDvdDrive[] | null
|
234
|
-
virtualHardwareNetworksLocal: UI_I_SendDataNewNetwork[] | null
|
235
|
-
virtualHardwareHardDisksLocal: UI_I_SendDataNewHardDisk[] | null
|
236
|
-
maxMemory: number
|
237
|
-
maxCpus: number
|
238
|
-
machineTypes: UI_I_OptionItem[]
|
239
|
-
cpuModels: UI_I_OptionItem[]
|
240
|
-
guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
|
241
|
-
guestOsFamilies: UI_I_OptionItem[]
|
242
|
-
project: UI_T_Project
|
243
|
-
nodes: UI_I_FileTreeNode[]
|
244
|
-
files: UI_I_FileTreeNode[]
|
245
|
-
networksTable: UI_I_NetworkTableItem[]
|
246
|
-
datastore: UI_I_DatastoreTableItem[]
|
247
|
-
isDatastoreLoading: boolean
|
248
|
-
errorValidationFields: UI_I_ErrorValidationField[]
|
249
|
-
readyCompleteTableInfo: UI_I_TableInfoItem[]
|
250
|
-
vmCpuHelpTextSecond: string
|
251
|
-
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
252
|
-
passthroughDevices: UI_I_PciDevice[]
|
253
|
-
mediatedDevices: UI_I_MediatedDevice[]
|
254
|
-
}>()
|
255
|
-
|
256
|
-
const emits = defineEmits<{
|
257
|
-
(event: 'change-steps', value: UI_I_WizardStep[]): void
|
258
|
-
(
|
259
|
-
event: 'check-name',
|
260
|
-
value: [[string, UI_I_TreeNode | null], (error: any) => void]
|
261
|
-
): void
|
262
|
-
(event: 'get-storage', value: UI_I_TablePayload): void
|
263
|
-
(event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
|
264
|
-
(event: 'get-active-device-child', value: UI_I_FileTreeNode): void
|
265
|
-
(event: 'show-datastore-child', value: UI_I_FileTreeNode): void
|
266
|
-
(event: 'remove-error-by-title', value: string): void
|
267
|
-
(event: 'get-networks-table', value: UI_I_TablePayload): void
|
268
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
269
|
-
(
|
270
|
-
event: 'change-customize-hardware',
|
271
|
-
value: UI_I_SendDataCustomizeHardware
|
272
|
-
): void
|
273
|
-
(event: 'get-pci-devices'): void
|
274
|
-
(event: 'change-storage', value: UI_I_DatastoreTableItem | null): void
|
275
|
-
(event: 'change-name', value: [string, UI_I_TreeNode | null]): void
|
276
|
-
(event: 'hide'): void
|
277
|
-
(event: 'finish'): void
|
278
|
-
}>()
|
279
|
-
|
280
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
281
|
-
|
282
|
-
const texts = computed<UI_I_WizardTexts>(() => ({
|
283
|
-
cancel: localization.value.common.cancel,
|
284
|
-
back: localization.value.common.backCap,
|
285
|
-
processing: localization.value.common.processing,
|
286
|
-
next: localization.value.common.next,
|
287
|
-
finish: localization.value.common.create,
|
288
|
-
incompleteTitle: localization.value.common.incompleteProcess,
|
289
|
-
incompleteMessage: localization.value.common.incompleteProcessMessage,
|
290
|
-
incompleteCancel: localization.value.common.cancel,
|
291
|
-
incompleteLeave: localization.value.common.leave,
|
292
|
-
step: localization.value.common.step,
|
293
|
-
of: localization.value.common.of2,
|
294
|
-
}))
|
295
|
-
|
296
|
-
const subTitleBlock0 = ref<HTMLElement | null>(null)
|
297
|
-
const { height: height0 } = useElementSize(subTitleBlock0)
|
298
|
-
|
299
|
-
const subTitleBlock2 = ref<HTMLElement | null>(null)
|
300
|
-
const { height: height2 } = useElementSize(subTitleBlock2)
|
301
|
-
|
302
|
-
const subTitleBlock3 = ref<HTMLElement | null>(null)
|
303
|
-
const { height: height3 } = useElementSize(subTitleBlock3)
|
304
|
-
|
305
|
-
const subTitleBlockLast = ref<HTMLElement | null>(null)
|
306
|
-
const { height: heightLast } = useElementSize(subTitleBlockLast)
|
307
|
-
|
308
|
-
const isNameAlertWrapperEmpty = ref<boolean>(false)
|
309
|
-
const isStorageAlertWrapperEmpty = ref<boolean>(false)
|
310
|
-
</script>
|
311
|
-
|
312
|
-
<style scoped lang="scss">
|
313
|
-
.subtitle-block {
|
314
|
-
display: flex;
|
315
|
-
flex-direction: column;
|
316
|
-
border-bottom: 1px solid var(--wizard-line);
|
317
|
-
padding-bottom: 12px;
|
318
|
-
}
|
319
|
-
.select-block-wrap {
|
320
|
-
&.customize-hardware {
|
321
|
-
height: inherit;
|
322
|
-
max-height: 100%;
|
323
|
-
//padding-bottom: 16px;
|
324
|
-
|
325
|
-
:deep(.tabs-wrapper) {
|
326
|
-
overflow-y: auto;
|
327
|
-
|
328
|
-
.tab-item {
|
329
|
-
padding-top: 0;
|
330
|
-
}
|
331
|
-
}
|
332
|
-
:deep(.tabs-wrapper),
|
333
|
-
:deep(.errors-alert),
|
334
|
-
:deep(.action-wrap) {
|
335
|
-
margin-right: 32px;
|
336
|
-
}
|
337
|
-
:deep(.virtual-hardware-content-block),
|
338
|
-
:deep(.vm-options) {
|
339
|
-
padding-right: 18px;
|
340
|
-
}
|
341
|
-
}
|
342
|
-
:deep(.details-list) {
|
343
|
-
margin-top: 0;
|
344
|
-
}
|
345
|
-
}
|
346
|
-
</style>
|
@@ -1,305 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="add-template">
|
3
|
-
<atoms-wizard
|
4
|
-
:wizard="props.wizard"
|
5
|
-
:selected-scheme="props.selectedScheme"
|
6
|
-
:title="props.title"
|
7
|
-
:localization="localization"
|
8
|
-
show
|
9
|
-
@change-steps="emits('change-steps', $event)"
|
10
|
-
@hide="emits('hide')"
|
11
|
-
@submit="emits('finish')"
|
12
|
-
>
|
13
|
-
<template #modalBody="{ selectedStep }">
|
14
|
-
<atoms-loader
|
15
|
-
v-show="props.isLoading"
|
16
|
-
id="loader"
|
17
|
-
test-id="add-template-loader"
|
18
|
-
/>
|
19
|
-
<div class="vmt-context">
|
20
|
-
<common-pages-scheduled-tasks-modals-common-new-task-form
|
21
|
-
v-show="selectedStep.id === props.dynamicSteps.scheduledTasks"
|
22
|
-
v-model="props.newTaskForm"
|
23
|
-
target="0"
|
24
|
-
class="new-task-form"
|
25
|
-
/>
|
26
|
-
<common-vm-actions-common-select-name
|
27
|
-
v-show="selectedStep.id === props.dynamicSteps.selectName"
|
28
|
-
:show="selectedStep.id === props.dynamicSteps.selectName"
|
29
|
-
:name-form-submit="props.nameFormSubmit"
|
30
|
-
:project="props.project"
|
31
|
-
validate-empty-name
|
32
|
-
@submit="emits('change-name', ...$event)"
|
33
|
-
@check-name="emits('check-name', $event)"
|
34
|
-
/>
|
35
|
-
<common-vm-actions-common-select-storage
|
36
|
-
v-show="selectedStep.id === props.dynamicSteps.selectStorage"
|
37
|
-
:storage-submit="props.storageSubmit"
|
38
|
-
:datastore="props.datastore"
|
39
|
-
:is-datastore-loading="props.isDatastoreLoading"
|
40
|
-
:get-datastore-table-func="props.getDatastoreTableFunc"
|
41
|
-
@submit="emits('change-storage', $event)"
|
42
|
-
/>
|
43
|
-
<common-vm-actions-common-select-os
|
44
|
-
v-show="
|
45
|
-
selectedStep.id === props.dynamicSteps.selectGuestOSMachineType
|
46
|
-
"
|
47
|
-
v-model:machine-type="vmtForm.guestMachineType"
|
48
|
-
v-model:guest-os-family="vmtForm.guestOsFamily"
|
49
|
-
v-model:guest-os-version="vmtForm.guestOsVersion"
|
50
|
-
:families-options="props.guestOsFamilies"
|
51
|
-
:versions-options="props.guestOsVersions"
|
52
|
-
:machine-types-options="props.machineTypes"
|
53
|
-
:error-validation-fields="props.errorValidationFields"
|
54
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
55
|
-
/>
|
56
|
-
<common-vm-actions-common-customize-hardware
|
57
|
-
v-show="selectedStep.id === props.dynamicSteps.customizeHardware"
|
58
|
-
v-model:vm-name="vmtForm.name"
|
59
|
-
v-model:guest-machine-type="vmtForm.guestMachineType"
|
60
|
-
v-model:guest-os-family="vmtForm.guestOsFamily"
|
61
|
-
v-model:guest-os-version="vmtForm.guestOsVersion"
|
62
|
-
:storage="vmtForm.storage"
|
63
|
-
:hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
|
64
|
-
:cd-dvd-drives-for-boot-options="
|
65
|
-
props.virtualHardwareCdDvdDrivesLocal
|
66
|
-
"
|
67
|
-
:networks-for-boot-options="props.virtualHardwareNetworksLocal"
|
68
|
-
:customize-hardware-submit="props.customizeHardwareSubmit"
|
69
|
-
:max-cpus="props.maxCpus"
|
70
|
-
:max-memory="props.maxMemory"
|
71
|
-
:cpu-models="props.cpuModels"
|
72
|
-
:selected-nav-item="props.selectedNavItem"
|
73
|
-
:nodes="props.nodes"
|
74
|
-
:files="props.files"
|
75
|
-
:networks-table="props.networksTable"
|
76
|
-
:error-validation-fields="props.errorValidationFields"
|
77
|
-
:get-datastore-table-func="props.getDatastoreTableFunc"
|
78
|
-
:datastore="props.datastore"
|
79
|
-
:is-datastore-loading="props.isDatastoreLoading"
|
80
|
-
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
81
|
-
:passthrough-devices="props.passthroughDevices"
|
82
|
-
:mediated-devices="props.mediatedDevices"
|
83
|
-
:compute-resource="vmtForm.computeResource"
|
84
|
-
:project="props.project"
|
85
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
86
|
-
@send-data="emits('change-customize-hardware', $event)"
|
87
|
-
@get-storage="emits('get-storage', $event)"
|
88
|
-
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
89
|
-
@get-active-device-child="emits('get-active-device-child', $event)"
|
90
|
-
@show-datastore-child="emits('show-datastore-child', $event)"
|
91
|
-
@get-networks-table="emits('get-networks-table', $event)"
|
92
|
-
@get-pci-devices="emits('get-pci-devices')"
|
93
|
-
/>
|
94
|
-
<common-ready-to-complete
|
95
|
-
v-show="selectedStep.id === props.dynamicSteps.readyComplete"
|
96
|
-
:data="props.readyCompleteTableInfo"
|
97
|
-
/>
|
98
|
-
</div>
|
99
|
-
</template>
|
100
|
-
</atoms-wizard>
|
101
|
-
</div>
|
102
|
-
</template>
|
103
|
-
|
104
|
-
<script setup lang="ts">
|
105
|
-
import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
106
|
-
import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
107
|
-
import type {
|
108
|
-
UI_I_DatastoreTableItem,
|
109
|
-
UI_I_FolderOrFileTreePayload,
|
110
|
-
} from '~/lib/models/store/storage/interfaces'
|
111
|
-
import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
|
112
|
-
import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
|
113
|
-
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
114
|
-
import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
|
115
|
-
import type {
|
116
|
-
UI_I_ArbitraryObject,
|
117
|
-
UI_I_Localization,
|
118
|
-
} from '~/lib/models/interfaces'
|
119
|
-
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
120
|
-
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
121
|
-
import type {
|
122
|
-
UI_I_SendDataNewCdDvdDrive,
|
123
|
-
UI_I_SendDataNewHardDisk,
|
124
|
-
UI_I_SendDataNewNetwork,
|
125
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
126
|
-
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
127
|
-
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
128
|
-
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
129
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
130
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
131
|
-
import type {
|
132
|
-
UI_I_MediatedDevice,
|
133
|
-
UI_I_PciDevice,
|
134
|
-
} from '~/lib/models/store/vm/interfaces'
|
135
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
136
|
-
import type {
|
137
|
-
UI_I_VmtForm,
|
138
|
-
UI_I_DynamicSteps,
|
139
|
-
} from '~/components/common/vmt/actions/add/lib/models/interfaces'
|
140
|
-
|
141
|
-
const vmtForm = defineModel<UI_I_VmtForm>('vmtForm')
|
142
|
-
const props = defineProps<{
|
143
|
-
title: string
|
144
|
-
wizard: Wizard
|
145
|
-
dynamicSteps: UI_I_DynamicSteps
|
146
|
-
newTaskForm: UI_I_ScheduleNewTasksForm
|
147
|
-
selectedScheme: number[]
|
148
|
-
nameFormSubmit: Function | null
|
149
|
-
storageSubmit: Function | null
|
150
|
-
customizeHardwareSubmit: Function | null
|
151
|
-
isLoading: boolean
|
152
|
-
selectedNavItem: UI_T_SelectedNavItem
|
153
|
-
virtualHardwareCdDvdDrivesLocal: UI_I_SendDataNewCdDvdDrive[] | null
|
154
|
-
virtualHardwareNetworksLocal: UI_I_SendDataNewNetwork[] | null
|
155
|
-
virtualHardwareHardDisksLocal: UI_I_SendDataNewHardDisk[] | null
|
156
|
-
maxMemory: number
|
157
|
-
maxCpus: number
|
158
|
-
machineTypes: UI_I_OptionItem[]
|
159
|
-
cpuModels: UI_I_OptionItem[]
|
160
|
-
guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
|
161
|
-
guestOsFamilies: UI_I_OptionItem[]
|
162
|
-
project: UI_T_Project
|
163
|
-
nodes: UI_I_FileTreeNode[]
|
164
|
-
files: UI_I_FileTreeNode[]
|
165
|
-
networksTable: UI_I_NetworkTableItem[]
|
166
|
-
datastore: UI_I_DatastoreTableItem[]
|
167
|
-
isDatastoreLoading: boolean
|
168
|
-
errorValidationFields: UI_I_ErrorValidationField[]
|
169
|
-
readyCompleteTableInfo: UI_I_TableInfoItem[]
|
170
|
-
vmCpuHelpTextSecond: string
|
171
|
-
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
172
|
-
passthroughDevices: UI_I_PciDevice[]
|
173
|
-
mediatedDevices: UI_I_MediatedDevice[]
|
174
|
-
}>()
|
175
|
-
|
176
|
-
const emits = defineEmits<{
|
177
|
-
(event: 'change-steps', value: UI_I_WizardStep[]): void
|
178
|
-
(event: 'check-name', value: [string, (error: API_UI_I_Error) => void]): void
|
179
|
-
(event: 'get-storage', value: UI_I_TablePayload): void
|
180
|
-
(event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
|
181
|
-
(event: 'get-active-device-child', value: UI_I_FileTreeNode): void
|
182
|
-
(event: 'show-datastore-child', value: UI_I_FileTreeNode): void
|
183
|
-
(event: 'remove-error-by-title', value: string): void
|
184
|
-
(event: 'get-networks-table', value: UI_I_TablePayload): void
|
185
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
186
|
-
(
|
187
|
-
event: 'change-customize-hardware',
|
188
|
-
value: UI_I_SendDataCustomizeHardware
|
189
|
-
): void
|
190
|
-
(event: 'get-pci-devices'): void
|
191
|
-
(event: 'change-storage', value: UI_I_DatastoreTableItem | null): void
|
192
|
-
(event: 'change-name', value: string): void
|
193
|
-
(event: 'hide'): void
|
194
|
-
(event: 'finish'): void
|
195
|
-
}>()
|
196
|
-
|
197
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
198
|
-
</script>
|
199
|
-
|
200
|
-
<style>
|
201
|
-
:root {
|
202
|
-
--vmt-context-title: #333;
|
203
|
-
--vmt-context-sub-title: #000;
|
204
|
-
}
|
205
|
-
:root.dark-theme {
|
206
|
-
--vmt-context-title: #adbbc4;
|
207
|
-
--vmt-context-sub-title: #adbbc4;
|
208
|
-
}
|
209
|
-
</style>
|
210
|
-
<style scoped lang="scss">
|
211
|
-
:deep(.has-solid.close-icon.clr-icon) {
|
212
|
-
width: 20px;
|
213
|
-
top: 0;
|
214
|
-
}
|
215
|
-
.vmt-context {
|
216
|
-
margin-top: 24px;
|
217
|
-
//padding: 16px 15px 10px 10px;
|
218
|
-
//height: 100%;
|
219
|
-
//display: flex;
|
220
|
-
//flex-direction: column;
|
221
|
-
|
222
|
-
.context-title-wrap {
|
223
|
-
padding-bottom: 3px;
|
224
|
-
border-bottom: 1px solid #a6a6a6;
|
225
|
-
|
226
|
-
h4 {
|
227
|
-
font-weight: 700;
|
228
|
-
font-size: 13px;
|
229
|
-
color: var(--vmt-context-title);
|
230
|
-
}
|
231
|
-
p {
|
232
|
-
font-weight: 400;
|
233
|
-
font-size: 13px;
|
234
|
-
color: var(--vmt-context-sub-title);
|
235
|
-
}
|
236
|
-
}
|
237
|
-
|
238
|
-
.finish-block {
|
239
|
-
padding: 18px 24px 24px 24px;
|
240
|
-
|
241
|
-
.add-hosts-ready-to-complete-mt-12 {
|
242
|
-
margin-top: 12px;
|
243
|
-
|
244
|
-
.add-hosts-ready-to-complete-bold {
|
245
|
-
line-height: 18px;
|
246
|
-
font-weight: 700;
|
247
|
-
}
|
248
|
-
}
|
249
|
-
}
|
250
|
-
|
251
|
-
.vm-hardware-version {
|
252
|
-
align-self: flex-end;
|
253
|
-
margin-top: auto;
|
254
|
-
}
|
255
|
-
}
|
256
|
-
|
257
|
-
:deep(.modal .modal-dialog .modal-content .modal-footer) {
|
258
|
-
flex: unset;
|
259
|
-
height: unset;
|
260
|
-
min-height: unset;
|
261
|
-
}
|
262
|
-
:deep(.wizard-modal-titlebar h3) {
|
263
|
-
color: #000;
|
264
|
-
font-size: 24px;
|
265
|
-
font-weight: 200;
|
266
|
-
line-height: 27px;
|
267
|
-
margin: 0;
|
268
|
-
padding: 0;
|
269
|
-
}
|
270
|
-
:deep(.clr-wizard-stepnav-item) {
|
271
|
-
padding-left: 0;
|
272
|
-
}
|
273
|
-
:deep(.clr-wizard-stepnav
|
274
|
-
.clr-wizard-stepnav-item
|
275
|
-
button
|
276
|
-
.clr-wizard-stepnav-link-title) {
|
277
|
-
width: 189px;
|
278
|
-
font-weight: 700;
|
279
|
-
font-size: 13px;
|
280
|
-
}
|
281
|
-
|
282
|
-
#vm-wizard-notification {
|
283
|
-
h3 {
|
284
|
-
color: var(--global-font-color7);
|
285
|
-
margin-top: 6px;
|
286
|
-
}
|
287
|
-
p {
|
288
|
-
color: var(--global-font-color6);
|
289
|
-
line-height: 16px;
|
290
|
-
}
|
291
|
-
}
|
292
|
-
|
293
|
-
.power-on-by-default-wrap {
|
294
|
-
display: flex;
|
295
|
-
align-items: center;
|
296
|
-
|
297
|
-
input {
|
298
|
-
margin-right: 6px;
|
299
|
-
}
|
300
|
-
}
|
301
|
-
|
302
|
-
.new-task-form {
|
303
|
-
padding: 0 25px 0 5px;
|
304
|
-
}
|
305
|
-
</style>
|