bfg-common 1.5.57 → 1.5.59

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 (182) 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/assets/localization/local_be.json +5 -2
  7. package/assets/localization/local_en.json +5 -2
  8. package/assets/localization/local_hy.json +5 -2
  9. package/assets/localization/local_kk.json +5 -2
  10. package/assets/localization/local_ru.json +5 -2
  11. package/assets/localization/local_zh.json +5 -2
  12. package/assets/scss/common/normalize.scss +339 -339
  13. package/components/atoms/TheIcon3.vue +50 -50
  14. package/components/atoms/collapse/CollapseNav.vue +165 -165
  15. package/components/atoms/combobox/Combobox.vue +2 -0
  16. package/components/atoms/dropdown/dropdown/Dropdown.vue +168 -168
  17. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  18. package/components/atoms/perPage/PerPage.vue +58 -58
  19. package/components/atoms/stack/StackBlock.vue +185 -185
  20. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
  21. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  22. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  23. package/components/atoms/tabs/VerticalTabs.vue +105 -105
  24. package/components/atoms/tooltip/Signpost.vue +227 -227
  25. package/components/common/accordion/Recursion.vue +222 -222
  26. package/components/common/browse/BrowseNew.vue +237 -237
  27. package/components/common/browse/BrowseOld.vue +217 -217
  28. package/components/common/browse/blocks/contents/Files.vue +37 -37
  29. package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
  30. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
  31. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  32. package/components/common/context/Context.vue +111 -111
  33. package/components/common/context/lib/models/interfaces.ts +31 -31
  34. package/components/common/context/recursion/Recursion.vue +87 -87
  35. package/components/common/context/recursion/RecursionNew.vue +238 -238
  36. package/components/common/context/recursion/RecursionOld.vue +228 -228
  37. package/components/common/details/DetailsItem.vue +109 -109
  38. package/components/common/diagramMain/DiagramMain.vue +897 -897
  39. package/components/common/diagramMain/Header.vue +214 -214
  40. package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
  41. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
  42. package/components/common/layout/theHeader/userMenu/modals/preferences/view/ViewOld.vue +112 -112
  43. package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +311 -311
  44. package/components/common/modals/unsavedChanges/UnsavedChanges.vue +56 -56
  45. package/components/common/monitor/overview/OverviewOld.vue +139 -139
  46. package/components/common/pages/home/headline/Headline.vue +45 -45
  47. package/components/common/pages/home/headline/HeadlineOld.vue +42 -42
  48. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  49. package/components/common/pages/home/widgets/Widgets.vue +49 -49
  50. package/components/common/pages/home/widgets/WidgetsNew.vue +86 -86
  51. package/components/common/pages/home/widgets/WidgetsOld.vue +34 -34
  52. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  53. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  54. package/components/common/pages/home/widgets/vms/Vms.vue +26 -26
  55. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  56. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  57. package/components/common/pages/packages/Packages.vue +208 -208
  58. package/components/common/pages/shortcuts/block/BlockNew.vue +96 -96
  59. package/components/common/pages/shortcuts/block/BlockOld.vue +68 -68
  60. package/components/common/portlets/customAttributes/Portlet.vue +667 -667
  61. package/components/common/portlets/tag/Portlet.vue +433 -433
  62. package/components/common/recursionTree/RecursionTree.vue +223 -223
  63. package/components/common/select/button/ButtonDropdown.vue +108 -108
  64. package/components/common/spiceConsole/Drawer.vue +370 -370
  65. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  66. package/components/common/split/horizontal/HorizontalOld.vue +337 -337
  67. package/components/common/split/vertical/Vertical.vue +160 -160
  68. package/components/common/tools/Actions.vue +202 -202
  69. package/components/common/vm/actions/add/Add.vue +727 -774
  70. package/components/common/vm/actions/add/New.vue +375 -0
  71. package/components/common/vm/actions/add/Old.vue +318 -0
  72. package/components/common/vm/actions/add/lib/config/steps.ts +247 -247
  73. package/components/common/vm/actions/clone/Clone.vue +798 -798
  74. package/components/common/vm/actions/clone/lib/config/steps.ts +291 -291
  75. package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +634 -634
  76. package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +116 -116
  77. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +275 -275
  78. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +274 -274
  79. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +177 -177
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +698 -698
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +410 -410
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +319 -319
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +99 -99
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +117 -117
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +232 -232
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +164 -164
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +168 -168
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +70 -70
  91. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
  92. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +338 -338
  93. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
  94. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  95. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
  96. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +368 -368
  97. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +232 -232
  98. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +250 -250
  99. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +56 -56
  100. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  101. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +286 -286
  102. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  103. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  104. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  105. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  106. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  107. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  108. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  109. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +205 -205
  110. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
  111. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
  112. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
  113. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +84 -84
  114. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
  115. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  116. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  117. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  118. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +41 -41
  119. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +81 -81
  120. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
  121. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  122. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  123. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +30 -30
  124. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +104 -104
  125. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +112 -112
  126. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  127. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  128. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  129. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  130. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  131. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  132. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  133. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  134. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  135. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  136. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  137. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  138. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  139. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  140. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  141. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  142. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  143. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  144. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +102 -102
  145. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +94 -94
  146. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  147. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  148. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  149. package/components/common/vm/actions/common/lib/utils/capabilities.ts +52 -52
  150. package/components/common/vm/actions/common/select/compatibility/Compatibility.vue +162 -162
  151. package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -74
  152. package/components/common/vm/actions/common/select/createType/New.vue +84 -0
  153. package/components/common/vm/actions/common/select/createType/Old.vue +70 -0
  154. package/components/common/vm/actions/common/select/createType/lib/config/items.ts +24 -4
  155. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -0
  156. package/components/common/vm/actions/common/select/name/Name.vue +167 -236
  157. package/components/common/vm/actions/common/select/name/New.vue +143 -0
  158. package/components/common/vm/actions/common/select/name/Old.vue +119 -0
  159. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  160. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  161. package/components/common/vm/actions/common/select/template/Template.vue +65 -65
  162. package/components/common/vm/actions/common/select/template/TemplateTreeView.vue +88 -88
  163. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  164. package/components/common/wizards/datastore/add/lib/config/steps.ts +138 -138
  165. package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +60 -60
  166. package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +92 -92
  167. package/components/common/wizards/network/add/steps/SelectConnectionType.vue +105 -105
  168. package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +220 -220
  169. package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
  170. package/components/common/wizards/vm/migrate/select/network/table/network/Network.vue +150 -150
  171. package/components/common/wizards/vm/migrate/select/network/table/network/lib/config/advancedTable.ts +91 -91
  172. package/components/common/wizards/vm/migrate/select/priority/Priority.vue +43 -43
  173. package/composables/productNameLocal.ts +30 -30
  174. package/composables/useAppVersion.ts +21 -21
  175. package/package.json +1 -1
  176. package/plugins/date.ts +233 -233
  177. package/plugins/directives.ts +24 -24
  178. package/public/spice-console/lib/images/bitmap.js +203 -203
  179. package/public/spice-console/network/spicechannel.js +383 -383
  180. package/store/main/mutations.ts +7 -7
  181. package/store/main/state.ts +7 -7
  182. package/store/tasks/mappers/recentTasks.ts +64 -64
