bfg-common 1.5.540 → 1.5.541

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 (124) hide show
  1. package/CODE_STYLE.md +109 -109
  2. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  3. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  4. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  5. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  6. package/components/atoms/TheIcon3.vue +50 -50
  7. package/components/atoms/collapse/CollapseNav.vue +170 -170
  8. package/components/atoms/perPage/PerPage.vue +58 -58
  9. package/components/atoms/table/dataGrid/DataGrid.vue +1718 -1718
  10. package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
  11. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  12. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  13. package/components/common/backup/storage/actions/add/Add.vue +251 -251
  14. package/components/common/backup/storage/actions/add/lib/utils.ts +51 -51
  15. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  16. package/components/common/diagramMain/modals/lib/config/portModal.ts +251 -251
  17. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
  18. package/components/common/diagramMain/port/Port.vue +580 -580
  19. package/components/common/layout/theHeader/helpMenu/About.vue +79 -79
  20. package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -79
  21. package/components/common/pages/backups/DetailView.vue +52 -52
  22. package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
  23. package/components/common/pages/backups/modals/Modals.vue +243 -243
  24. package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +29 -29
  25. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +69 -69
  26. package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +38 -38
  27. package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts +69 -69
  28. package/components/common/pages/backups/modals/createBackup/lib/models/interfaces.ts +8 -8
  29. package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
  30. package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
  31. package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
  32. package/components/common/pages/backups/modals/restore/networks/Networks.vue +1 -0
  33. package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +1 -1
  34. package/components/common/pages/hardwareHealth/tableView/modal/SensorWarning.vue +1 -1
  35. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  36. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  37. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  38. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  39. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  40. package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
  41. package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
  42. package/components/common/select/radio/RadioGroup.vue +137 -137
  43. package/components/common/spiceConsole/Drawer.vue +420 -420
  44. package/components/common/spiceConsole/SpiceConsole.vue +184 -184
  45. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  46. package/components/common/tools/Actions.vue +207 -207
  47. package/components/common/tooltip/Help.vue +5 -0
  48. package/components/common/treeView/TreeView.vue +52 -52
  49. package/components/common/vm/actions/add/Add.vue +950 -949
  50. package/components/common/vm/actions/add/New.vue +690 -689
  51. package/components/common/vm/actions/add/Old.vue +402 -400
  52. package/components/common/vm/actions/add/lib/config/steps.ts +347 -347
  53. package/components/common/vm/actions/clone/Clone.vue +809 -808
  54. package/components/common/vm/actions/clone/new/New.vue +457 -454
  55. package/components/common/vm/actions/clone/old/Old.vue +378 -378
  56. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +368 -368
  57. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
  58. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  59. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +427 -427
  60. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
  61. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  62. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
  63. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  64. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
  65. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
  66. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
  67. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
  68. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  69. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  70. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  71. package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
  72. package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
  73. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
  74. package/components/common/vm/actions/common/select/os/Old.vue +152 -152
  75. package/components/common/vm/actions/common/select/os/Os.vue +139 -139
  76. package/components/common/vm/actions/common/select/storage/Old.vue +125 -132
  77. package/components/common/vm/actions/common/select/storage/Storage.vue +178 -167
  78. package/components/common/vm/actions/common/select/storage/new/New.vue +311 -330
  79. package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
  80. package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
  81. package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
  82. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  83. package/components/common/vm/actions/register/Register.vue +352 -352
  84. package/components/common/vm/actions/register/lib/config/steps.ts +86 -86
  85. package/components/common/wizards/common/{steps/computeResource/compatibility → compatibility}/Compatibility.vue +35 -31
  86. package/components/common/wizards/common/{steps/computeResource/compatibility → compatibility}/New.vue +99 -98
  87. package/components/common/wizards/common/{steps/computeResource/compatibility → compatibility}/Old.vue +53 -54
  88. package/components/common/wizards/common/{steps/computeResource/compatibility → compatibility}/lib/models/enums.ts +1 -1
  89. package/components/common/wizards/common/compatibility/lib/models/types.ts +1 -0
  90. package/components/common/wizards/common/steps/computeResource/ComputeResource.vue +86 -85
  91. package/components/common/wizards/common/steps/computeResource/New.vue +93 -92
  92. package/components/common/wizards/common/steps/computeResource/Old.vue +103 -102
  93. package/components/common/wizards/common/steps/name/Name.vue +178 -178
  94. package/components/common/wizards/common/steps/name/New.vue +221 -221
  95. package/components/common/wizards/common/steps/name/Old.vue +121 -121
  96. package/components/common/wizards/common/steps/name/lib/models/interfaces.ts +4 -4
  97. package/components/common/wizards/common/steps/name/location/Location.vue +85 -85
  98. package/components/common/wizards/common/steps/name/location/New.vue +40 -40
  99. package/components/common/wizards/datastore/add/Add.vue +228 -228
  100. package/components/common/wizards/datastore/add/lib/utils.ts +85 -85
  101. package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
  102. package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +205 -195
  103. package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
  104. package/components/common/wizards/vm/migrate/select/storage/Storage.vue +1 -1
  105. package/composables/useAppVersion.ts +21 -21
  106. package/composables/useLocal.ts +6 -6
  107. package/composables/useLocalCommon.ts +39 -39
  108. package/package.json +1 -1
  109. package/plugins/console.ts +21 -21
  110. package/plugins/date.ts +233 -233
  111. package/plugins/mouse.ts +21 -21
  112. package/plugins/panelStates.ts +70 -70
  113. package/plugins/text.ts +59 -59
  114. package/public/spice-console/application/clientgui.js +854 -854
  115. package/public/spice-console/application/packetfactory.js +211 -211
  116. package/public/spice-console/application/virtualmouse.js +147 -147
  117. package/public/spice-console/lib/images/bitmap.js +203 -203
  118. package/public/spice-console/network/spicechannel.js +440 -440
  119. package/public/spice-console/process/cursorprocess.js +121 -121
  120. package/public/spice-console/process/inputprocess.js +227 -227
  121. package/public/spice-console/process/mainprocess.js +210 -210
  122. package/public/spice-console/run.js +210 -210
  123. package/store/main/mutations.ts +7 -7
  124. package/store/main/state.ts +7 -7
