bfg-common 1.5.442 → 1.5.444
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/assets/localization/local_be.json +9 -2
- package/assets/localization/local_en.json +19 -12
- package/assets/localization/local_hy.json +9 -2
- package/assets/localization/local_kk.json +9 -2
- package/assets/localization/local_ru.json +9 -2
- package/assets/localization/local_zh.json +9 -2
- 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/DataGrid.vue +1694 -1694
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/atoms/wizard/Wizard.vue +2 -2
- 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/blocks/Container.vue +235 -235
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/context/lib/models/interfaces.ts +33 -33
- 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/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/connectionSettings.ts +5 -5
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +2 -2
- package/components/common/diagramMain/port/Port.vue +580 -580
- 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 +5 -2
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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/Cpu.vue +2 -0
- 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/maximumSize/MaximumSize.vue +23 -23
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/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/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 +320 -320
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/vmt/actions/add/Add.vue +5 -5
- package/components/common/vmt/actions/add/New.vue +2 -3
- 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 +2 -1
- 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 +109 -333
- package/components/common/wizards/network/add/AddNew.vue +514 -0
- package/components/common/wizards/network/add/AddOld.vue +457 -0
- package/components/common/wizards/network/add/lib/config/config.ts +11 -1
- package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +31 -0
- package/components/common/wizards/network/add/lib/config/selectSwitch.ts +217 -0
- package/components/common/wizards/network/add/lib/config/steps.ts +5 -5
- package/components/common/wizards/network/add/lib/models/interfaces.ts +9 -0
- 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/selectConnectionType/SelectConnectionType.vue +35 -0
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeNew.vue +104 -0
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeOld.vue +80 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +183 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +393 -0
- package/components/common/wizards/network/add/steps/{SelectedTargetDevice.vue → selectTargetDevice/SelectTargetDeviceOld.vue} +42 -139
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/Modals.vue +55 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +64 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +64 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +64 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +163 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectStandardSwitch.vue +163 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +163 -0
- package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectNetwork.vue +53 -56
- package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectStandardSwitch.vue +37 -52
- package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectSwitch.vue +38 -42
- 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 +11 -10
- package/components/common/wizards/vm/migrate/Migrate.vue +2 -2
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -2
- package/components/common/wizards/vm/migrate/lib/validations.ts +3 -3
- 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 +2 -2
- 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
- package/components/atoms/wizard/lib/models/enums.ts +0 -8
- package/components/atoms/wizard/lib/models/interfaces.ts +0 -59
- package/components/atoms/wizard/lib/utils/utils.ts +0 -954
- package/components/common/wizards/network/add/steps/SelectConnectionType.vue +0 -112
@@ -0,0 +1,514 @@
|
|
1
|
+
<template>
|
2
|
+
<ui-wizard
|
3
|
+
:show="props.show"
|
4
|
+
:steps="props.wizard.steps"
|
5
|
+
:selected-scheme="props.selectedScheme"
|
6
|
+
:is-loading="props.wizard.wizardLoader.status"
|
7
|
+
:title="localization.common.addNetworking"
|
8
|
+
:sub-title="props.hostName"
|
9
|
+
:texts="texts"
|
10
|
+
test-id="add-networking-wizard"
|
11
|
+
@change-steps="onChangeSteps"
|
12
|
+
@hide="emits('hide')"
|
13
|
+
@submit="emits('submit')"
|
14
|
+
>
|
15
|
+
<template #content="{ selectedStep }">
|
16
|
+
<ui-wizard-block
|
17
|
+
v-if="selectedStep.id === 0"
|
18
|
+
:sub-title-height="selectConnectionTypeHeight"
|
19
|
+
>
|
20
|
+
<template #subTitle>
|
21
|
+
<div ref="selectConnectionTypeBlock">
|
22
|
+
<div class="subtitle-block flex flex-col">
|
23
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
24
|
+
<ui-line margin="12px 0 0" />
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</template>
|
28
|
+
<template #content>
|
29
|
+
<common-wizards-network-add-steps-select-connection-type
|
30
|
+
v-model="connectionTypeLocal"
|
31
|
+
/>
|
32
|
+
</template>
|
33
|
+
</ui-wizard-block>
|
34
|
+
|
35
|
+
<ui-wizard-block
|
36
|
+
v-if="selectedStep.id === 1"
|
37
|
+
:sub-title-height="selectTargetDeviceHeight"
|
38
|
+
>
|
39
|
+
<template #subTitle>
|
40
|
+
<div ref="selectTargetDeviceBlock">
|
41
|
+
<div class="subtitle-block flex flex-col">
|
42
|
+
<ui-alert
|
43
|
+
:messages="props.alertMessages[selectedStep.id]"
|
44
|
+
test-id="alert-3"
|
45
|
+
class="mb-4"
|
46
|
+
@hide="emits('hide-alert', selectedStep.id)"
|
47
|
+
/>
|
48
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
49
|
+
<ui-line margin="12px 0 0" />
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</template>
|
53
|
+
<template #content>
|
54
|
+
<common-wizards-network-add-steps-select-target-device
|
55
|
+
:wizard="props.wizard"
|
56
|
+
:target-device="props.targetDevice"
|
57
|
+
:connection-type="connectionTypeLocal"
|
58
|
+
:standard-switches-initial="props.standardSwitchesInitial"
|
59
|
+
:messages-fields="selectedStep.fields"
|
60
|
+
:alert-messages="props.alertMessages[1]"
|
61
|
+
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
62
|
+
:selected-switch-id="props.selectedSwitchId"
|
63
|
+
@hide-alert="onHideAlert"
|
64
|
+
@change-target-device="onChangeTargetDevice"
|
65
|
+
/>
|
66
|
+
</template>
|
67
|
+
</ui-wizard-block>
|
68
|
+
|
69
|
+
<common-wizards-network-add-steps-create-standard-switch
|
70
|
+
v-if="selectedStep.id === 2 || selectedStep.id === 6"
|
71
|
+
:free-adapters="props.freeAdapters"
|
72
|
+
:added-adapters="props.addedAdapters"
|
73
|
+
:core-adapters="props.coreAdapters"
|
74
|
+
:adapter-status="props.adapterStatus"
|
75
|
+
:adapters="props.adapters"
|
76
|
+
:is-show-no-connected-active-adapters-modal="
|
77
|
+
props.isShowNoConnectedActiveAdaptersModal
|
78
|
+
"
|
79
|
+
:is-show-no-active-adapters-modal="props.isShowNoActiveAdaptersModal"
|
80
|
+
:is-dark-mode="props.isDarkMode"
|
81
|
+
@get-free-adapters="onGetFreeAdapters"
|
82
|
+
@change-added-adapters="onChangeAddedAdapters"
|
83
|
+
@change-adapter-status="onChangeAdapterStatus"
|
84
|
+
@confirm-no-active-adapters-modal="
|
85
|
+
emits('confirm-no-active-adapters-modal')
|
86
|
+
"
|
87
|
+
@hide-no-connected-active-adapters-modal="
|
88
|
+
emits('hide-no-connected-active-adapters-modal')
|
89
|
+
"
|
90
|
+
@hide-no-active-adapters-modal="emits('hide-no-active-adapters-modal')"
|
91
|
+
/>
|
92
|
+
<common-wizards-network-add-steps-port-properties
|
93
|
+
v-if="selectedStep.id === 3"
|
94
|
+
:wizard="props.wizard"
|
95
|
+
:port-properties="props.portProperties"
|
96
|
+
:mtu-from-switch="props.mtuFromSwitch"
|
97
|
+
:project="props.project"
|
98
|
+
:messages-fields="selectedStep.fields"
|
99
|
+
:alert-messages="props.alertMessages[3]"
|
100
|
+
:tcp-stacks="props.tcpStacks"
|
101
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
102
|
+
@change-port-properties="onChangePortProperties"
|
103
|
+
@hide-alert="onHideAlert"
|
104
|
+
/>
|
105
|
+
<common-wizards-network-add-steps-ip-four-settings
|
106
|
+
v-if="selectedStep.id === 4"
|
107
|
+
:wizard="props.wizard"
|
108
|
+
:ip-four-settings="props.ipFourSettings"
|
109
|
+
:messages-fields="selectedStep.fields"
|
110
|
+
:alert-messages="props.alertMessages[4]"
|
111
|
+
:tcp-stacks="props.tcpStacks"
|
112
|
+
:tcp="props.portProperties.tcp"
|
113
|
+
:gateway-flag="props.gatewayFlag"
|
114
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
115
|
+
@change-ip-four-settings="onChangeIpFourSettings"
|
116
|
+
@hide-alert="onHideAlert"
|
117
|
+
/>
|
118
|
+
<common-wizards-network-add-steps-connection-settings
|
119
|
+
v-if="selectedStep.id === 5"
|
120
|
+
:wizard="props.wizard"
|
121
|
+
:connection-settings="props.connectionSettings"
|
122
|
+
:messages-fields="selectedStep.fields"
|
123
|
+
:alert-messages="props.alertMessages[5]"
|
124
|
+
@change-connection-settings="onChangeConnectionSettings"
|
125
|
+
@hide-alert="onHideAlert"
|
126
|
+
/>
|
127
|
+
<!-- <common-wizards-network-add-steps-physical-adapter-->
|
128
|
+
<!-- v-if="selectedStep.id === 6"-->
|
129
|
+
<!-- />-->
|
130
|
+
<common-wizards-network-add-steps-ready-complete
|
131
|
+
v-if="selectedStep.id === 7"
|
132
|
+
:ready-complete-fields="props.readyCompleteFields"
|
133
|
+
/>
|
134
|
+
</template>
|
135
|
+
</ui-wizard>
|
136
|
+
</template>
|
137
|
+
|
138
|
+
<script setup lang="ts">
|
139
|
+
import { useElementSize } from '@vueuse/core'
|
140
|
+
import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/atoms/wizard/lib/models/interfaces'
|
141
|
+
import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
142
|
+
import type {
|
143
|
+
UI_I_Localization,
|
144
|
+
UI_I_ItemsWithTotalCounts,
|
145
|
+
} from '~/lib/models/interfaces'
|
146
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
147
|
+
import type {
|
148
|
+
UI_I_PortProperties,
|
149
|
+
UI_I_IpFourSettings,
|
150
|
+
UI_I_ConnectionSettings,
|
151
|
+
UI_I_TargetDevice,
|
152
|
+
UI_I_Switch,
|
153
|
+
UI_I_ReadyCompleteFields,
|
154
|
+
UI_I_TCPStack,
|
155
|
+
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
156
|
+
import type {
|
157
|
+
UI_I_Adapter,
|
158
|
+
UI_I_AdapterStatus,
|
159
|
+
UI_I_SwitchAdapterItem,
|
160
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
161
|
+
|
162
|
+
const props = defineProps<{
|
163
|
+
show: boolean
|
164
|
+
wizard: Wizard
|
165
|
+
selectedScheme: number[]
|
166
|
+
hostName: string
|
167
|
+
project: UI_T_Project
|
168
|
+
connectionType: string
|
169
|
+
targetDevice: UI_I_TargetDevice
|
170
|
+
standardSwitchesInitial: UI_I_Switch[]
|
171
|
+
alertMessages: string[][]
|
172
|
+
selectedStandardSwitchId: string
|
173
|
+
selectedSwitchId: string
|
174
|
+
freeAdapters: UI_I_Adapter[]
|
175
|
+
addedAdapters: string[]
|
176
|
+
coreAdapters: string[]
|
177
|
+
adapterStatus: UI_I_AdapterStatus
|
178
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
179
|
+
isShowNoConnectedActiveAdaptersModal: boolean
|
180
|
+
isShowNoActiveAdaptersModal: boolean
|
181
|
+
isDarkMode: boolean
|
182
|
+
portProperties: UI_I_PortProperties
|
183
|
+
mtuFromSwitch: number
|
184
|
+
tcpStacks: UI_I_TCPStack[]
|
185
|
+
ipFourSettings: UI_I_IpFourSettings
|
186
|
+
gatewayFlag: boolean
|
187
|
+
connectionSettings: UI_I_ConnectionSettings
|
188
|
+
readyCompleteFields: UI_I_ReadyCompleteFields[]
|
189
|
+
}>()
|
190
|
+
|
191
|
+
const emits = defineEmits<{
|
192
|
+
(event: 'update:connection-type', value: string): void
|
193
|
+
(event: 'change-connection-settings', value: UI_I_ConnectionSettings): void
|
194
|
+
(event: 'hide-alert', value: number): void
|
195
|
+
(event: 'change-gateway-flag', value: boolean): void
|
196
|
+
(event: 'change-ip-four-settings', value: UI_I_IpFourSettings): void
|
197
|
+
(event: 'change-port-properties', value: UI_I_PortProperties): void
|
198
|
+
(event: 'get-free-adapters', cb: () => void): void
|
199
|
+
(event: 'change-added-adapters', value: string[]): void
|
200
|
+
(event: 'change-adapter-status', value: UI_I_AdapterStatus): void
|
201
|
+
(event: 'confirm-no-active-adapters-modal'): void
|
202
|
+
(event: 'hide-no-connected-active-adapters-modal'): void
|
203
|
+
(event: 'hide-no-active-adapters-modal'): void
|
204
|
+
(event: 'change-target-device', value: UI_I_TargetDevice): void
|
205
|
+
(event: 'change-steps', value: UI_I_WizardStep[]): void
|
206
|
+
(event: 'hide'): void
|
207
|
+
(event: 'submit'): void
|
208
|
+
}>()
|
209
|
+
|
210
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
211
|
+
|
212
|
+
const texts = computed<UI_I_WizardTexts>(() => ({
|
213
|
+
cancel: localization.value.common.cancel,
|
214
|
+
back: localization.value.common.backCap,
|
215
|
+
processing: localization.value.common.processing,
|
216
|
+
next: localization.value.common.next,
|
217
|
+
finish: localization.value.common.create,
|
218
|
+
incompleteTitle: localization.value.common.incompleteProcess,
|
219
|
+
incompleteMessage: localization.value.common.incompleteProcessMessage,
|
220
|
+
incompleteCancel: localization.value.common.cancel,
|
221
|
+
incompleteLeave: localization.value.common.leave,
|
222
|
+
step: localization.value.common.step,
|
223
|
+
of: localization.value.common.of2,
|
224
|
+
}))
|
225
|
+
|
226
|
+
const connectionTypeLocal = computed<string>({
|
227
|
+
get() {
|
228
|
+
return props.connectionType
|
229
|
+
},
|
230
|
+
set(newValue: string) {
|
231
|
+
emits('update:connection-type', newValue)
|
232
|
+
},
|
233
|
+
})
|
234
|
+
|
235
|
+
const selectConnectionTypeBlock = ref<HTMLElement | null>(null)
|
236
|
+
const { height: selectConnectionTypeHeight } = useElementSize(
|
237
|
+
selectConnectionTypeBlock
|
238
|
+
)
|
239
|
+
const selectTargetDeviceBlock = ref<HTMLElement | null>(null)
|
240
|
+
const { height: selectTargetDeviceHeight } = useElementSize(
|
241
|
+
selectTargetDeviceBlock
|
242
|
+
)
|
243
|
+
|
244
|
+
const onChangeAddedAdapters = (addedAdaptersNew: string[]): void => {
|
245
|
+
emits('change-added-adapters', addedAdaptersNew)
|
246
|
+
}
|
247
|
+
|
248
|
+
const onChangeAdapterStatus = (adapterStatusNew: UI_I_AdapterStatus): void => {
|
249
|
+
emits('change-adapter-status', adapterStatusNew)
|
250
|
+
}
|
251
|
+
|
252
|
+
const onChangeTargetDevice = (newTargetDevice: UI_I_TargetDevice): void => {
|
253
|
+
emits('change-target-device', newTargetDevice)
|
254
|
+
}
|
255
|
+
|
256
|
+
const onChangePortProperties = (newFields: UI_I_PortProperties): void => {
|
257
|
+
emits('change-port-properties', newFields)
|
258
|
+
}
|
259
|
+
|
260
|
+
const onChangeIpFourSettings = (newFields: UI_I_IpFourSettings): void => {
|
261
|
+
emits('change-ip-four-settings', newFields)
|
262
|
+
}
|
263
|
+
|
264
|
+
const onChangeGatewayFlag = (newValue: boolean) => {
|
265
|
+
emits('change-gateway-flag', newValue)
|
266
|
+
}
|
267
|
+
|
268
|
+
const onChangeConnectionSettings = (
|
269
|
+
newFields: UI_I_ConnectionSettings
|
270
|
+
): void => {
|
271
|
+
emits('change-connection-settings', newFields)
|
272
|
+
}
|
273
|
+
|
274
|
+
const onHideAlert = (stepId: number): void => {
|
275
|
+
emits('hide-alert', stepId)
|
276
|
+
}
|
277
|
+
|
278
|
+
const onGetFreeAdapters = (showModal: () => void): void => {
|
279
|
+
emits('get-free-adapters', showModal)
|
280
|
+
}
|
281
|
+
|
282
|
+
const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> => {
|
283
|
+
emits('change-steps', value)
|
284
|
+
}
|
285
|
+
</script>
|
286
|
+
|
287
|
+
<style scoped lang="scss">
|
288
|
+
:deep(.modal) {
|
289
|
+
& > .modal-dialog > .modal-content > .modal-body {
|
290
|
+
height: calc(100% - 110px);
|
291
|
+
.disabled-on-time {
|
292
|
+
opacity: 0.4;
|
293
|
+
pointer-events: none;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
:deep(.disabled-on-time) {
|
298
|
+
opacity: 0.4;
|
299
|
+
pointer-events: none;
|
300
|
+
}
|
301
|
+
:deep(.wizard-content-container.add-networking-step) {
|
302
|
+
padding: 0px 15px 10px 10px;
|
303
|
+
|
304
|
+
.danger-not-valid {
|
305
|
+
border: 2px solid red;
|
306
|
+
border-bottom: 1px solid #db2100;
|
307
|
+
}
|
308
|
+
.tooltip-field {
|
309
|
+
margin-right: 12px;
|
310
|
+
}
|
311
|
+
|
312
|
+
.horizontal-flex-container {
|
313
|
+
margin-bottom: 5px;
|
314
|
+
min-height: 36px;
|
315
|
+
display: flex;
|
316
|
+
flex-direction: row;
|
317
|
+
}
|
318
|
+
.property-label-group {
|
319
|
+
width: 140px;
|
320
|
+
}
|
321
|
+
.disabled {
|
322
|
+
opacity: 0.4;
|
323
|
+
pointer-events: none;
|
324
|
+
}
|
325
|
+
.wizard-content-port {
|
326
|
+
.margin-left-property-value-group {
|
327
|
+
margin-left: 10px;
|
328
|
+
}
|
329
|
+
|
330
|
+
.property-value-group {
|
331
|
+
padding-left: 23px;
|
332
|
+
}
|
333
|
+
.horizontal-flex-container {
|
334
|
+
min-height: 24px;
|
335
|
+
margin-bottom: 0;
|
336
|
+
}
|
337
|
+
.radio {
|
338
|
+
min-height: 39px;
|
339
|
+
margin: 10px 0;
|
340
|
+
}
|
341
|
+
.form-block {
|
342
|
+
margin: 12px 0 24px 0;
|
343
|
+
padding-left: 23px;
|
344
|
+
|
345
|
+
&.form-block-ipv {
|
346
|
+
input[type='text'] {
|
347
|
+
width: 143px;
|
348
|
+
}
|
349
|
+
.horizontal-flex-container > label {
|
350
|
+
margin-right: 50px;
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
.edit-vmkernel-adapter-section {
|
355
|
+
padding-top: 12px;
|
356
|
+
|
357
|
+
label {
|
358
|
+
input[type='checkbox'] {
|
359
|
+
margin-right: 4px;
|
360
|
+
transform: translateY(1px);
|
361
|
+
}
|
362
|
+
}
|
363
|
+
.horizontal-flex-container {
|
364
|
+
margin-bottom: 5px;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
.port-properties-network-label {
|
368
|
+
width: 280px;
|
369
|
+
}
|
370
|
+
.port-properties-padding {
|
371
|
+
padding-top: 8px;
|
372
|
+
}
|
373
|
+
.port-properties-mtu-selector {
|
374
|
+
margin-right: 12px;
|
375
|
+
}
|
376
|
+
.port-properties-mtu-container {
|
377
|
+
display: flex;
|
378
|
+
}
|
379
|
+
select {
|
380
|
+
height: 24px;
|
381
|
+
}
|
382
|
+
}
|
383
|
+
.nw-property-value-group {
|
384
|
+
display: inline;
|
385
|
+
}
|
386
|
+
}
|
387
|
+
|
388
|
+
:deep(.modal-body-content.modal-body-content__confirmation) {
|
389
|
+
display: flex;
|
390
|
+
.confirm-icon-container {
|
391
|
+
margin-right: 20px;
|
392
|
+
}
|
393
|
+
.preserve-newlines {
|
394
|
+
white-space: pre-line;
|
395
|
+
font-size: 15px;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
|
399
|
+
.add-networking-wizard.is-dark {
|
400
|
+
:deep(.wizard-content-container.add-networking-step) {
|
401
|
+
.ready-complete-container {
|
402
|
+
background-color: var(--pannel-bg-color);
|
403
|
+
margin-top: 12px;
|
404
|
+
|
405
|
+
span {
|
406
|
+
color: var(--description-color);
|
407
|
+
}
|
408
|
+
}
|
409
|
+
|
410
|
+
.add-networking-radio-button-description {
|
411
|
+
color: var(--description-color);
|
412
|
+
}
|
413
|
+
|
414
|
+
.property-label-group {
|
415
|
+
color: var(--main-color-mode2);
|
416
|
+
}
|
417
|
+
.flex-property-label-group {
|
418
|
+
color: var(--main-color-mode2);
|
419
|
+
}
|
420
|
+
.flex-property-value-group {
|
421
|
+
select {
|
422
|
+
color: #fff;
|
423
|
+
}
|
424
|
+
}
|
425
|
+
.failover-order-master {
|
426
|
+
.secondary-title label {
|
427
|
+
color: #fff;
|
428
|
+
}
|
429
|
+
}
|
430
|
+
.k-grid-content {
|
431
|
+
background-color: var(--modal-bg-color);
|
432
|
+
}
|
433
|
+
.vui-action-bar {
|
434
|
+
background-color: var(--pannel-bg-color);
|
435
|
+
color: var(--title-color);
|
436
|
+
padding: 8px 0 3px;
|
437
|
+
|
438
|
+
.action-link-container:not(.disabled) {
|
439
|
+
&:hover {
|
440
|
+
background-color: #29414e;
|
441
|
+
border: 1px solid #c7e9ff;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
|
445
|
+
svg {
|
446
|
+
fill: #fff;
|
447
|
+
}
|
448
|
+
}
|
449
|
+
|
450
|
+
.k-grid.k-widget .k-grid-content {
|
451
|
+
border-left: 1px solid #485764;
|
452
|
+
border-right: 1px solid #485764;
|
453
|
+
border-top: 1px solid #ddd;
|
454
|
+
border-bottom: 1px solid #ddd;
|
455
|
+
|
456
|
+
tbody tr {
|
457
|
+
background-color: var(--modal-bg-color);
|
458
|
+
|
459
|
+
td {
|
460
|
+
border-bottom: 1px solid #666666;
|
461
|
+
border-color: #666666;
|
462
|
+
}
|
463
|
+
|
464
|
+
&:hover {
|
465
|
+
background-color: #324f61;
|
466
|
+
color: var(--title-color);
|
467
|
+
|
468
|
+
td {
|
469
|
+
border-bottom: 1px solid #ffffff;
|
470
|
+
}
|
471
|
+
}
|
472
|
+
|
473
|
+
&.k-state-selected {
|
474
|
+
background-color: #d8e3e9;
|
475
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
476
|
+
|
477
|
+
td span {
|
478
|
+
color: #000;
|
479
|
+
}
|
480
|
+
}
|
481
|
+
}
|
482
|
+
}
|
483
|
+
|
484
|
+
.failover-order-details {
|
485
|
+
&.relative-container .absolute-container {
|
486
|
+
background-color: var(--pannel-bg-color);
|
487
|
+
color: var(--main-color-mode2);
|
488
|
+
|
489
|
+
&:has(.no-items-selected-container) {
|
490
|
+
background-color: transparent;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
|
494
|
+
td span {
|
495
|
+
color: var(--main-color-mode2);
|
496
|
+
}
|
497
|
+
button span {
|
498
|
+
color: var(--main-color-mode2);
|
499
|
+
|
500
|
+
&:hover:not(.disabled) {
|
501
|
+
background-color: transparent;
|
502
|
+
}
|
503
|
+
}
|
504
|
+
button.active span {
|
505
|
+
color: #fff;
|
506
|
+
}
|
507
|
+
}
|
508
|
+
}
|
509
|
+
|
510
|
+
.select-adapter-info span {
|
511
|
+
color: var(--main-color-mode2);
|
512
|
+
}
|
513
|
+
}
|
514
|
+
</style>
|