@@ -0,0 +1,375 @@
1
+ <template>
2
+ <ui-wizard
3
+ show
4
+ :steps="props.wizard.steps"
5
+ :selected-scheme="props.selectedScheme"
6
+ :title="localization.common.newVirtualMachine2"
7
+ :texts="texts"
8
+ @change-steps="emits('change-steps', $event)"
9
+ @hide="emits('hide')"
10
+ @submit="emits('finish')"
11
+ >
12
+ <template #content="{ selectedStep }">
13
+ <!-- 41 = 25 (subtitle height) + 16 (margin-bottom)-->
14
+ <ui-wizard-block
15
+ v-if="selectedStep.id === dynamicSteps.creationType"
16
+ :sub-title-height="41"
17
+ >
18
+ <template #subTitle>
19
+ <div class="subtitle-block">
20
+ <ui-wizard-subtitle
21
+ :sub-title="localization.vmWizard.howWouldYouLikeCreateVm"
22
+ />
23
+ </div>
24
+ </template>
25
+ <template #content>
26
+ <common-vm-actions-common-select-create-type
27
+ v-model="selectedCreateType"
28
+ :import-from-v-m-warev-sphere="props.importFromVMWarevSphere"
29
+ />
30
+ </template>
31
+ </ui-wizard-block>
32
+ <ui-wizard-block v-if="selectedStep.id === dynamicSteps.selectTemplate">
33
+ <template #content>
34
+ <common-vm-actions-common-select-template
35
+ :template-submit="props.templateSubmit"
36
+ :templates-tree="props.templatesTree"
37
+ @submit="emits('change-template', $event)"
38
+ />
39
+ </template>
40
+ </ui-wizard-block>
41
+ <!-- 41 = 25 (subtitle height) + 16 (margin-bottom)-->
42
+ <ui-wizard-block
43
+ v-if="
44
+ selectedStep.id === dynamicSteps.selectName ||
45
+ selectedStep.id === dynamicSteps.selectNameFolder
46
+ "
47
+ :sub-title-height="41"
48
+ >
49
+ <template #subTitle>
50
+ <div class="subtitle-block">
51
+ <ui-wizard-subtitle
52
+ :sub-title="
53
+ localization.vmWizard.specifyUniqueNameAndTargetLocationForVm
54
+ "
55
+ />
56
+ </div>
57
+ </template>
58
+ <template #content>
59
+ <common-vm-actions-common-select-name
60
+ :show="
61
+ selectedStep.id === dynamicSteps.selectName ||
62
+ selectedStep.id === dynamicSteps.selectNameFolder
63
+ "
64
+ :name-form-submit="props.nameFormSubmit"
65
+ :project="props.project"
66
+ :data-center="props.dataCenter"
67
+ @submit="emits('change-name', $event)"
68
+ @check-name="emits('check-name', $event)"
69
+ />
70
+ </template>
71
+ </ui-wizard-block>
72
+ <ui-wizard-block
73
+ v-if="
74
+ props.isSphere &&
75
+ selectedStep.id === dynamicSteps.selectComputeResource
76
+ "
77
+ >
78
+ <template #content>
79
+ <common-vm-actions-common-select-compute-resource
80
+ v-model="vmForm.computeResource"
81
+ :compute-resource-submit="props.computeResourceSubmit"
82
+ :data-center="vmForm.dataCenter"
83
+ :compute-resource="props.computeResource"
84
+ :compute-resource-tree="props.computeResourceTree"
85
+ @submit="emits('change-compute-resource', $event)"
86
+ @select-compute-resource-tree="
87
+ emits('select-compute-resource-tree', $event)
88
+ "
89
+ @get-compute-resource-tree="
90
+ emits('get-compute-resource-tree', $event)
91
+ "
92
+ @show-compute-resource-tree="
93
+ emits('show-compute-resource-tree', $event)
94
+ "
95
+ @clear-compute-resource-tree="emits('clear-compute-resource-tree')"
96
+ />
97
+ </template>
98
+ </ui-wizard-block>
99
+ <ui-wizard-block v-if="selectedStep.id === dynamicSteps.selectStorage">
100
+ <template #content>
101
+ <common-vm-actions-common-select-storage
102
+ :storage-submit="props.storageSubmit"
103
+ :datastore="props.datastore"
104
+ :get-datastore-table-func="props.getDatastoreTableFunc"
105
+ @submit="emits('change-storage', $event)"
106
+ />
107
+ </template>
108
+ </ui-wizard-block>
109
+ <ui-wizard-block v-if="selectedStep.id === dynamicSteps.selectOptions">
110
+ <template #content>
111
+ <common-vm-actions-common-select-options
112
+ @change="emits('change-select-options', $event)"
113
+ />
114
+ </template>
115
+ </ui-wizard-block>
116
+ <ui-wizard-block v-if="selectedStep.id === dynamicSteps.compatibility">
117
+ <template #content>
118
+ <common-vm-actions-common-select-compatibility
119
+ :options="props.compatibility"
120
+ :error-validation-fields="props.errorValidationFields"
121
+ @change="emits('change-compatibility', $event)"
122
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
123
+ />
124
+ </template>
125
+ </ui-wizard-block>
126
+ <ui-wizard-block
127
+ v-if="
128
+ selectedStep.id === dynamicSteps.selectGuestOSMachineType ||
129
+ selectedStep.id === dynamicSteps.selectGuestOS
130
+ "
131
+ >
132
+ <template #content>
133
+ <common-vm-actions-common-select-os
134
+ v-model:machine-type="vmForm.guestMachineType"
135
+ v-model:guest-os-family="vmForm.guestOsFamily"
136
+ v-model:guest-os-version="vmForm.guestOsVersion"
137
+ :families-options="props.guestOsFamilies"
138
+ :versions-options="props.guestOsVersions"
139
+ :machine-types-options="props.machineTypes"
140
+ :error-validation-fields="props.errorValidationFields"
141
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
142
+ />
143
+ </template>
144
+ </ui-wizard-block>
145
+ <ui-wizard-block
146
+ v-if="selectedStep.id === dynamicSteps.customizeHardware"
147
+ >
148
+ <template #content>
149
+ <common-vm-actions-common-customize-hardware
150
+ :project="props.project"
151
+ :vm-name="vmForm.name"
152
+ :guest-machine-type="vmForm.guestMachineType"
153
+ :guest-os-family="vmForm.guestOsFamily"
154
+ :guest-os-version="vmForm.guestOsVersion"
155
+ :storage="vmForm.storage"
156
+ :hard-disks-for-boot-options="props.virtualHardwareHardDisksLocal"
157
+ :cd-dvd-drives-for-boot-options="
158
+ props.virtualHardwareCdDvdDrivesLocal
159
+ "
160
+ :networks-for-boot-options="props.virtualHardwareNetworksLocal"
161
+ :cd-dvd-drives="props.virtualHardwareCdDvdDrivesLocal"
162
+ :customize-hardware-submit="props.customizeHardwareSubmit"
163
+ :max-cpus="props.maxCpus"
164
+ :max-memory="props.maxMemory"
165
+ :cpu-models="props.cpuModels"
166
+ :selected-nav-item="props.selectedNavItem"
167
+ :nodes="props.nodes"
168
+ :files="props.files"
169
+ :networks-table="props.networksTable"
170
+ :error-validation-fields="props.errorValidationFields"
171
+ :get-datastore-table-func="props.getDatastoreTableFunc"
172
+ :datastore="props.datastore"
173
+ :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
174
+ :passthrough-devices="props.passthroughDevices"
175
+ :mediated-devices="props.mediatedDevices"
176
+ :compute-resource="vmForm.computeResource"
177
+ @change-boot-order="emits('change-boot-order', $event)"
178
+ @send-data="emits('change-customize-hardware', $event)"
179
+ @get-storage="emits('get-storage', $event)"
180
+ @get-folders-or-files="emits('get-folders-or-files', $event)"
181
+ @get-active-device-child="emits('get-active-device-child', $event)"
182
+ @show-datastore-child="emits('show-datastore-child', $event)"
183
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
184
+ @get-networks-table="emits('get-networks-table', $event)"
185
+ @get-pci-devices="emits('get-pci-devices')"
186
+ />
187
+ </template>
188
+ </ui-wizard-block>
189
+ <ui-wizard-block v-if="selectedStep.id === dynamicSteps.readyComplete">
190
+ <template #content>
191
+ <common-ready-to-complete
192
+ v-if="selectedStep.id === dynamicSteps.readyComplete"
193
+ :data="props.readyCompleteTableInfo"
194
+ />
195
+ </template>
196
+ </ui-wizard-block>
197
+
198
+ <span
199
+ v-if="selectedStep.id > dynamicSteps.compatibility"
200
+ class="vm-hardware-version"
201
+ >{{ props.compatibilityInfo }}</span
202
+ >
203
+ </template>
204
+
205
+ <!-- <template #modalFooterContent>-->
206
+ <!-- <div v-if="props.isShowPowerOn" class="power-on-by-default-wrap">-->
207
+ <!-- <input-->
208
+ <!-- id="power-on-by-default"-->
209
+ <!-- v-model="isPowerOnByDefault"-->
210
+ <!-- data-id="power-on-by-default"-->
211
+ <!-- type="checkbox"-->
212
+ <!-- />-->
213
+ <!-- <label for="power-on-by-default" class="label-text-normal">{{-->
214
+ <!-- localization.common.powerOnByDefault-->
215
+ <!-- }}</label>-->
216
+ <!-- </div>-->
217
+ <!-- </template>-->
218
+ </ui-wizard>
219
+ </template>
220
+
221
+ <script setup lang="ts">
222
+ import type {
223
+ UI_I_Localization,
224
+ UI_I_ArbitraryObject,
225
+ } from '~/lib/models/interfaces'
226
+ import type { UI_T_Project } from '~/lib/models/types'
227
+ import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
228
+ import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
229
+ import type {
230
+ UI_I_DatastoreTableItem,
231
+ UI_I_FolderOrFileTreePayload,
232
+ } from '~/lib/models/store/storage/interfaces'
233
+ import type {
234
+ API_UI_I_Error,
235
+ UI_I_ErrorValidationField,
236
+ } from '~/lib/models/store/interfaces'
237
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
238
+ import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
239
+ import type {
240
+ UI_T_AddVmFinishFunc,
241
+ UI_T_SelectedNavItem,
242
+ } from '~/components/common/vm/actions/common/lib/models/types'
243
+ import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
244
+ import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
245
+ import type {
246
+ UI_I_Capabilities,
247
+ UI_I_VmForm,
248
+ } from '~/components/common/vm/actions/common/lib/models/interfaces'
249
+ import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
250
+ import type {
251
+ UI_I_SendDataNewCdDvdDrive,
252
+ UI_I_SendDataNewHardDisk,
253
+ UI_I_SendDataNewNetwork,
254
+ } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
255
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
256
+ import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
257
+ import type {
258
+ UI_I_MediatedDevice,
259
+ UI_I_PciDevice,
260
+ } from '~/lib/models/store/vm/interfaces'
261
+ import { dynamicSteps } from '~/components/common/vm/actions/add/lib/config/steps'
262
+ import Wizard from '~/components/atoms/wizard/lib/utils/utils'
263
+ import type { UI_I_WizardTexts } from 'bfg-uikit/components/ui/wizard/lib/models/interfaces'
264
+
265
+ const vmForm = defineModel<UI_I_VmForm>('vmForm', {
266
+ required: true,
267
+ })
268
+ const selectedCreateType = defineModel<string>('selectedCreateType', {
269
+ required: true,
270
+ })
271
+ const isPowerOnByDefault = defineModel<boolean>('isPowerOnByDefault', {
272
+ required: true,
273
+ })
274
+
275
+ const props = defineProps<{
276
+ project: UI_T_Project
277
+ nodes: UI_I_FileTreeNode[]
278
+ files: UI_I_FileTreeNode[]
279
+ networksTable: UI_I_NetworkTableItem[]
280
+ datastore: UI_I_DatastoreTableItem[]
281
+ errorValidationFields: UI_I_ErrorValidationField[]
282
+ readyCompleteTableInfo: UI_I_TableInfoItem[]
283
+ vmCpuHelpTextSecond: string
284
+ importFromVMWarevSphere: string
285
+ getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
286
+ passthroughDevices: UI_I_PciDevice[]
287
+ mediatedDevices: UI_I_MediatedDevice[]
288
+ templatesTree: UI_I_TreeNode[]
289
+ wizard: Wizard
290
+ selectedScheme: number[]
291
+ templateSubmit: null | Function
292
+ nameFormSubmit: null | Function
293
+ storageSubmit: null | Function
294
+ customizeHardwareSubmit: null | Function
295
+ isSphere: boolean
296
+ compatibility: UI_I_OptionItem[]
297
+ guestOsFamilies: UI_I_OptionItem[]
298
+ guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
299
+ machineTypes: UI_I_OptionItem[]
300
+ virtualHardwareHardDisksLocal: UI_I_SendDataNewHardDisk[] | null
301
+ virtualHardwareCdDvdDrivesLocal: UI_I_SendDataNewCdDvdDrive[] | null
302
+ virtualHardwareNetworksLocal: UI_I_SendDataNewNetwork[] | null
303
+ maxCpus: number
304
+ maxMemory: number
305
+ cpuModels: UI_I_OptionItem[]
306
+ selectedNavItem: UI_T_SelectedNavItem
307
+ compatibilityInfo: string
308
+ isShowPowerOn: boolean
309
+ computeResourceSubmit: null | Function // для сферы
310
+ dataCenter?: UI_I_TreeNode // для сферы
311
+ computeResource?: UI_I_TreeNode // для сферы
312
+ computeResourceTree?: UI_I_TreeNode[] // для сферы
313
+ }>()
314
+
315
+ const emits = defineEmits<{
316
+ (event: 'check-name', value: [string, (error: API_UI_I_Error) => void]): void
317
+ (event: 'get-storage', value: UI_I_TablePayload): void
318
+ (event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
319
+ (event: 'get-active-device-child', value: UI_I_FileTreeNode): void
320
+ (event: 'show-datastore-child', value: UI_I_FileTreeNode): void
321
+ (event: 'remove-error-by-title', value: string): void
322
+ (event: 'get-networks-table', value: UI_I_TablePayload): void
323
+ (event: 'get-pci-devices'): void
324
+ (event: 'change-steps', value: UI_I_WizardStep[]): void
325
+ (event: 'finish'): void
326
+ (event: 'change-template', value: string): void
327
+ (event: 'change-name', value: [string, UI_I_TreeNode | null]): void
328
+ (
329
+ event: 'check-name',
330
+ value: [[string, UI_I_TreeNode | null], (error: any) => void]
331
+ ): void
332
+ (event: 'change-storage', value: UI_I_DatastoreTableItem | null): void
333
+ (event: 'change-select-options', value: string[]): void
334
+ (event: 'change-compatibility', value: UI_I_OptionItem): void
335
+ (event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
336
+ (
337
+ event: 'change-customize-hardware',
338
+ value: UI_I_SendDataCustomizeHardware
339
+ ): void
340
+ (event: 'hide'): void
341
+ (event: 'clear-compute-resource-tree'): void // для сферы
342
+ (event: 'change-compute-resource', value: UI_I_TreeNode): void // для сферы
343
+ (event: 'select-compute-resource-tree', value: UI_I_TreeNode): void // для сферы
344
+ (
345
+ event: 'get-compute-resource-tree',
346
+ value: { id: string | number; cb: () => void }
347
+ ): void // для сферы
348
+ (event: 'show-compute-resource-tree', value: UI_I_TreeNode): void // для сферы
349
+ }>()
350
+
351
+ const localization = computed<UI_I_Localization>(() => useLocal())
352
+
353
+ const texts = computed<UI_I_WizardTexts>(() => ({
354
+ cancel: localization.value.common.cancel,
355
+ back: localization.value.common.backCap,
356
+ processing: localization.value.common.processing,
357
+ next: localization.value.common.next,
358
+ finish: localization.value.common.create,
359
+ incompleteTitle: localization.value.common.incompleteProcess,
360
+ incompleteMessage: localization.value.common.incompleteProcessMessage,
361
+ incompleteCancel: localization.value.common.cancel,
362
+ incompleteLeave: localization.value.common.leave,
363
+ }))
364
+ </script>
365
+
366
+ <style scoped lang="scss">
367
+ .subtitle-block {
368
+ display: flex;
369
+ flex-direction: column;
370
+ row-gap: 16px;
371
+ border-bottom: 1px solid var(--wizard-line);
372
+ padding-bottom: 12px;
373
+ margin-bottom: 16px;
374
+ }
375
+ </style>