@@ -1,454 +1,457 @@
1
- <template>
2
- <ui-wizard
3
- :steps="props.wizard.steps"
4
- :selected-scheme="props.selectedScheme"
5
- :is-loading="props.wizard.wizardLoader.status"
6
- :title="props.title"
7
- :texts="texts"
8
- test-id="clone-exist-vm"
9
- show
10
- @change-steps="onChangeSteps"
11
- @hide="onHideModal"
12
- @submit="onClone"
13
- >
14
- <template #content="{ selectedStep }">
15
- <ui-wizard-block
16
- v-if="selectedStep.id === props.dynamicSteps.scheduledTasks"
17
- :sub-title-height="height0"
18
- >
19
- <template #subTitle>
20
- <div ref="subTitleBlock0">
21
- <div class="subtitle-block flex flex-col">
22
- <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
23
- </div>
24
- </div>
25
- </template>
26
- <template #content>
27
- <common-pages-scheduled-tasks-modals-common-new-task-form
28
- v-model="schedulerTaskForm"
29
- :target="props.selectedVirtualMachine"
30
- class="new-task-form"
31
- />
32
- </template>
33
- </ui-wizard-block>
34
-
35
- <ui-wizard-block
36
- v-if="
37
- selectedStep.id === props.dynamicSteps.selectName ||
38
- selectedStep.id === props.dynamicSteps.selectNameFolder
39
- "
40
- :sub-title-height="height1"
41
- >
42
- <template #subTitle>
43
- <div ref="subTitleBlock1">
44
- <div class="subtitle-block flex flex-col">
45
- <div
46
- id="name-alert-wrapper"
47
- :class="[{ 'mb-4': !isNameAlertWrapperEmpty }]"
48
- ></div>
49
- <ui-wizard-subtitle
50
- :sub-title="localization.common.specifyUniqueNameForVm"
51
- />
52
- </div>
53
- </div>
54
- </template>
55
- <template #content>
56
- <common-wizards-common-steps-name
57
- v-model:name="vmForm.name"
58
- v-model:location="location"
59
- :show="
60
- selectedStep.id === props.dynamicSteps.selectName ||
61
- selectedStep.id === props.dynamicSteps.selectNameFolder
62
- "
63
- :name-form-submit="props.nameFormSubmit"
64
- :name-request-url="props.nameRequestUrl"
65
- :has-location="props.project === 'sphere'"
66
- :location-nodes="props.locationNodes"
67
- :allowed-location-kinds="props.allowedLocationKinds"
68
- :location-description="props.locationDescription"
69
- :validation-description="
70
- localization.common.enterValidLocationVirtualMachine
71
- "
72
- :name-exist-validation-description="
73
- localization.common.vmNameExistInSelectedLocation
74
- "
75
- :test-ids="props.nameTestIds"
76
- @submit="emits('change-name', $event)"
77
- @has-errors="isNameAlertWrapperEmpty = $event"
78
- />
79
- </template>
80
- </ui-wizard-block>
81
-
82
- <ui-wizard-block
83
- v-if="selectedStep.id === props.dynamicSteps.selectStorage"
84
- :sub-title-height="height2"
85
- >
86
- <template #subTitle>
87
- <div ref="subTitleBlock2">
88
- <div class="subtitle-block flex flex-col">
89
- <ui-wizard-subtitle
90
- :sub-title="
91
- localization.common.selectStorageConfigurationDiskFiles2
92
- "
93
- />
94
- </div>
95
- </div>
96
- </template>
97
- <template #content>
98
- <common-vm-actions-common-select-storage
99
- :storage-submit="props.storageSubmit"
100
- :datastore="props.datastore"
101
- :is-datastore-loading="props.isDatastoreLoading"
102
- :storage="vmForm.storage"
103
- :get-datastore-table-func="props.getDatastoreTableFunc"
104
- hide-alert
105
- @change-storage="emits('change-storage', $event)"
106
- />
107
- </template>
108
- </ui-wizard-block>
109
-
110
- <ui-wizard-block
111
- v-if="selectedStep.id === props.dynamicSteps.selectOptions"
112
- :sub-title-height="height3"
113
- >
114
- <template #subTitle>
115
- <div ref="subTitleBlock3">
116
- <div class="subtitle-block flex flex-col">
117
- <ui-wizard-subtitle
118
- :sub-title="localization.vmWizard.selectAdvancedOptionsCloning"
119
- />
120
- </div>
121
- </div>
122
- </template>
123
- <template #content>
124
- <common-vm-actions-common-select-options
125
- :is-create-template="props.isNewVmFromTemplate"
126
- @change="emits('change-select-options', $event)"
127
- />
128
- </template>
129
- </ui-wizard-block>
130
-
131
- <ui-wizard-block
132
- v-if="selectedStep.id === props.dynamicSteps.selectGuestOSMachineType"
133
- :sub-title-height="height4"
134
- >
135
- <template #subTitle>
136
- <div ref="subTitleBlock4">
137
- <div class="subtitle-block flex flex-col">
138
- <ui-wizard-subtitle
139
- :sub-title="
140
- localization.common
141
- .chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm
142
- "
143
- />
144
- </div>
145
- </div>
146
- </template>
147
- <template #content>
148
- <common-vm-actions-common-select-os
149
- v-model:machine-type="vmForm.guestMachineType"
150
- v-model:guest-os-family="vmForm.guestOsFamily"
151
- v-model:guest-os-version="vmForm.guestOsVersion"
152
- :families-options="props.guestOsFamilies"
153
- :versions-options="props.guestOsVersions"
154
- :machine-types-options="props.machineTypes"
155
- :error-validation-fields="props.errorValidationFields"
156
- @remove-error-by-title="emits('remove-error-by-title', $event)"
157
- />
158
- </template>
159
- </ui-wizard-block>
160
-
161
- <ui-wizard-block
162
- v-if="selectedStep.id === props.dynamicSteps.customizeHardware"
163
- >
164
- <template #content>
165
- <common-vm-actions-common-customize-hardware
166
- v-model:vm-name="vmName"
167
- v-model:guest-machine-type="props.vmSettings.guestMachineType"
168
- v-model:guest-os-family="props.vmSettings.guestOsFamily"
169
- v-model:guest-os-version="props.vmSettings.guestOsVersion"
170
- :storage="vmForm.storage"
171
- :hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
172
- :cd-dvd-drives-for-boot-options="
173
- props.virtualHardwareCdDvdDrivesLocal
174
- "
175
- :networks-for-boot-options="props.virtualHardwareNetworksLocal"
176
- :cd-dvd-drives="props.vmSettings.cdDvdDrives"
177
- :hard-disks="props.vmSettings.hardDisks"
178
- :networks="props.vmSettings.networks"
179
- :customize-hardware-submit="props.customizeHardwareSubmit"
180
- :max-cpus="props.vmSettings.maxCpus"
181
- :max-memory="props.vmSettings.maxMemory"
182
- :cpu-models="props.vmSettings.cpuModels"
183
- :cpu="props.vmSettings.cpu"
184
- :memory="props.vmSettings.memory"
185
- :video-card="props.vmSettings.videoCard"
186
- :usb-controller="props.vmSettings.usbController"
187
- :pci-devices="props.vmSettings.pciDevices"
188
- :selected-nav-item="props.selectedNavItem"
189
- :hard-disks-for-edit="props.vmSettings.hardDisks"
190
- :options="props.vmSettings.options"
191
- :nodes="props.nodes"
192
- :files="props.files"
193
- :networks-table="props.networksTable"
194
- :error-validation-fields="props.errorValidationFields"
195
- :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
196
- :passthrough-devices="props.passthroughDevices"
197
- :mediated-devices="props.mediatedDevices"
198
- :get-datastore-table-func="props.getDatastoreTableFunc"
199
- :datastore="props.datastore"
200
- :is-datastore-loading="props.isDatastoreLoading"
201
- :project="props.project"
202
- is-clone
203
- @change-boot-order="emits('change-boot-order', $event)"
204
- @send-data="emits('change-customize-hardware', $event)"
205
- @get-storage="emits('get-storage', $event)"
206
- @get-folders-or-files="emits('get-folders-or-files', $event)"
207
- @get-active-device-child="emits('get-active-device-child', $event)"
208
- @show-datastore-child="emits('show-datastore-child', $event)"
209
- @get-networks-table="emits('get-networks-table', $event)"
210
- @get-pci-devices="emits('get-pci-devices')"
211
- />
212
- </template>
213
- </ui-wizard-block>
214
-
215
- <ui-wizard-block
216
- v-if="selectedStep.id === props.dynamicSteps.selectComputeResource"
217
- :sub-title-height="height5"
218
- >
219
- <template #subTitle>
220
- <div ref="subTitleBlock5">
221
- <div class="subtitle-block">
222
- <ui-alert
223
- v-if="props.computeResourceAlert.length"
224
- :messages="props.computeResourceAlert"
225
- test-id="computed-resource-alert"
226
- type="error"
227
- size="md"
228
- class="subtitle-block__alert"
229
- />
230
- <ui-wizard-subtitle
231
- :sub-title="
232
- localization.vmWizard
233
- .selectDestinationComputeResourceForThisOperation
234
- "
235
- />
236
- </div>
237
- </div>
238
- </template>
239
- <template #content>
240
- <common-wizards-common-steps-compute-resource
241
- v-if="props.isSphere"
242
- v-show="selectedStep.id === props.dynamicSteps.selectComputeResource"
243
- v-model="computeResource"
244
- :node="computeResourceTreeLocal"
245
- :alert-messages="props.computeResourceAlert"
246
- :is-loading="props.isLoadingComputeTree"
247
- :compatibility-text="props.compatibilityText"
248
- />
249
- </template>
250
- </ui-wizard-block>
251
-
252
- <ui-wizard-block
253
- v-if="selectedStep.id === props.dynamicSteps.readyComplete"
254
- :sub-title-height="heightReadyComplete"
255
- >
256
- <template #subTitle>
257
- <div ref="subTitleBlockReadyComplete">
258
- <div class="subtitle-block">
259
- <ui-wizard-subtitle
260
- :sub-title="localization.vmWizard.lastCreateSubtitle"
261
- />
262
- </div>
263
- </div>
264
- </template>
265
- <template #content>
266
- <div class="select-block-wrap h-full flex flex-col mt-3">
267
- <common-ready-to-complete :data="props.readyCompleteTableInfo" />
268
- <div
269
- class="vm-hardware-version-wrap justify-end flex flex-1 mt-4 pb-4"
270
- >
271
- <span class="vm-hardware-version">{{
272
- props.compatibilityInfo
273
- }}</span>
274
- </div>
275
- </div>
276
- </template>
277
- </ui-wizard-block>
278
- </template>
279
- </ui-wizard>
280
- </template>
281
-
282
- <script setup lang="ts">
283
- import { useElementSize } from '@vueuse/core'
284
- import type {
285
- UI_I_WizardStep,
286
- UI_I_WizardTexts,
287
- } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
288
- import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
289
- import type {
290
- UI_I_ArbitraryObject,
291
- UI_I_Localization,
292
- } from '~/lib/models/interfaces'
293
- import type {
294
- UI_I_SendDataNewCdDvdDrive,
295
- UI_I_SendDataNewHardDisk,
296
- UI_I_SendDataNewNetwork,
297
- } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
298
- import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
299
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
300
- import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
301
- import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
302
- import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
303
- import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
304
- import type { UI_T_Project } from '~/lib/models/types'
305
- import type { UI_I_VmForm } from '~/components/common/vm/actions/common/lib/models/interfaces'
306
- import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
307
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
308
- import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
309
- import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
310
- import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
311
- import type {
312
- UI_I_MediatedDevice,
313
- UI_I_PciDevice,
314
- UI_I_VmSettings,
315
- } from '~/lib/models/store/vm/interfaces'
316
- import type {
317
- UI_I_DatastoreTableItem,
318
- UI_I_FolderOrFileTreePayload,
319
- } from '~/lib/models/store/storage/interfaces'
320
- import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
321
-
322
- const vmForm = defineModel<UI_I_VmForm>('vm-form')
323
- const schedulerTaskForm = defineModel<UI_I_ScheduleNewTasksForm>(
324
- 'scheduler-task-form'
325
- )
326
- const vmName = defineModel<string>('vm-name')
327
- const computeResource = defineModel<UI_I_TreeNode | undefined>(
328
- 'compute-resource'
329
- )
330
- const location = defineModel<UI_I_TreeNode | null>('location')
331
- const props = withDefaults(
332
- defineProps<{
333
- project: UI_T_Project
334
- vmSettings: UI_I_VmSettings | null
335
- nodes: UI_I_FileTreeNode[]
336
- files: UI_I_FileTreeNode[]
337
- networksTable: UI_I_NetworkTableItem[]
338
- datastore: UI_I_DatastoreTableItem[]
339
- isDatastoreLoading: boolean
340
- errorValidationFields: UI_I_ErrorValidationField[]
341
- readyCompleteTableInfo: UI_I_TableInfoItem[]
342
- vmCpuHelpTextSecond: string
343
- getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
344
- passthroughDevices: UI_I_PciDevice[]
345
- mediatedDevices: UI_I_MediatedDevice[]
346
- nameRequestUrl: string
347
- wizard: Wizard
348
- selectedScheme: number[]
349
- selectedVirtualMachine: string
350
- isNewVmFromTemplate: boolean | undefined
351
- computeResourceTree: UI_I_TreeNode[] | undefined // для сферы
352
- locationNodes: UI_I_TreeNode[] | undefined // для сферы
353
- title: string
354
- nameFormSubmit: null | Function
355
- storageSubmit: null | Function
356
- customizeHardwareSubmit: null | Function
357
- selectedNavItem: UI_T_SelectedNavItem
358
- allowedLocationKinds: number[]
359
- isSphere: boolean
360
- locationDescription: string
361
- nameTestIds: UI_I_NameTestIds
362
- virtualHardwareHardDisksLocal: UI_I_SendDataNewHardDisk[] | null
363
- virtualHardwareNetworksLocal: UI_I_SendDataNewNetwork[] | null
364
- virtualHardwareCdDvdDrivesLocal: UI_I_SendDataNewCdDvdDrive[] | null
365
- guestOsFamilies: UI_I_OptionItem[]
366
- guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
367
- machineTypes: UI_I_OptionItem[]
368
- dynamicSteps: UI_I_ArbitraryObject<number>
369
- isLoadingComputeTree?: boolean // для сферы
370
- computeResourceAlert?: string[] // для сферы
371
- compatibilityText?: [string, string] // для сферы
372
- }>(),
373
- {
374
- isLoadingComputeTree: false,
375
- computeResourceAlert: () => [],
376
- compatibilityText: () => []
377
- }
378
- )
379
-
380
- const emits = defineEmits<{
381
- (event: 'get-storage', value: UI_I_TablePayload): void
382
- (event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
383
- (event: 'get-active-device-child', value: UI_I_FileTreeNode): void
384
- (event: 'show-datastore-child', value: UI_I_FileTreeNode): void
385
- (event: 'remove-error-by-title', value: string): void
386
- (event: 'get-networks-table', value: UI_I_TablePayload): void
387
- (event: 'get-pci-devices'): void
388
- (event: 'change-steps', value: UI_I_WizardStep[]): void
389
- (event: 'change-name', value: [string, UI_I_TreeNode | null]): void
390
- (event: 'change-storage', value: UI_I_DatastoreTableItem | null): void
391
- (event: 'change-select-options', value: string[]): void
392
- (event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
393
- (
394
- event: 'change-customize-hardware',
395
- value: UI_I_SendDataCustomizeHardware
396
- ): void
397
- (event: 'hide'): void
398
- (event: 'finish'): void
399
- }>()
400
-
401
- const localization = computed<UI_I_Localization>(() => useLocal())
402
-
403
- const computeResourceTreeLocal = computed<UI_I_TreeNode | null>(() => {
404
- // для сферы
405
- return props.computeResourceTree?.[0] || null
406
- })
407
-
408
- const texts = computed<UI_I_WizardTexts>(() => ({
409
- cancel: localization.value.common.cancel,
410
- back: localization.value.common.backCap,
411
- processing: localization.value.common.processing,
412
- next: localization.value.common.next,
413
- finish: localization.value.common.clone,
414
- incompleteTitle: localization.value.common.incompleteProcess,
415
- incompleteMessage: localization.value.common.incompleteProcessMessage,
416
- incompleteCancel: localization.value.common.cancel,
417
- incompleteLeave: localization.value.common.leave,
418
- step: localization.value.common.step,
419
- of: localization.value.common.of2,
420
- }))
421
-
422
- const subTitleBlock0 = ref<HTMLElement | null>(null)
423
- const { height: height0 } = useElementSize(subTitleBlock0)
424
-
425
- const subTitleBlock1 = ref<HTMLElement | null>(null)
426
- const { height: height1 } = useElementSize(subTitleBlock1)
427
-
428
- const subTitleBlock2 = ref<HTMLElement | null>(null)
429
- const { height: height2 } = useElementSize(subTitleBlock2)
430
-
431
- const subTitleBlock3 = ref<HTMLElement | null>(null)
432
- const { height: height3 } = useElementSize(subTitleBlock3)
433
-
434
- const subTitleBlock4 = ref<HTMLElement | null>(null)
435
- const { height: height4 } = useElementSize(subTitleBlock4)
436
-
437
- const subTitleBlock5 = ref<HTMLElement | null>(null)
438
- const { height: height5 } = useElementSize(subTitleBlock5)
439
-
440
- const subTitleBlockReadyComplete = ref<HTMLElement | null>(null)
441
- const { height: heightReadyComplete } = useElementSize(
442
- subTitleBlockReadyComplete
443
- )
444
-
445
- const isNameAlertWrapperEmpty = ref<boolean>(false)
446
-
447
- const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> =>
448
- emits('change-steps', value)
449
-
450
- const onHideModal = (): void => emits('hide')
451
- const onClone = (): void => emits('finish')
452
- </script>
453
-
454
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <ui-wizard
3
+ :steps="props.wizard.steps"
4
+ :selected-scheme="props.selectedScheme"
5
+ :is-loading="props.wizard.wizardLoader.status"
6
+ :title="props.title"
7
+ :texts="texts"
8
+ test-id="clone-exist-vm"
9
+ show
10
+ @change-steps="onChangeSteps"
11
+ @hide="onHideModal"
12
+ @submit="onClone"
13
+ >
14
+ <template #content="{ selectedStep }">
15
+ <ui-wizard-block
16
+ v-if="selectedStep.id === props.dynamicSteps.scheduledTasks"
17
+ :sub-title-height="height0"
18
+ >
19
+ <template #subTitle>
20
+ <div ref="subTitleBlock0">
21
+ <div class="subtitle-block flex flex-col">
22
+ <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
23
+ </div>
24
+ </div>
25
+ </template>
26
+ <template #content>
27
+ <common-pages-scheduled-tasks-modals-common-new-task-form
28
+ v-model="schedulerTaskForm"
29
+ :target="props.selectedVirtualMachine"
30
+ class="new-task-form"
31
+ />
32
+ </template>
33
+ </ui-wizard-block>
34
+
35
+ <ui-wizard-block
36
+ v-if="
37
+ selectedStep.id === props.dynamicSteps.selectName ||
38
+ selectedStep.id === props.dynamicSteps.selectNameFolder
39
+ "
40
+ :sub-title-height="height1"
41
+ >
42
+ <template #subTitle>
43
+ <div ref="subTitleBlock1">
44
+ <div class="subtitle-block flex flex-col">
45
+ <div
46
+ id="name-alert-wrapper"
47
+ :class="[{ 'mb-4': !isNameAlertWrapperEmpty }]"
48
+ ></div>
49
+ <ui-wizard-subtitle
50
+ :sub-title="localization.common.specifyUniqueNameForVm"
51
+ />
52
+ </div>
53
+ </div>
54
+ </template>
55
+ <template #content>
56
+ <common-wizards-common-steps-name
57
+ v-model:name="vmForm.name"
58
+ v-model:location="location"
59
+ :show="
60
+ selectedStep.id === props.dynamicSteps.selectName ||
61
+ selectedStep.id === props.dynamicSteps.selectNameFolder
62
+ "
63
+ :name-form-submit="props.nameFormSubmit"
64
+ :name-request-url="props.nameRequestUrl"
65
+ :has-location="props.project === 'sphere'"
66
+ :location-nodes="props.locationNodes"
67
+ :allowed-location-kinds="props.allowedLocationKinds"
68
+ :location-description="props.locationDescription"
69
+ :validation-description="
70
+ localization.common.enterValidLocationVirtualMachine
71
+ "
72
+ :name-exist-validation-description="
73
+ localization.common.vmNameExistInSelectedLocation
74
+ "
75
+ :test-ids="props.nameTestIds"
76
+ @submit="emits('change-name', $event)"
77
+ @has-errors="isNameAlertWrapperEmpty = $event"
78
+ />
79
+ </template>
80
+ </ui-wizard-block>
81
+
82
+ <ui-wizard-block
83
+ v-if="selectedStep.id === props.dynamicSteps.selectStorage"
84
+ :sub-title-height="height2"
85
+ >
86
+ <template #subTitle>
87
+ <div ref="subTitleBlock2">
88
+ <div class="subtitle-block flex flex-col">
89
+ <ui-wizard-subtitle
90
+ :sub-title="
91
+ localization.common.selectStorageConfigurationDiskFiles2
92
+ "
93
+ />
94
+ </div>
95
+ </div>
96
+ </template>
97
+ <template #content>
98
+ <common-vm-actions-common-select-storage
99
+ :storage-submit="props.storageSubmit"
100
+ :datastore="props.datastore"
101
+ :is-datastore-loading="props.isDatastoreLoading"
102
+ :storage="vmForm.storage"
103
+ :get-datastore-table-func="props.getDatastoreTableFunc"
104
+ hide-alert
105
+ @change-storage="emits('change-storage', $event)"
106
+ />
107
+ </template>
108
+ </ui-wizard-block>
109
+
110
+ <ui-wizard-block
111
+ v-if="selectedStep.id === props.dynamicSteps.selectOptions"
112
+ :sub-title-height="height3"
113
+ >
114
+ <template #subTitle>
115
+ <div ref="subTitleBlock3">
116
+ <div class="subtitle-block flex flex-col">
117
+ <ui-wizard-subtitle
118
+ :sub-title="localization.vmWizard.selectAdvancedOptionsCloning"
119
+ />
120
+ </div>
121
+ </div>
122
+ </template>
123
+ <template #content>
124
+ <common-vm-actions-common-select-options
125
+ :is-create-template="props.isNewVmFromTemplate"
126
+ @change="emits('change-select-options', $event)"
127
+ />
128
+ </template>
129
+ </ui-wizard-block>
130
+
131
+ <ui-wizard-block
132
+ v-if="selectedStep.id === props.dynamicSteps.selectGuestOSMachineType"
133
+ :sub-title-height="height4"
134
+ >
135
+ <template #subTitle>
136
+ <div ref="subTitleBlock4">
137
+ <div class="subtitle-block flex flex-col">
138
+ <ui-wizard-subtitle
139
+ :sub-title="
140
+ localization.common
141
+ .chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm
142
+ "
143
+ />
144
+ </div>
145
+ </div>
146
+ </template>
147
+ <template #content>
148
+ <common-vm-actions-common-select-os
149
+ v-model:machine-type="vmForm.guestMachineType"
150
+ v-model:guest-os-family="vmForm.guestOsFamily"
151
+ v-model:guest-os-version="vmForm.guestOsVersion"
152
+ :families-options="props.guestOsFamilies"
153
+ :versions-options="props.guestOsVersions"
154
+ :machine-types-options="props.machineTypes"
155
+ :error-validation-fields="props.errorValidationFields"
156
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
157
+ />
158
+ </template>
159
+ </ui-wizard-block>
160
+
161
+ <ui-wizard-block
162
+ v-if="selectedStep.id === props.dynamicSteps.customizeHardware"
163
+ >
164
+ <template #content>
165
+ <common-vm-actions-common-customize-hardware
166
+ v-model:vm-name="vmName"
167
+ v-model:guest-machine-type="props.vmSettings.guestMachineType"
168
+ v-model:guest-os-family="props.vmSettings.guestOsFamily"
169
+ v-model:guest-os-version="props.vmSettings.guestOsVersion"
170
+ :storage="vmForm.storage"
171
+ :hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
172
+ :cd-dvd-drives-for-boot-options="
173
+ props.virtualHardwareCdDvdDrivesLocal
174
+ "
175
+ :networks-for-boot-options="props.virtualHardwareNetworksLocal"
176
+ :cd-dvd-drives="props.vmSettings.cdDvdDrives"
177
+ :hard-disks="props.vmSettings.hardDisks"
178
+ :networks="props.vmSettings.networks"
179
+ :customize-hardware-submit="props.customizeHardwareSubmit"
180
+ :max-cpus="props.vmSettings.maxCpus"
181
+ :max-memory="props.vmSettings.maxMemory"
182
+ :cpu-models="props.vmSettings.cpuModels"
183
+ :cpu="props.vmSettings.cpu"
184
+ :memory="props.vmSettings.memory"
185
+ :video-card="props.vmSettings.videoCard"
186
+ :usb-controller="props.vmSettings.usbController"
187
+ :pci-devices="props.vmSettings.pciDevices"
188
+ :selected-nav-item="props.selectedNavItem"
189
+ :hard-disks-for-edit="props.vmSettings.hardDisks"
190
+ :options="props.vmSettings.options"
191
+ :nodes="props.nodes"
192
+ :files="props.files"
193
+ :networks-table="props.networksTable"
194
+ :error-validation-fields="props.errorValidationFields"
195
+ :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
196
+ :passthrough-devices="props.passthroughDevices"
197
+ :mediated-devices="props.mediatedDevices"
198
+ :get-datastore-table-func="props.getDatastoreTableFunc"
199
+ :datastore="props.datastore"
200
+ :is-datastore-loading="props.isDatastoreLoading"
201
+ :project="props.project"
202
+ is-clone
203
+ @change-boot-order="emits('change-boot-order', $event)"
204
+ @send-data="emits('change-customize-hardware', $event)"
205
+ @get-storage="emits('get-storage', $event)"
206
+ @get-folders-or-files="emits('get-folders-or-files', $event)"
207
+ @get-active-device-child="emits('get-active-device-child', $event)"
208
+ @show-datastore-child="emits('show-datastore-child', $event)"
209
+ @get-networks-table="emits('get-networks-table', $event)"
210
+ @get-pci-devices="emits('get-pci-devices')"
211
+ />
212
+ </template>
213
+ </ui-wizard-block>
214
+
215
+ <ui-wizard-block
216
+ v-if="selectedStep.id === props.dynamicSteps.selectComputeResource"
217
+ :sub-title-height="height5"
218
+ >
219
+ <template #subTitle>
220
+ <div ref="subTitleBlock5">
221
+ <div class="subtitle-block">
222
+ <ui-alert
223
+ v-if="props.computeResourceAlert.length"
224
+ :messages="props.computeResourceAlert"
225
+ test-id="computed-resource-alert"
226
+ type="error"
227
+ size="md"
228
+ class="subtitle-block__alert"
229
+ />
230
+ <ui-wizard-subtitle
231
+ :sub-title="
232
+ localization.vmWizard
233
+ .selectDestinationComputeResourceForThisOperation
234
+ "
235
+ />
236
+ </div>
237
+ </div>
238
+ </template>
239
+ <template #content>
240
+ <common-wizards-common-steps-compute-resource
241
+ v-if="props.isSphere"
242
+ v-show="
243
+ selectedStep.id === props.dynamicSteps.selectComputeResource
244
+ "
245
+ v-model="computeResource"
246
+ :node="computeResourceTreeLocal"
247
+ :alert-messages="props.computeResourceAlert"
248
+ :is-loading="props.isLoadingComputeTree"
249
+ :compatibility-text="props.compatibilityText"
250
+ />
251
+ </template>
252
+ </ui-wizard-block>
253
+
254
+ <ui-wizard-block
255
+ v-if="selectedStep.id === props.dynamicSteps.readyComplete"
256
+ :sub-title-height="heightReadyComplete"
257
+ >
258
+ <template #subTitle>
259
+ <div ref="subTitleBlockReadyComplete">
260
+ <div class="subtitle-block">
261
+ <ui-wizard-subtitle
262
+ :sub-title="localization.vmWizard.lastCreateSubtitle"
263
+ />
264
+ </div>
265
+ </div>
266
+ </template>
267
+ <template #content>
268
+ <div class="select-block-wrap h-full flex flex-col mt-3">
269
+ <common-ready-to-complete :data="props.readyCompleteTableInfo" />
270
+ <div
271
+ class="vm-hardware-version-wrap justify-end flex flex-1 mt-4 pb-4"
272
+ >
273
+ <span class="vm-hardware-version">{{
274
+ props.compatibilityInfo
275
+ }}</span>
276
+ </div>
277
+ </div>
278
+ </template>
279
+ </ui-wizard-block>
280
+ </template>
281
+ </ui-wizard>
282
+ </template>
283
+
284
+ <script setup lang="ts">
285
+ import { useElementSize } from '@vueuse/core'
286
+ import type {
287
+ UI_I_WizardStep,
288
+ UI_I_WizardTexts,
289
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
290
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
291
+ import type {
292
+ UI_I_ArbitraryObject,
293
+ UI_I_Localization,
294
+ } from '~/lib/models/interfaces'
295
+ import type {
296
+ UI_I_SendDataNewCdDvdDrive,
297
+ UI_I_SendDataNewHardDisk,
298
+ UI_I_SendDataNewNetwork,
299
+ } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
300
+ import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
301
+ import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
302
+ import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
303
+ import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
304
+ import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
305
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
306
+ import type { UI_T_Project } from '~/lib/models/types'
307
+ import type { UI_I_VmForm } from '~/components/common/vm/actions/common/lib/models/interfaces'
308
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
309
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
310
+ import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
311
+ import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
312
+ import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
313
+ import type {
314
+ UI_I_MediatedDevice,
315
+ UI_I_PciDevice,
316
+ UI_I_VmSettings,
317
+ } from '~/lib/models/store/vm/interfaces'
318
+ import type {
319
+ UI_I_DatastoreTableItem,
320
+ UI_I_FolderOrFileTreePayload,
321
+ } from '~/lib/models/store/storage/interfaces'
322
+ import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
323
+ import type { UI_T_CompatibilityStatus } from '~/components/common/wizards/common/compatibility/lib/models/types'
324
+
325
+ const vmForm = defineModel<UI_I_VmForm>('vm-form')
326
+ const schedulerTaskForm = defineModel<UI_I_ScheduleNewTasksForm>(
327
+ 'scheduler-task-form'
328
+ )
329
+ const vmName = defineModel<string>('vm-name')
330
+ const computeResource = defineModel<UI_I_TreeNode | undefined>(
331
+ 'compute-resource'
332
+ )
333
+ const location = defineModel<UI_I_TreeNode | null>('location')
334
+ const props = withDefaults(
335
+ defineProps<{
336
+ project: UI_T_Project
337
+ vmSettings: UI_I_VmSettings | null
338
+ nodes: UI_I_FileTreeNode[]
339
+ files: UI_I_FileTreeNode[]
340
+ networksTable: UI_I_NetworkTableItem[]
341
+ datastore: UI_I_DatastoreTableItem[]
342
+ isDatastoreLoading: boolean
343
+ errorValidationFields: UI_I_ErrorValidationField[]
344
+ readyCompleteTableInfo: UI_I_TableInfoItem[]
345
+ vmCpuHelpTextSecond: string
346
+ getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
347
+ passthroughDevices: UI_I_PciDevice[]
348
+ mediatedDevices: UI_I_MediatedDevice[]
349
+ nameRequestUrl: string
350
+ wizard: Wizard
351
+ selectedScheme: number[]
352
+ selectedVirtualMachine: string
353
+ isNewVmFromTemplate: boolean | undefined
354
+ computeResourceTree: UI_I_TreeNode[] | undefined // для сферы
355
+ locationNodes: UI_I_TreeNode[] | undefined // для сферы
356
+ title: string
357
+ nameFormSubmit: null | Function
358
+ storageSubmit: null | Function
359
+ customizeHardwareSubmit: null | Function
360
+ selectedNavItem: UI_T_SelectedNavItem
361
+ allowedLocationKinds: number[]
362
+ isSphere: boolean
363
+ locationDescription: string
364
+ nameTestIds: UI_I_NameTestIds
365
+ virtualHardwareHardDisksLocal: UI_I_SendDataNewHardDisk[] | null
366
+ virtualHardwareNetworksLocal: UI_I_SendDataNewNetwork[] | null
367
+ virtualHardwareCdDvdDrivesLocal: UI_I_SendDataNewCdDvdDrive[] | null
368
+ guestOsFamilies: UI_I_OptionItem[]
369
+ guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
370
+ machineTypes: UI_I_OptionItem[]
371
+ dynamicSteps: UI_I_ArbitraryObject<number>
372
+ isLoadingComputeTree?: boolean // для сферы
373
+ computeResourceAlert?: string[] // для сферы
374
+ compatibilityText?: [UI_T_CompatibilityStatus, string] // для сферы
375
+ }>(),
376
+ {
377
+ isLoadingComputeTree: false,
378
+ computeResourceAlert: () => [],
379
+ compatibilityText: () => ['none', ''],
380
+ }
381
+ )
382
+
383
+ const emits = defineEmits<{
384
+ (event: 'get-storage', value: UI_I_TablePayload): void
385
+ (event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
386
+ (event: 'get-active-device-child', value: UI_I_FileTreeNode): void
387
+ (event: 'show-datastore-child', value: UI_I_FileTreeNode): void
388
+ (event: 'remove-error-by-title', value: string): void
389
+ (event: 'get-networks-table', value: UI_I_TablePayload): void
390
+ (event: 'get-pci-devices'): void
391
+ (event: 'change-steps', value: UI_I_WizardStep[]): void
392
+ (event: 'change-name', value: [string, UI_I_TreeNode | null]): void
393
+ (event: 'change-storage', value: UI_I_DatastoreTableItem | null): void
394
+ (event: 'change-select-options', value: string[]): void
395
+ (event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
396
+ (
397
+ event: 'change-customize-hardware',
398
+ value: UI_I_SendDataCustomizeHardware
399
+ ): void
400
+ (event: 'hide'): void
401
+ (event: 'finish'): void
402
+ }>()
403
+
404
+ const localization = computed<UI_I_Localization>(() => useLocal())
405
+
406
+ const computeResourceTreeLocal = computed<UI_I_TreeNode | null>(() => {
407
+ // для сферы
408
+ return props.computeResourceTree?.[0] || null
409
+ })
410
+
411
+ const texts = computed<UI_I_WizardTexts>(() => ({
412
+ cancel: localization.value.common.cancel,
413
+ back: localization.value.common.backCap,
414
+ processing: localization.value.common.processing,
415
+ next: localization.value.common.next,
416
+ finish: localization.value.common.clone,
417
+ incompleteTitle: localization.value.common.incompleteProcess,
418
+ incompleteMessage: localization.value.common.incompleteProcessMessage,
419
+ incompleteCancel: localization.value.common.cancel,
420
+ incompleteLeave: localization.value.common.leave,
421
+ step: localization.value.common.step,
422
+ of: localization.value.common.of2,
423
+ }))
424
+
425
+ const subTitleBlock0 = ref<HTMLElement | null>(null)
426
+ const { height: height0 } = useElementSize(subTitleBlock0)
427
+
428
+ const subTitleBlock1 = ref<HTMLElement | null>(null)
429
+ const { height: height1 } = useElementSize(subTitleBlock1)
430
+
431
+ const subTitleBlock2 = ref<HTMLElement | null>(null)
432
+ const { height: height2 } = useElementSize(subTitleBlock2)
433
+
434
+ const subTitleBlock3 = ref<HTMLElement | null>(null)
435
+ const { height: height3 } = useElementSize(subTitleBlock3)
436
+
437
+ const subTitleBlock4 = ref<HTMLElement | null>(null)
438
+ const { height: height4 } = useElementSize(subTitleBlock4)
439
+
440
+ const subTitleBlock5 = ref<HTMLElement | null>(null)
441
+ const { height: height5 } = useElementSize(subTitleBlock5)
442
+
443
+ const subTitleBlockReadyComplete = ref<HTMLElement | null>(null)
444
+ const { height: heightReadyComplete } = useElementSize(
445
+ subTitleBlockReadyComplete
446
+ )
447
+
448
+ const isNameAlertWrapperEmpty = ref<boolean>(false)
449
+
450
+ const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> =>
451
+ emits('change-steps', value)
452
+
453
+ const onHideModal = (): void => emits('hide')
454
+ const onClone = (): void => emits('finish')
455
+ </script>
456
+
457
+ <style scoped lang="scss"></style>