bfg-common 1.5.431 → 1.5.433
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/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/atoms/wizard/Wizard.vue +2 -2
- package/components/atoms/wizard/lib/models/enums.ts +8 -0
- package/components/atoms/wizard/lib/models/interfaces.ts +59 -0
- package/components/atoms/wizard/lib/utils/utils.ts +954 -0
- package/components/atoms/wizard/step/Step.vue +1 -1
- package/components/common/backup/storage/actions/add/Add.vue +5 -5
- package/components/common/backup/storage/actions/add/Old.vue +1 -1
- package/components/common/backup/storage/actions/add/lib/config/steps.ts +2 -2
- package/components/common/backup/storage/actions/add/lib/validations.ts +4 -4
- package/components/common/backup/storage/actions/add/steps/name/Name.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/name/New.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/name/Old.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
- package/components/common/browse/BrowseNew.vue +1 -0
- package/components/common/browse/blocks/Container.vue +235 -235
- 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/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +398 -398
- package/components/common/diagramMain/modals/lib/config/portModal.ts +251 -251
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +5 -5
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +5 -5
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
- package/components/common/pages/backups/Backups.vue +102 -102
- 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 +1 -1
- package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +2 -5
- package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +26 -26
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +66 -66
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +35 -35
- package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +59 -59
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/TableView.vue +95 -95
- package/components/common/pages/backups/modals/createBackup/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/createBackup/general/General.vue +135 -135
- package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +117 -117
- 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/Restore.vue +417 -417
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +27 -27
- package/components/common/pages/backups/modals/restore/disks/tableView/TableView.vue +102 -102
- package/components/common/pages/backups/modals/restore/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +108 -108
- package/components/common/pages/backups/modals/restore/name/Name.vue +160 -160
- 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/headline/HeadlineOld.vue +42 -42
- 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 +381 -381
- package/components/common/spiceConsole/SpiceConsole.vue +127 -127
- 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 +5 -5
- package/components/common/vm/actions/add/New.vue +2 -2
- package/components/common/vm/actions/add/Old.vue +2 -2
- 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 +2 -2
- package/components/common/vm/actions/clone/Clone.vue +5 -5
- package/components/common/vm/actions/clone/lib/config/steps.ts +291 -291
- package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +5 -5
- package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +78 -78
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
- 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/newHardDisk/location/LocationOld.vue +85 -85
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModal/new/New.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -92
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
- 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/keymap/KeymapOld.vue +44 -44
- 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/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- 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/config/items.ts +48 -48
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- 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 +14 -14
- 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/vmt/actions/add/Add.vue +5 -5
- package/components/common/vmt/actions/add/New.vue +3 -2
- package/components/common/vmt/actions/add/Old.vue +2 -2
- package/components/common/vmt/actions/add/lib/config/steps.ts +2 -2
- package/components/common/wizards/datastore/add/Add.vue +2 -2
- package/components/common/wizards/datastore/add/Old.vue +2 -2
- package/components/common/wizards/datastore/add/lib/config/steps.ts +2 -2
- package/components/common/wizards/datastore/add/lib/utils.ts +1 -1
- package/components/common/wizards/datastore/add/lib/validations.ts +3 -3
- package/components/common/wizards/datastore/add/steps/_local/Local.vue +1 -1
- package/components/common/wizards/datastore/add/steps/_local/createName/CreateName.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigure.vue +1 -2
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDevice.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +1 -1
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/components/common/wizards/network/add/Add.vue +7 -7
- package/components/common/wizards/network/add/lib/config/steps.ts +5 -5
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +2 -2
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +2 -2
- package/components/common/wizards/network/add/steps/PortProperties.vue +2 -2
- package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +2 -2
- package/components/common/wizards/network/add/validations/connectionSettings.ts +5 -5
- package/components/common/wizards/network/add/validations/createStandardSwitch.ts +4 -4
- package/components/common/wizards/network/add/validations/ipFourSettings.ts +5 -5
- package/components/common/wizards/network/add/validations/networkValidation.ts +4 -4
- package/components/common/wizards/network/add/validations/physicalAdapter.ts +4 -4
- package/components/common/wizards/network/add/validations/portProperties.ts +2 -2
- package/components/common/wizards/network/add/validations/targetDevice.ts +5 -5
- package/components/common/wizards/vm/migrate/Migrate.vue +2 -2
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +157 -157
- package/components/common/wizards/vm/migrate/lib/validations.ts +68 -68
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +1 -1
- package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +1 -1
- package/components/common/wizards/vm/migrate/select/type/lib/config/typeOptions.ts +45 -45
- package/composables/productNameLocal.ts +30 -30
- package/composables/useAppVersion.ts +21 -21
- package/package.json +42 -42
- 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 +390 -390
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
@@ -104,12 +104,6 @@
|
|
104
104
|
</template>
|
105
105
|
|
106
106
|
<script setup lang="ts">
|
107
|
-
import type {
|
108
|
-
UI_I_ValidationReturn,
|
109
|
-
UI_I_WizardStep,
|
110
|
-
UI_I_WizardStepNavigation,
|
111
|
-
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
112
|
-
import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
113
107
|
import type {
|
114
108
|
UI_I_ArbitraryObject,
|
115
109
|
UI_I_Localization,
|
@@ -137,9 +131,15 @@ import type {
|
|
137
131
|
API_UI_I_SwitchItem,
|
138
132
|
UI_I_AvailableAdapters,
|
139
133
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
140
|
-
import {
|
134
|
+
import type {
|
135
|
+
UI_I_ValidationReturn,
|
136
|
+
UI_I_WizardStep,
|
137
|
+
UI_I_WizardStepNavigation,
|
138
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
141
139
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
140
|
+
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
142
141
|
import { getVlanId } from '~/components/common/wizards/network/add/lib/utils/utils'
|
142
|
+
import { getAvailableAdapters } from '~/components/common/diagramMain/lib/utils/utils'
|
143
143
|
import {
|
144
144
|
createZeroSchemeReadyCompleteFunc,
|
145
145
|
createFirstSchemeReadyCompleteFunc,
|
@@ -1,8 +1,3 @@
|
|
1
|
-
import type {
|
2
|
-
UI_I_WizardStep,
|
3
|
-
UI_I_WizardSchemeData,
|
4
|
-
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
5
|
-
import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
|
6
1
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
7
2
|
import type {
|
8
3
|
UI_I_ConnectionSettings,
|
@@ -18,6 +13,11 @@ import type {
|
|
18
13
|
UI_I_Adapter,
|
19
14
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
20
15
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
16
|
+
import type {
|
17
|
+
UI_I_WizardStep,
|
18
|
+
UI_I_WizardSchemeData,
|
19
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
20
|
+
import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
|
21
21
|
|
22
22
|
export const stepsFunc = (
|
23
23
|
localization: UI_I_Localization
|
@@ -88,13 +88,13 @@
|
|
88
88
|
</template>
|
89
89
|
|
90
90
|
<script setup lang="ts">
|
91
|
-
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
92
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
93
91
|
import type {
|
94
92
|
UI_I_ArbitraryObject,
|
95
93
|
UI_I_Localization,
|
96
94
|
} from '~/lib/models/interfaces'
|
97
95
|
import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
96
|
+
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
97
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
98
98
|
import { vlanIdSelectData } from '~/components/common/wizards/network/add/lib/config/config'
|
99
99
|
import {
|
100
100
|
validateNetworkConnectionSettingsLocal,
|
@@ -178,8 +178,6 @@
|
|
178
178
|
</template>
|
179
179
|
|
180
180
|
<script setup lang="ts">
|
181
|
-
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
182
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
183
181
|
import type {
|
184
182
|
UI_I_ArbitraryObject,
|
185
183
|
UI_I_Localization,
|
@@ -188,6 +186,8 @@ import type {
|
|
188
186
|
UI_I_IpFourSettings,
|
189
187
|
UI_I_TCPStack,
|
190
188
|
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
189
|
+
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
190
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
191
191
|
import {
|
192
192
|
removeIpFourSettingsValidationLocal,
|
193
193
|
validateAddressIpFourSettingsLocal,
|
@@ -221,8 +221,6 @@
|
|
221
221
|
</template>
|
222
222
|
|
223
223
|
<script setup lang="ts">
|
224
|
-
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
225
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
226
224
|
import type {
|
227
225
|
UI_I_ArbitraryObject,
|
228
226
|
UI_I_Localization,
|
@@ -233,6 +231,8 @@ import type {
|
|
233
231
|
UI_I_TCPStack,
|
234
232
|
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
235
233
|
import type { UI_T_TCP } from '~/components/common/wizards/network/add/lib/models/types'
|
234
|
+
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
235
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
236
236
|
import {
|
237
237
|
servicesInitial,
|
238
238
|
vlanIdSelectData,
|
@@ -297,8 +297,6 @@
|
|
297
297
|
</template>
|
298
298
|
|
299
299
|
<script setup lang="ts">
|
300
|
-
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
301
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
302
300
|
import type {
|
303
301
|
UI_I_ArbitraryObject,
|
304
302
|
UI_I_Localization,
|
@@ -307,6 +305,8 @@ import type {
|
|
307
305
|
UI_I_TargetDevice,
|
308
306
|
UI_I_Switch,
|
309
307
|
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
308
|
+
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
309
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
310
310
|
import { validateMtuTargetDeviceLocal } from '~/components/common/wizards/network/add/validations/validations'
|
311
311
|
|
312
312
|
const props = withDefaults(
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import type {
|
2
|
-
UI_I_ValidationReturn,
|
3
|
-
UI_I_WizardStep,
|
4
|
-
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
5
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
6
1
|
import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
7
2
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
8
3
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
4
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
5
|
+
import type {
|
6
|
+
UI_I_ValidationReturn,
|
7
|
+
UI_I_WizardStep,
|
8
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
9
9
|
import { checkVlanId } from '~/components/common/wizards/network/add/validations/common'
|
10
10
|
|
11
11
|
export const validateVlanIdConnectionSettingsLocal = (
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import type {
|
2
|
-
UI_I_ValidationReturn,
|
3
|
-
UI_I_WizardStep,
|
4
|
-
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
5
1
|
import type {
|
6
2
|
UI_I_AdapterStatus,
|
7
3
|
UI_I_Adapter,
|
8
4
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
9
5
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
6
|
+
import type {
|
7
|
+
UI_I_ValidationReturn,
|
8
|
+
UI_I_WizardStep,
|
9
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
10
10
|
|
11
11
|
export const checkAdaptersSync = (
|
12
12
|
localization: UI_I_Localization,
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
2
|
-
import type {
|
3
|
-
UI_I_ValidationReturn,
|
4
|
-
UI_I_WizardStep,
|
5
|
-
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
6
1
|
import type { UI_I_IpFourSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
7
2
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
8
3
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
4
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
5
|
+
import type {
|
6
|
+
UI_I_ValidationReturn,
|
7
|
+
UI_I_WizardStep,
|
8
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
9
9
|
import { checkIfValidIP } from '~/components/common/wizards/network/add/validations/common'
|
10
10
|
|
11
11
|
export const validateAddressIpFourSettingsLocal = (
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import type
|
1
|
+
import type { UI_I_AddNetworkingEmits } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
2
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
3
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
2
4
|
import type {
|
3
5
|
UI_I_AsyncCheckReturn,
|
4
6
|
UI_I_ValidationReturn,
|
5
7
|
UI_I_WizardStep,
|
6
|
-
} from '~/
|
7
|
-
import type { UI_I_AddNetworkingEmits } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
8
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
8
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
9
9
|
|
10
10
|
const checkNetwork = async (
|
11
11
|
label: string,
|
@@ -1,10 +1,10 @@
|
|
1
|
+
// import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
2
|
+
// import type { UI_I_Localization } from '~/lib/models/interfaces'
|
3
|
+
// import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
1
4
|
// import {
|
2
5
|
// UI_I_ValidationReturn,
|
3
6
|
// UI_I_WizardStep,
|
4
|
-
// } from '~/
|
5
|
-
// import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
6
|
-
// import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
7
|
-
// import type { UI_I_Localization } from '~/lib/models/interfaces'
|
7
|
+
// } from '~/components/atoms/wizard/lib/models/interfaces'
|
8
8
|
// import {
|
9
9
|
// UI_I_AdapterStatus,
|
10
10
|
// UI_I_Adapter,
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
2
|
-
import type {UI_I_ValidationReturn, UI_I_WizardStep} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
3
1
|
import type { UI_I_PortProperties } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
4
2
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
5
3
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
4
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
5
|
+
import type {UI_I_ValidationReturn, UI_I_WizardStep} from '~/components/atoms/wizard/lib/models/interfaces'
|
6
6
|
import {
|
7
7
|
checkVlanId,
|
8
8
|
checkMtu,
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
2
|
-
import type {
|
3
|
-
UI_I_ValidationReturn,
|
4
|
-
UI_I_WizardStep,
|
5
|
-
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
6
1
|
import type { UI_I_TargetDevice } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
7
2
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
8
3
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
4
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
5
|
+
import type {
|
6
|
+
UI_I_ValidationReturn,
|
7
|
+
UI_I_WizardStep,
|
8
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
9
9
|
import { checkMtu } from '~/components/common/wizards/network/add/validations/common'
|
10
10
|
|
11
11
|
export const validateMtuTargetDeviceLocal = (
|
@@ -93,8 +93,8 @@
|
|
93
93
|
import type {
|
94
94
|
UI_I_WizardStep,
|
95
95
|
UI_I_ValidationReturn,
|
96
|
-
} from '~/
|
97
|
-
import Wizard from '~/
|
96
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
97
|
+
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
98
98
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
99
99
|
import type { UI_T_Project } from '~/lib/models/types'
|
100
100
|
import type {
|
@@ -1,157 +1,157 @@
|
|
1
|
-
import type {
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
|
5
|
-
export const dynamicSteps = {
|
6
|
-
schedulingOptions: 0,
|
7
|
-
selectMigrationType: 1,
|
8
|
-
selectTargetVCenterSer: 2,
|
9
|
-
selectComputeResource: 3,
|
10
|
-
selectStorage: 4,
|
11
|
-
selectNetworks: 5,
|
12
|
-
migrationStrategy: 6,
|
13
|
-
readyComplete: 7,
|
14
|
-
}
|
15
|
-
export const stepsFunc = (
|
16
|
-
localization: UI_I_Localization,
|
17
|
-
isScheduledTasks: boolean
|
18
|
-
): UI_I_WizardStep[] => {
|
19
|
-
return [
|
20
|
-
{
|
21
|
-
id: dynamicSteps.schedulingOptions,
|
22
|
-
stepName: '',
|
23
|
-
title: localization.common.schedulingOptions,
|
24
|
-
subTitle: '',
|
25
|
-
status: UI_E_WIZARD_STATUS[isScheduledTasks ? 'SELECTED' : 'INACTIVE'],
|
26
|
-
isValid: true,
|
27
|
-
fields: {},
|
28
|
-
testId: 'migrate-vm-scheduling-options',
|
29
|
-
},
|
30
|
-
{
|
31
|
-
id: dynamicSteps.selectMigrationType,
|
32
|
-
title: localization.common.selectMigrationType,
|
33
|
-
subTitle: localization.common.selectMigrationTypeDesc,
|
34
|
-
status: UI_E_WIZARD_STATUS[!isScheduledTasks ? 'SELECTED' : 'INACTIVE'],
|
35
|
-
fields: {},
|
36
|
-
isValid: true,
|
37
|
-
testId: 'migrate-vm-select-type',
|
38
|
-
},
|
39
|
-
{
|
40
|
-
id: dynamicSteps.selectTargetVCenterSer,
|
41
|
-
title: localization.common.selectTargetVCenterSer,
|
42
|
-
subTitle: localization.common.selectComputeResourceDesc,
|
43
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
44
|
-
fields: {
|
45
|
-
sign_in: {
|
46
|
-
field: '',
|
47
|
-
alert: '',
|
48
|
-
},
|
49
|
-
},
|
50
|
-
isValid: true,
|
51
|
-
testId: 'migrate-vm-select-target-server',
|
52
|
-
},
|
53
|
-
{
|
54
|
-
id: dynamicSteps.selectComputeResource,
|
55
|
-
title: localization.common.selectComputeResource,
|
56
|
-
subTitle: localization.common.selectComputeResourceDesc,
|
57
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
58
|
-
fields: {
|
59
|
-
resource: {
|
60
|
-
field: '',
|
61
|
-
alert: '',
|
62
|
-
},
|
63
|
-
},
|
64
|
-
isValid: true,
|
65
|
-
testId: 'migrate-vm-select-compute-resource',
|
66
|
-
},
|
67
|
-
{
|
68
|
-
id: dynamicSteps.selectStorage,
|
69
|
-
title: localization.common.selectStorage,
|
70
|
-
subTitle: localization.common.selectStorageDesc,
|
71
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
72
|
-
fields: {
|
73
|
-
name: {
|
74
|
-
alert: '',
|
75
|
-
field: '',
|
76
|
-
},
|
77
|
-
},
|
78
|
-
isValid: true,
|
79
|
-
testId: 'migrate-vm-select-storage',
|
80
|
-
},
|
81
|
-
{
|
82
|
-
id: dynamicSteps.selectNetworks,
|
83
|
-
title: localization.common.selectNetworks,
|
84
|
-
subTitle: localization.common.selectNetworksDesc,
|
85
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
86
|
-
fields: {},
|
87
|
-
isValid: true,
|
88
|
-
testId: 'migrate-vm-select-networks',
|
89
|
-
},
|
90
|
-
{
|
91
|
-
id: dynamicSteps.migrationStrategy,
|
92
|
-
title: localization.migrateVm.migrationStrategy,
|
93
|
-
subTitle: localization.common.selectVMotionPriorityDesc,
|
94
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
95
|
-
fields: {},
|
96
|
-
isValid: true,
|
97
|
-
testId: 'migrate-vm-select-vMotion-priority',
|
98
|
-
},
|
99
|
-
{
|
100
|
-
id: dynamicSteps.readyComplete,
|
101
|
-
title: localization.common.readyComplete,
|
102
|
-
subTitle: '',
|
103
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
104
|
-
fields: {},
|
105
|
-
isValid: true,
|
106
|
-
testId: 'migrate-vm-ready-complete',
|
107
|
-
},
|
108
|
-
]
|
109
|
-
}
|
110
|
-
|
111
|
-
export const stepsSchemeInitial: number[][] = [
|
112
|
-
[
|
113
|
-
dynamicSteps.selectMigrationType,
|
114
|
-
dynamicSteps.selectStorage,
|
115
|
-
dynamicSteps.readyComplete,
|
116
|
-
], // Procurator and Sphere Scheme for "Change storage only" type
|
117
|
-
[
|
118
|
-
dynamicSteps.schedulingOptions,
|
119
|
-
dynamicSteps.selectMigrationType,
|
120
|
-
dynamicSteps.selectStorage,
|
121
|
-
dynamicSteps.readyComplete,
|
122
|
-
], // Procurator and Sphere Scheme for "Change storage only" type (from Scheduled tasks)
|
123
|
-
|
124
|
-
[
|
125
|
-
dynamicSteps.selectMigrationType,
|
126
|
-
dynamicSteps.selectComputeResource,
|
127
|
-
// dynamicSteps.selectNetworks, // пока что скрываем
|
128
|
-
dynamicSteps.migrationStrategy,
|
129
|
-
dynamicSteps.readyComplete,
|
130
|
-
], // Sphere Scheme for "Change compute resource only" type
|
131
|
-
[
|
132
|
-
dynamicSteps.schedulingOptions,
|
133
|
-
dynamicSteps.selectMigrationType,
|
134
|
-
dynamicSteps.selectComputeResource,
|
135
|
-
// dynamicSteps.selectNetworks, // пока что скрываем
|
136
|
-
dynamicSteps.migrationStrategy,
|
137
|
-
dynamicSteps.readyComplete,
|
138
|
-
], // Sphere Scheme for "Change compute resource only" type (from Scheduled tasks)
|
139
|
-
|
140
|
-
[
|
141
|
-
dynamicSteps.selectMigrationType,
|
142
|
-
dynamicSteps.selectComputeResource,
|
143
|
-
dynamicSteps.selectStorage,
|
144
|
-
// dynamicSteps.selectNetworks, // пока что скрываем
|
145
|
-
dynamicSteps.migrationStrategy,
|
146
|
-
dynamicSteps.readyComplete,
|
147
|
-
], // Sphere Scheme for "Change both compute resource and storage" type
|
148
|
-
[
|
149
|
-
dynamicSteps.selectMigrationType,
|
150
|
-
dynamicSteps.selectTargetVCenterSer,
|
151
|
-
dynamicSteps.selectComputeResource,
|
152
|
-
dynamicSteps.selectStorage,
|
153
|
-
// dynamicSteps.selectNetworks, // пока что скрываем
|
154
|
-
dynamicSteps.migrationStrategy,
|
155
|
-
dynamicSteps.readyComplete,
|
156
|
-
], // Sphere Scheme for "Cross Sphere Zone export" type
|
157
|
-
]
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
+
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
3
|
+
import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
|
4
|
+
|
5
|
+
export const dynamicSteps = {
|
6
|
+
schedulingOptions: 0,
|
7
|
+
selectMigrationType: 1,
|
8
|
+
selectTargetVCenterSer: 2,
|
9
|
+
selectComputeResource: 3,
|
10
|
+
selectStorage: 4,
|
11
|
+
selectNetworks: 5,
|
12
|
+
migrationStrategy: 6,
|
13
|
+
readyComplete: 7,
|
14
|
+
}
|
15
|
+
export const stepsFunc = (
|
16
|
+
localization: UI_I_Localization,
|
17
|
+
isScheduledTasks: boolean
|
18
|
+
): UI_I_WizardStep[] => {
|
19
|
+
return [
|
20
|
+
{
|
21
|
+
id: dynamicSteps.schedulingOptions,
|
22
|
+
stepName: '',
|
23
|
+
title: localization.common.schedulingOptions,
|
24
|
+
subTitle: '',
|
25
|
+
status: UI_E_WIZARD_STATUS[isScheduledTasks ? 'SELECTED' : 'INACTIVE'],
|
26
|
+
isValid: true,
|
27
|
+
fields: {},
|
28
|
+
testId: 'migrate-vm-scheduling-options',
|
29
|
+
},
|
30
|
+
{
|
31
|
+
id: dynamicSteps.selectMigrationType,
|
32
|
+
title: localization.common.selectMigrationType,
|
33
|
+
subTitle: localization.common.selectMigrationTypeDesc,
|
34
|
+
status: UI_E_WIZARD_STATUS[!isScheduledTasks ? 'SELECTED' : 'INACTIVE'],
|
35
|
+
fields: {},
|
36
|
+
isValid: true,
|
37
|
+
testId: 'migrate-vm-select-type',
|
38
|
+
},
|
39
|
+
{
|
40
|
+
id: dynamicSteps.selectTargetVCenterSer,
|
41
|
+
title: localization.common.selectTargetVCenterSer,
|
42
|
+
subTitle: localization.common.selectComputeResourceDesc,
|
43
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
44
|
+
fields: {
|
45
|
+
sign_in: {
|
46
|
+
field: '',
|
47
|
+
alert: '',
|
48
|
+
},
|
49
|
+
},
|
50
|
+
isValid: true,
|
51
|
+
testId: 'migrate-vm-select-target-server',
|
52
|
+
},
|
53
|
+
{
|
54
|
+
id: dynamicSteps.selectComputeResource,
|
55
|
+
title: localization.common.selectComputeResource,
|
56
|
+
subTitle: localization.common.selectComputeResourceDesc,
|
57
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
58
|
+
fields: {
|
59
|
+
resource: {
|
60
|
+
field: '',
|
61
|
+
alert: '',
|
62
|
+
},
|
63
|
+
},
|
64
|
+
isValid: true,
|
65
|
+
testId: 'migrate-vm-select-compute-resource',
|
66
|
+
},
|
67
|
+
{
|
68
|
+
id: dynamicSteps.selectStorage,
|
69
|
+
title: localization.common.selectStorage,
|
70
|
+
subTitle: localization.common.selectStorageDesc,
|
71
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
72
|
+
fields: {
|
73
|
+
name: {
|
74
|
+
alert: '',
|
75
|
+
field: '',
|
76
|
+
},
|
77
|
+
},
|
78
|
+
isValid: true,
|
79
|
+
testId: 'migrate-vm-select-storage',
|
80
|
+
},
|
81
|
+
{
|
82
|
+
id: dynamicSteps.selectNetworks,
|
83
|
+
title: localization.common.selectNetworks,
|
84
|
+
subTitle: localization.common.selectNetworksDesc,
|
85
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
86
|
+
fields: {},
|
87
|
+
isValid: true,
|
88
|
+
testId: 'migrate-vm-select-networks',
|
89
|
+
},
|
90
|
+
{
|
91
|
+
id: dynamicSteps.migrationStrategy,
|
92
|
+
title: localization.migrateVm.migrationStrategy,
|
93
|
+
subTitle: localization.common.selectVMotionPriorityDesc,
|
94
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
95
|
+
fields: {},
|
96
|
+
isValid: true,
|
97
|
+
testId: 'migrate-vm-select-vMotion-priority',
|
98
|
+
},
|
99
|
+
{
|
100
|
+
id: dynamicSteps.readyComplete,
|
101
|
+
title: localization.common.readyComplete,
|
102
|
+
subTitle: '',
|
103
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
104
|
+
fields: {},
|
105
|
+
isValid: true,
|
106
|
+
testId: 'migrate-vm-ready-complete',
|
107
|
+
},
|
108
|
+
]
|
109
|
+
}
|
110
|
+
|
111
|
+
export const stepsSchemeInitial: number[][] = [
|
112
|
+
[
|
113
|
+
dynamicSteps.selectMigrationType,
|
114
|
+
dynamicSteps.selectStorage,
|
115
|
+
dynamicSteps.readyComplete,
|
116
|
+
], // Procurator and Sphere Scheme for "Change storage only" type
|
117
|
+
[
|
118
|
+
dynamicSteps.schedulingOptions,
|
119
|
+
dynamicSteps.selectMigrationType,
|
120
|
+
dynamicSteps.selectStorage,
|
121
|
+
dynamicSteps.readyComplete,
|
122
|
+
], // Procurator and Sphere Scheme for "Change storage only" type (from Scheduled tasks)
|
123
|
+
|
124
|
+
[
|
125
|
+
dynamicSteps.selectMigrationType,
|
126
|
+
dynamicSteps.selectComputeResource,
|
127
|
+
// dynamicSteps.selectNetworks, // пока что скрываем
|
128
|
+
dynamicSteps.migrationStrategy,
|
129
|
+
dynamicSteps.readyComplete,
|
130
|
+
], // Sphere Scheme for "Change compute resource only" type
|
131
|
+
[
|
132
|
+
dynamicSteps.schedulingOptions,
|
133
|
+
dynamicSteps.selectMigrationType,
|
134
|
+
dynamicSteps.selectComputeResource,
|
135
|
+
// dynamicSteps.selectNetworks, // пока что скрываем
|
136
|
+
dynamicSteps.migrationStrategy,
|
137
|
+
dynamicSteps.readyComplete,
|
138
|
+
], // Sphere Scheme for "Change compute resource only" type (from Scheduled tasks)
|
139
|
+
|
140
|
+
[
|
141
|
+
dynamicSteps.selectMigrationType,
|
142
|
+
dynamicSteps.selectComputeResource,
|
143
|
+
dynamicSteps.selectStorage,
|
144
|
+
// dynamicSteps.selectNetworks, // пока что скрываем
|
145
|
+
dynamicSteps.migrationStrategy,
|
146
|
+
dynamicSteps.readyComplete,
|
147
|
+
], // Sphere Scheme for "Change both compute resource and storage" type
|
148
|
+
[
|
149
|
+
dynamicSteps.selectMigrationType,
|
150
|
+
dynamicSteps.selectTargetVCenterSer,
|
151
|
+
dynamicSteps.selectComputeResource,
|
152
|
+
dynamicSteps.selectStorage,
|
153
|
+
// dynamicSteps.selectNetworks, // пока что скрываем
|
154
|
+
dynamicSteps.migrationStrategy,
|
155
|
+
dynamicSteps.readyComplete,
|
156
|
+
], // Sphere Scheme for "Cross Sphere Zone export" type
|
157
|
+
]
|