bfg-common 1.5.442 → 1.5.443
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/assets/localization/local_be.json +9 -3
- package/assets/localization/local_en.json +17 -11
- package/assets/localization/local_hy.json +9 -3
- package/assets/localization/local_kk.json +9 -3
- package/assets/localization/local_ru.json +9 -3
- package/assets/localization/local_zh.json +9 -3
- 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/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/countdownTimer/CountdownTimer.vue +26 -15
- 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/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/Ports.vue +47 -47
- package/components/common/layout/theHeader/modals/{reconnect/Reconnect.vue → Reconnect.vue} +56 -43
- 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/lib/config/steps.ts +2 -2
- package/components/common/pages/backups/modals/restore/Restore.vue +3 -3
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +2 -2
- 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/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/newHardDisk/maximumSize/MaximumSize.vue +23 -23
- 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/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/targetServer/new/New.vue +1 -1
- package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +1 -1
- package/package.json +2 -2
- 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/countdownTimer/CountdownTimerNew.vue +0 -53
- package/components/common/countdownTimer/CountdownTimerOld.vue +0 -33
- package/components/common/layout/theHeader/modals/reconnect/ReconnectNew.vue +0 -74
- package/components/common/layout/theHeader/modals/reconnect/ReconnectOld.vue +0 -67
- package/components/common/wizards/network/add/steps/SelectConnectionType.vue +0 -112
package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue
CHANGED
@@ -93,8 +93,8 @@
|
|
93
93
|
</template>
|
94
94
|
|
95
95
|
<script setup lang="ts">
|
96
|
+
import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
96
97
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
97
|
-
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
98
98
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
99
99
|
import type { UI_I_InitialValidationFields } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces'
|
100
100
|
|
package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue
CHANGED
@@ -108,8 +108,8 @@
|
|
108
108
|
</template>
|
109
109
|
|
110
110
|
<script lang="ts" setup>
|
111
|
+
import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
111
112
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
112
|
-
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
113
113
|
import type { UI_I_InitialValidationFields } from '~/components/common/wizards/datastore/add/steps/nameAndConfigure/lib/models/interfaces'
|
114
114
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
115
115
|
import { dynamicSteps } from '~/components/common/wizards/datastore/add/lib/config/steps'
|
@@ -36,6 +36,7 @@
|
|
36
36
|
</template>
|
37
37
|
|
38
38
|
<script lang="ts" setup>
|
39
|
+
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
39
40
|
import type { UI_T_Project } from '~/lib/models/types'
|
40
41
|
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
41
42
|
import type {
|
@@ -46,7 +47,6 @@ import type {
|
|
46
47
|
UI_I_LunDiskSpherePayload,
|
47
48
|
UI_I_SelectHostOptions,
|
48
49
|
} from '~/components/common/wizards/datastore/add/steps/nameAndDevice/lib/models/interfaces'
|
49
|
-
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
50
50
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
51
51
|
import type { UI_I_CompatibleHosts } from '~/components/common/wizards/datastore/add/steps/hostAccessibility/table/lib/models/interfaces'
|
52
52
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
@@ -80,13 +80,13 @@
|
|
80
80
|
</template>
|
81
81
|
|
82
82
|
<script lang="ts" setup>
|
83
|
+
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
83
84
|
import type {
|
84
85
|
UI_I_Localization,
|
85
86
|
UI_I_ArbitraryObject,
|
86
87
|
} from '~/lib/models/interfaces'
|
87
88
|
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
88
89
|
import type { UI_I_SelectHostOptions } from '~/components/common/wizards/datastore/add/steps/nameAndDevice/lib/models/interfaces'
|
89
|
-
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
90
90
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
91
91
|
import type { UI_I_CreateStorageLunDisks } from '~/components/common/wizards/datastore/add/steps/nameAndDevice/table/lib/models/interfaces'
|
92
92
|
|
@@ -94,13 +94,13 @@
|
|
94
94
|
</template>
|
95
95
|
|
96
96
|
<script lang="ts" setup>
|
97
|
+
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
97
98
|
import type {
|
98
99
|
UI_I_Localization,
|
99
100
|
UI_I_ArbitraryObject,
|
100
101
|
} from '~/lib/models/interfaces'
|
101
102
|
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
102
103
|
import type { UI_I_SelectHostOptions } from '~/components/common/wizards/datastore/add/steps/nameAndDevice/lib/models/interfaces'
|
103
|
-
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
104
104
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
105
105
|
import type { UI_I_CreateStorageLunDisks } from '~/components/common/wizards/datastore/add/steps/nameAndDevice/table/lib/models/interfaces'
|
106
106
|
import { validateNameAndGenerateDataId } from '~/components/common/wizards/datastore/add/lib/utils'
|
@@ -1,109 +1,109 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
v-
|
2
|
+
<common-wizards-network-add-new
|
3
|
+
v-if="isNewView"
|
4
|
+
v-model:connection-type="connectionTypeLocal"
|
5
|
+
:show="props.show"
|
6
|
+
:wizard="wizard"
|
7
|
+
:selected-scheme="selectedScheme"
|
8
|
+
:host-name="hostNameLocal"
|
9
|
+
:project="props.project"
|
10
|
+
:target-device="targetDevice"
|
11
|
+
:standard-switches-initial="props.standardSwitchesInitial"
|
12
|
+
:alert-messages="alertMessages"
|
13
|
+
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
14
|
+
:selected-switch-id="props.selectedSwitchId"
|
15
|
+
:free-adapters="props.freeAdapters"
|
16
|
+
:added-adapters="addedAdapters"
|
17
|
+
:core-adapters="coreAdapters"
|
18
|
+
:adapter-status="adapterStatus"
|
19
|
+
:adapters="props.adapters"
|
20
|
+
:is-show-no-connected-active-adapters-modal="
|
21
|
+
isShowNoConnectedActiveAdaptersModal
|
22
|
+
"
|
23
|
+
:is-show-no-active-adapters-modal="isShowNoActiveAdaptersModal"
|
24
|
+
:is-dark-mode="props.isDarkMode"
|
25
|
+
:port-properties="portProperties"
|
26
|
+
:mtu-from-switch="mtuFromSwitch"
|
27
|
+
:tcp-stacks="props.tcpStacks"
|
28
|
+
:ip-four-settings="ipFourSettings"
|
29
|
+
:gateway-flag="gatewayFlag"
|
30
|
+
:connection-settings="connectionSettings"
|
31
|
+
:ready-complete-fields="readyCompleteFields"
|
32
|
+
@change-connection-settings="onChangeConnectionSettings"
|
33
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
34
|
+
@change-ip-four-settings="onChangeIpFourSettings"
|
35
|
+
@change-port-properties="onChangePortProperties"
|
36
|
+
@get-free-adapters="onGetFreeAdapters"
|
37
|
+
@change-added-adapters="onChangeAddedAdapters"
|
38
|
+
@change-adapter-status="onChangeAdapterStatus"
|
39
|
+
@confirm-no-active-adapters-modal="onConfirmNoActiveAdaptersModal"
|
40
|
+
@hide-no-connected-active-adapters-modal="
|
41
|
+
onHideNoConnectedActiveAdaptersModal
|
42
|
+
"
|
43
|
+
@hide-no-active-adapters-modal="onHideNoActiveAdaptersModal"
|
44
|
+
@hide-alert="onHideAlert"
|
45
|
+
@change-target-device="onChangeTargetDevice"
|
46
|
+
@change-steps="onChangeSteps"
|
47
|
+
@hide="onHideAddNetworkingModal"
|
48
|
+
@submit="onSubmit"
|
49
|
+
/>
|
50
|
+
<common-wizards-network-add-old
|
51
|
+
v-else
|
52
|
+
v-model:connection-type="connectionTypeLocal"
|
53
|
+
:show="props.show"
|
4
54
|
:wizard="wizard"
|
5
55
|
:selected-scheme="selectedScheme"
|
6
56
|
:title="title"
|
7
|
-
:
|
8
|
-
:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
57
|
+
:project="props.project"
|
58
|
+
:target-device="targetDevice"
|
59
|
+
:standard-switches-initial="props.standardSwitchesInitial"
|
60
|
+
:alert-messages="alertMessages"
|
61
|
+
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
62
|
+
:selected-switch-id="props.selectedSwitchId"
|
63
|
+
:free-adapters="props.freeAdapters"
|
64
|
+
:added-adapters="addedAdapters"
|
65
|
+
:core-adapters="coreAdapters"
|
66
|
+
:adapter-status="adapterStatus"
|
67
|
+
:adapters="props.adapters"
|
68
|
+
:is-show-no-connected-active-adapters-modal="
|
69
|
+
isShowNoConnectedActiveAdaptersModal
|
70
|
+
"
|
71
|
+
:is-show-no-active-adapters-modal="isShowNoActiveAdaptersModal"
|
72
|
+
:is-dark-mode="props.isDarkMode"
|
73
|
+
:port-properties="portProperties"
|
74
|
+
:mtu-from-switch="mtuFromSwitch"
|
75
|
+
:tcp-stacks="props.tcpStacks"
|
76
|
+
:ip-four-settings="ipFourSettings"
|
77
|
+
:gateway-flag="gatewayFlag"
|
78
|
+
:connection-settings="connectionSettings"
|
79
|
+
:ready-complete-fields="readyCompleteFields"
|
80
|
+
@change-connection-settings="onChangeConnectionSettings"
|
81
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
82
|
+
@change-ip-four-settings="onChangeIpFourSettings"
|
83
|
+
@change-port-properties="onChangePortProperties"
|
84
|
+
@get-free-adapters="onGetFreeAdapters"
|
85
|
+
@change-added-adapters="onChangeAddedAdapters"
|
86
|
+
@change-adapter-status="onChangeAdapterStatus"
|
87
|
+
@confirm-no-active-adapters-modal="onConfirmNoActiveAdaptersModal"
|
88
|
+
@hide-no-connected-active-adapters-modal="
|
89
|
+
onHideNoConnectedActiveAdaptersModal
|
90
|
+
"
|
91
|
+
@hide-no-active-adapters-modal="onHideNoActiveAdaptersModal"
|
92
|
+
@hide-alert="onHideAlert"
|
93
|
+
@change-target-device="onChangeTargetDevice"
|
16
94
|
@change-steps="onChangeSteps"
|
17
95
|
@hide="onHideAddNetworkingModal"
|
18
96
|
@submit="onSubmit"
|
19
|
-
|
20
|
-
<template #modalBody="{ selectedStep }">
|
21
|
-
<common-wizards-network-add-steps-select-connection-type
|
22
|
-
v-if="selectedStep.id === 0"
|
23
|
-
v-model="connectionTypeLocal"
|
24
|
-
:project="props.project"
|
25
|
-
/>
|
26
|
-
<common-wizards-network-add-steps-selected-target-device
|
27
|
-
v-if="selectedStep.id === 1"
|
28
|
-
:wizard="wizard"
|
29
|
-
:target-device="targetDevice"
|
30
|
-
:connection-type="connectionTypeLocal"
|
31
|
-
:standard-switches-initial="props.standardSwitchesInitial"
|
32
|
-
:messages-fields="selectedStep.fields"
|
33
|
-
:alert-messages="alertMessages[1]"
|
34
|
-
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
35
|
-
:selected-switch-id="props.selectedSwitchId"
|
36
|
-
@hide-alert="onHideAlert"
|
37
|
-
@change-target-device="onChangeTargetDevice"
|
38
|
-
/>
|
39
|
-
<common-wizards-network-add-steps-create-standard-switch
|
40
|
-
v-if="selectedStep.id === 2 || selectedStep.id === 6"
|
41
|
-
:free-adapters="props.freeAdapters"
|
42
|
-
:added-adapters="addedAdapters"
|
43
|
-
:core-adapters="coreAdapters"
|
44
|
-
:adapter-status="adapterStatus"
|
45
|
-
:adapters="props.adapters"
|
46
|
-
:is-show-no-connected-active-adapters-modal="
|
47
|
-
isShowNoConnectedActiveAdaptersModal
|
48
|
-
"
|
49
|
-
:is-show-no-active-adapters-modal="isShowNoActiveAdaptersModal"
|
50
|
-
:is-dark-mode="props.isDarkMode"
|
51
|
-
@get-free-adapters="onGetFreeAdapters"
|
52
|
-
@change-added-adapters="onChangeAddedAdapters"
|
53
|
-
@change-adapter-status="onChangeAdapterStatus"
|
54
|
-
@confirm-no-active-adapters-modal="onConfirmNoActiveAdaptersModal"
|
55
|
-
@hide-no-connected-active-adapters-modal="
|
56
|
-
onHideNoConnectedActiveAdaptersModal
|
57
|
-
"
|
58
|
-
@hide-no-active-adapters-modal="onHideNoActiveAdaptersModal"
|
59
|
-
/>
|
60
|
-
<common-wizards-network-add-steps-port-properties
|
61
|
-
v-if="selectedStep.id === 3"
|
62
|
-
:wizard="wizard"
|
63
|
-
:port-properties="portProperties"
|
64
|
-
:mtu-from-switch="mtuFromSwitch"
|
65
|
-
:project="props.project"
|
66
|
-
:messages-fields="selectedStep.fields"
|
67
|
-
:alert-messages="alertMessages[3]"
|
68
|
-
:tcp-stacks="props.tcpStacks"
|
69
|
-
@change-gateway-flag="onChangeGatewayFlag"
|
70
|
-
@change-port-properties="onChangePortProperties"
|
71
|
-
@hide-alert="onHideAlert"
|
72
|
-
/>
|
73
|
-
<common-wizards-network-add-steps-ip-four-settings
|
74
|
-
v-if="selectedStep.id === 4"
|
75
|
-
:wizard="wizard"
|
76
|
-
:ip-four-settings="ipFourSettings"
|
77
|
-
:messages-fields="selectedStep.fields"
|
78
|
-
:alert-messages="alertMessages[4]"
|
79
|
-
:tcp-stacks="props.tcpStacks"
|
80
|
-
:tcp="portProperties.tcp"
|
81
|
-
:gateway-flag="gatewayFlag"
|
82
|
-
@change-gateway-flag="onChangeGatewayFlag"
|
83
|
-
@change-ip-four-settings="onChangeIpFourSettings"
|
84
|
-
@hide-alert="onHideAlert"
|
85
|
-
/>
|
86
|
-
<common-wizards-network-add-steps-connection-settings
|
87
|
-
v-if="selectedStep.id === 5"
|
88
|
-
:wizard="wizard"
|
89
|
-
:connection-settings="connectionSettings"
|
90
|
-
:messages-fields="selectedStep.fields"
|
91
|
-
:alert-messages="alertMessages[5]"
|
92
|
-
@change-connection-settings="onChangeConnectionSettings"
|
93
|
-
@hide-alert="onHideAlert"
|
94
|
-
/>
|
95
|
-
<!-- <common-wizards-network-add-steps-physical-adapter-->
|
96
|
-
<!-- v-if="selectedStep.id === 6"-->
|
97
|
-
<!-- />-->
|
98
|
-
<common-wizards-network-add-steps-ready-complete
|
99
|
-
v-if="selectedStep.id === 7"
|
100
|
-
:ready-complete-fields="readyCompleteFields"
|
101
|
-
/>
|
102
|
-
</template>
|
103
|
-
</atoms-wizard>
|
97
|
+
/>
|
104
98
|
</template>
|
105
99
|
|
106
100
|
<script setup lang="ts">
|
101
|
+
import type {
|
102
|
+
UI_I_ValidationReturn,
|
103
|
+
UI_I_WizardStep,
|
104
|
+
UI_I_WizardStepNavigation,
|
105
|
+
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
106
|
+
import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
107
107
|
import type {
|
108
108
|
UI_I_ArbitraryObject,
|
109
109
|
UI_I_Localization,
|
@@ -131,15 +131,9 @@ import type {
|
|
131
131
|
API_UI_I_SwitchItem,
|
132
132
|
UI_I_AvailableAdapters,
|
133
133
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
134
|
-
import
|
135
|
-
UI_I_ValidationReturn,
|
136
|
-
UI_I_WizardStep,
|
137
|
-
UI_I_WizardStepNavigation,
|
138
|
-
} from '~/components/atoms/wizard/lib/models/interfaces'
|
134
|
+
import { getAvailableAdapters } from '~/components/common/diagramMain/lib/utils/utils'
|
139
135
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
140
|
-
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
141
136
|
import { getVlanId } from '~/components/common/wizards/network/add/lib/utils/utils'
|
142
|
-
import { getAvailableAdapters } from '~/components/common/diagramMain/lib/utils/utils'
|
143
137
|
import {
|
144
138
|
createZeroSchemeReadyCompleteFunc,
|
145
139
|
createFirstSchemeReadyCompleteFunc,
|
@@ -226,11 +220,19 @@ const emits = defineEmits<{
|
|
226
220
|
(event: 'get-tcp-stacks'): void
|
227
221
|
}>()
|
228
222
|
|
223
|
+
const { $store }: any = useNuxtApp()
|
224
|
+
|
225
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
226
|
+
|
229
227
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
230
228
|
|
231
229
|
const localHostName = ref<string>('')
|
230
|
+
const hostNameLocal = computed<string>(
|
231
|
+
() => props.hostName || localHostName.value
|
232
|
+
)
|
233
|
+
|
232
234
|
const title = computed<string>(
|
233
|
-
() => `${
|
235
|
+
() => `${hostNameLocal.value} - ${localization.value.common.addNetworking}`
|
234
236
|
)
|
235
237
|
|
236
238
|
const wizard: Wizard = new Wizard(
|
@@ -647,7 +649,8 @@ const validationFunc = async (
|
|
647
649
|
localization.value,
|
648
650
|
targetDevice.value,
|
649
651
|
wizard,
|
650
|
-
value
|
652
|
+
value,
|
653
|
+
isNewView.value
|
651
654
|
)
|
652
655
|
|
653
656
|
value = targetDeviceValidation.newValue
|
@@ -858,231 +861,4 @@ watch(
|
|
858
861
|
)
|
859
862
|
</script>
|
860
863
|
|
861
|
-
<style scoped lang="scss">
|
862
|
-
:deep(.modal) {
|
863
|
-
& > .modal-dialog > .modal-content > .modal-body {
|
864
|
-
height: calc(100% - 110px);
|
865
|
-
.disabled-on-time {
|
866
|
-
opacity: 0.4;
|
867
|
-
pointer-events: none;
|
868
|
-
}
|
869
|
-
}
|
870
|
-
}
|
871
|
-
:deep(.disabled-on-time) {
|
872
|
-
opacity: 0.4;
|
873
|
-
pointer-events: none;
|
874
|
-
}
|
875
|
-
:deep(.wizard-content-container.add-networking-step) {
|
876
|
-
padding: 0px 15px 10px 10px;
|
877
|
-
|
878
|
-
.danger-not-valid {
|
879
|
-
border: 2px solid red;
|
880
|
-
border-bottom: 1px solid #db2100;
|
881
|
-
}
|
882
|
-
.tooltip-field {
|
883
|
-
margin-right: 12px;
|
884
|
-
}
|
885
|
-
|
886
|
-
.horizontal-flex-container {
|
887
|
-
margin-bottom: 5px;
|
888
|
-
min-height: 36px;
|
889
|
-
display: flex;
|
890
|
-
flex-direction: row;
|
891
|
-
}
|
892
|
-
.property-label-group {
|
893
|
-
width: 140px;
|
894
|
-
}
|
895
|
-
.disabled {
|
896
|
-
opacity: 0.4;
|
897
|
-
pointer-events: none;
|
898
|
-
}
|
899
|
-
.wizard-content-port {
|
900
|
-
.margin-left-property-value-group {
|
901
|
-
margin-left: 10px;
|
902
|
-
}
|
903
|
-
|
904
|
-
.property-value-group {
|
905
|
-
padding-left: 23px;
|
906
|
-
}
|
907
|
-
.horizontal-flex-container {
|
908
|
-
min-height: 24px;
|
909
|
-
margin-bottom: 0;
|
910
|
-
}
|
911
|
-
.radio {
|
912
|
-
min-height: 39px;
|
913
|
-
margin: 10px 0;
|
914
|
-
}
|
915
|
-
.form-block {
|
916
|
-
margin: 12px 0 24px 0;
|
917
|
-
padding-left: 23px;
|
918
|
-
|
919
|
-
&.form-block-ipv {
|
920
|
-
input[type='text'] {
|
921
|
-
width: 143px;
|
922
|
-
}
|
923
|
-
.horizontal-flex-container > label {
|
924
|
-
margin-right: 50px;
|
925
|
-
}
|
926
|
-
}
|
927
|
-
}
|
928
|
-
.edit-vmkernel-adapter-section {
|
929
|
-
padding-top: 12px;
|
930
|
-
|
931
|
-
label {
|
932
|
-
input[type='checkbox'] {
|
933
|
-
margin-right: 4px;
|
934
|
-
transform: translateY(1px);
|
935
|
-
}
|
936
|
-
}
|
937
|
-
.horizontal-flex-container {
|
938
|
-
margin-bottom: 5px;
|
939
|
-
}
|
940
|
-
}
|
941
|
-
.port-properties-network-label {
|
942
|
-
width: 280px;
|
943
|
-
}
|
944
|
-
.port-properties-padding {
|
945
|
-
padding-top: 8px;
|
946
|
-
}
|
947
|
-
.port-properties-mtu-selector {
|
948
|
-
margin-right: 12px;
|
949
|
-
}
|
950
|
-
.port-properties-mtu-container {
|
951
|
-
display: flex;
|
952
|
-
}
|
953
|
-
select {
|
954
|
-
height: 24px;
|
955
|
-
}
|
956
|
-
}
|
957
|
-
.nw-property-value-group {
|
958
|
-
display: inline;
|
959
|
-
}
|
960
|
-
}
|
961
|
-
|
962
|
-
:deep(.modal-body-content.modal-body-content__confirmation) {
|
963
|
-
display: flex;
|
964
|
-
.confirm-icon-container {
|
965
|
-
margin-right: 20px;
|
966
|
-
}
|
967
|
-
.preserve-newlines {
|
968
|
-
white-space: pre-line;
|
969
|
-
font-size: 15px;
|
970
|
-
}
|
971
|
-
}
|
972
|
-
|
973
|
-
.add-networking-wizard.is-dark {
|
974
|
-
:deep(.wizard-content-container.add-networking-step) {
|
975
|
-
.ready-complete-container {
|
976
|
-
background-color: var(--pannel-bg-color);
|
977
|
-
margin-top: 12px;
|
978
|
-
|
979
|
-
span {
|
980
|
-
color: var(--description-color);
|
981
|
-
}
|
982
|
-
}
|
983
|
-
|
984
|
-
.add-networking-radio-button-description {
|
985
|
-
color: var(--description-color);
|
986
|
-
}
|
987
|
-
|
988
|
-
.property-label-group {
|
989
|
-
color: var(--main-color-mode2);
|
990
|
-
}
|
991
|
-
.flex-property-label-group {
|
992
|
-
color: var(--main-color-mode2);
|
993
|
-
}
|
994
|
-
.flex-property-value-group {
|
995
|
-
select {
|
996
|
-
color: #fff;
|
997
|
-
}
|
998
|
-
}
|
999
|
-
.failover-order-master {
|
1000
|
-
.secondary-title label {
|
1001
|
-
color: #fff;
|
1002
|
-
}
|
1003
|
-
}
|
1004
|
-
.k-grid-content {
|
1005
|
-
background-color: var(--modal-bg-color);
|
1006
|
-
}
|
1007
|
-
.vui-action-bar {
|
1008
|
-
background-color: var(--pannel-bg-color);
|
1009
|
-
color: var(--title-color);
|
1010
|
-
padding: 8px 0 3px;
|
1011
|
-
|
1012
|
-
.action-link-container:not(.disabled) {
|
1013
|
-
&:hover {
|
1014
|
-
background-color: #29414e;
|
1015
|
-
border: 1px solid #c7e9ff;
|
1016
|
-
}
|
1017
|
-
}
|
1018
|
-
|
1019
|
-
svg {
|
1020
|
-
fill: #fff;
|
1021
|
-
}
|
1022
|
-
}
|
1023
|
-
|
1024
|
-
.k-grid.k-widget .k-grid-content {
|
1025
|
-
border-left: 1px solid #485764;
|
1026
|
-
border-right: 1px solid #485764;
|
1027
|
-
border-top: 1px solid #ddd;
|
1028
|
-
border-bottom: 1px solid #ddd;
|
1029
|
-
|
1030
|
-
tbody tr {
|
1031
|
-
background-color: var(--modal-bg-color);
|
1032
|
-
|
1033
|
-
td {
|
1034
|
-
border-bottom: 1px solid #666666;
|
1035
|
-
border-color: #666666;
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
&:hover {
|
1039
|
-
background-color: #324f61;
|
1040
|
-
color: var(--title-color);
|
1041
|
-
|
1042
|
-
td {
|
1043
|
-
border-bottom: 1px solid #ffffff;
|
1044
|
-
}
|
1045
|
-
}
|
1046
|
-
|
1047
|
-
&.k-state-selected {
|
1048
|
-
background-color: #d8e3e9;
|
1049
|
-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
1050
|
-
|
1051
|
-
td span {
|
1052
|
-
color: #000;
|
1053
|
-
}
|
1054
|
-
}
|
1055
|
-
}
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
.failover-order-details {
|
1059
|
-
&.relative-container .absolute-container {
|
1060
|
-
background-color: var(--pannel-bg-color);
|
1061
|
-
color: var(--main-color-mode2);
|
1062
|
-
|
1063
|
-
&:has(.no-items-selected-container) {
|
1064
|
-
background-color: transparent;
|
1065
|
-
}
|
1066
|
-
}
|
1067
|
-
|
1068
|
-
td span {
|
1069
|
-
color: var(--main-color-mode2);
|
1070
|
-
}
|
1071
|
-
button span {
|
1072
|
-
color: var(--main-color-mode2);
|
1073
|
-
|
1074
|
-
&:hover:not(.disabled) {
|
1075
|
-
background-color: transparent;
|
1076
|
-
}
|
1077
|
-
}
|
1078
|
-
button.active span {
|
1079
|
-
color: #fff;
|
1080
|
-
}
|
1081
|
-
}
|
1082
|
-
}
|
1083
|
-
|
1084
|
-
.select-adapter-info span {
|
1085
|
-
color: var(--main-color-mode2);
|
1086
|
-
}
|
1087
|
-
}
|
1088
|
-
</style>
|
864
|
+
<style scoped lang="scss"></style>
|