bfg-common 1.5.869 → 1.5.871
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/img/icons/icons-sprite-dark-5.svg +15 -2
- package/assets/img/icons/icons-sprite-light-5.svg +18 -5
- package/assets/localization/local_be.json +4 -1
- package/assets/localization/local_en.json +7 -4
- package/assets/localization/local_hy.json +4 -1
- package/assets/localization/local_kk.json +4 -1
- package/assets/localization/local_ru.json +10 -7
- package/assets/localization/local_zh.json +4 -1
- package/components/common/adapterManager/AdapterManagerNew.vue +39 -5
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +3 -2
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +3 -3
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +1 -0
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +10 -4
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +15 -0
- package/components/common/adapterManager/ui/table/TableNew.vue +3 -2
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +69 -36
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +5 -1
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +218 -218
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +17 -0
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +13 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics.ts +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +20 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Old.vue +3 -2
- package/components/common/wizards/network/add/Add.vue +872 -872
- package/components/common/wizards/network/add/AddNew.vue +483 -476
- package/components/common/wizards/network/add/lib/config/initialData.ts +86 -86
- package/components/common/wizards/network/add/lib/config/selectSwitch.ts +237 -237
- package/components/common/wizards/network/add/lib/utils/utils.ts +9 -9
- package/components/common/wizards/network/add/mappers/mappers.ts +199 -199
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettings.vue +89 -84
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsNew.vue +3 -0
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +126 -126
- package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitch.vue +81 -81
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettings.vue +144 -144
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +48 -9
- package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +196 -193
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +312 -294
- package/components/common/wizards/network/add/steps/readyComplete/ReadyComplete.vue +24 -24
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +34 -34
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +187 -187
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +455 -455
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +63 -63
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +63 -63
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +63 -63
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +180 -180
- package/components/common/wizards/network/add/validations/common.ts +30 -30
- package/components/common/wizards/network/add/validations/networkValidation.ts +2 -2
- package/components/common/wizards/network/add/validations/portProperties.ts +115 -115
- package/package.json +2 -2
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="currentComponent"
|
|
4
|
-
v-model="fields"
|
|
5
|
-
:messages-fields="props.messagesFields"
|
|
6
|
-
:alert-messages="props.alertMessages"
|
|
7
|
-
@hide-alert="onHideAlert"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script setup lang="ts">
|
|
12
|
-
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
13
|
-
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
|
14
|
-
import type {
|
|
15
|
-
UI_I_ArbitraryObject,
|
|
16
|
-
UI_I_Localization,
|
|
17
|
-
} from '~/lib/models/interfaces'
|
|
18
|
-
import type {
|
|
19
|
-
UI_I_IpFourSettings,
|
|
20
|
-
UI_I_TCPStack,
|
|
21
|
-
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
22
|
-
import {
|
|
23
|
-
removeIpFourSettingsValidationLocal,
|
|
24
|
-
validateAddressIpFourSettingsLocal,
|
|
25
|
-
validateGatewayIpFourSettingsLocal,
|
|
26
|
-
validateMaskIpFourSettingsLocal,
|
|
27
|
-
} from '~/components/common/wizards/network/add/validations/validations'
|
|
28
|
-
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
|
29
|
-
|
|
30
|
-
const props = defineProps<{
|
|
31
|
-
wizard: Wizard
|
|
32
|
-
ipFourSettings: UI_I_IpFourSettings
|
|
33
|
-
messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
34
|
-
alertMessages: string[]
|
|
35
|
-
tcp: string
|
|
36
|
-
gatewayFlag: boolean
|
|
37
|
-
tcpStacks?: UI_I_TCPStack[]
|
|
38
|
-
}>()
|
|
39
|
-
|
|
40
|
-
const emits = defineEmits<{
|
|
41
|
-
(event: 'change-ip-four-settings', ipFourSettings: UI_I_IpFourSettings): void
|
|
42
|
-
(event: 'change-gateway-flag', value: boolean): void
|
|
43
|
-
(event: 'hide-alert', stepId: 4): void
|
|
44
|
-
}>()
|
|
45
|
-
|
|
46
|
-
const { $store }: any = useNuxtApp()
|
|
47
|
-
|
|
48
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
49
|
-
|
|
50
|
-
const currentComponent = computed(() =>
|
|
51
|
-
isNewView.value
|
|
52
|
-
? defineAsyncComponent(() => import('./IpFourSettingsNew.vue'))
|
|
53
|
-
: defineAsyncComponent(() => import('./IpFourSettingsOld.vue'))
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
57
|
-
|
|
58
|
-
const fields = ref<UI_I_IpFourSettings>(useDeepCopy(props.ipFourSettings))
|
|
59
|
-
|
|
60
|
-
let oldFields = useDeepCopy(fields.value)
|
|
61
|
-
|
|
62
|
-
watch(
|
|
63
|
-
fields,
|
|
64
|
-
(newFields: UI_I_IpFourSettings) => {
|
|
65
|
-
if (newFields.ipSettings === '1') {
|
|
66
|
-
;(oldFields.ipSettings === '0' ||
|
|
67
|
-
oldFields.static.ipFourAddress !== newFields.static.ipFourAddress) &&
|
|
68
|
-
validateAddressIpFourSettingsLocal(
|
|
69
|
-
localization.value,
|
|
70
|
-
newFields,
|
|
71
|
-
props.wizard
|
|
72
|
-
)
|
|
73
|
-
;(oldFields.ipSettings === '0' ||
|
|
74
|
-
oldFields.static.subnetMask !== newFields.static.subnetMask) &&
|
|
75
|
-
validateMaskIpFourSettingsLocal(
|
|
76
|
-
localization.value,
|
|
77
|
-
newFields,
|
|
78
|
-
props.wizard
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
const isGatewayChanged =
|
|
82
|
-
newFields.static.defaultGateway &&
|
|
83
|
-
oldFields.static.defaultGateway.value !==
|
|
84
|
-
newFields.static.defaultGateway.value
|
|
85
|
-
|
|
86
|
-
emits('change-gateway-flag', true)
|
|
87
|
-
|
|
88
|
-
if (
|
|
89
|
-
oldFields.static.defaultGateway.override &&
|
|
90
|
-
!newFields.static.defaultGateway.override
|
|
91
|
-
) {
|
|
92
|
-
fields.value.static.defaultGateway.value = props.tcpStacks.find(
|
|
93
|
-
(tcp: UI_I_TCPStack) => tcp.id === props.tcp
|
|
94
|
-
).gateway
|
|
95
|
-
props.wizard.removeValidationLocal(
|
|
96
|
-
4,
|
|
97
|
-
UI_E_ValidationFields.IPV_SETTINGS_GATEWAY
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
;(oldFields.ipSettings === '0' || isGatewayChanged) &&
|
|
102
|
-
validateGatewayIpFourSettingsLocal(
|
|
103
|
-
localization.value,
|
|
104
|
-
newFields,
|
|
105
|
-
props.wizard
|
|
106
|
-
)
|
|
107
|
-
} else {
|
|
108
|
-
removeIpFourSettingsValidationLocal(props.wizard)
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
oldFields = useDeepCopy(fields.value)
|
|
112
|
-
|
|
113
|
-
emits('change-ip-four-settings', newFields)
|
|
114
|
-
},
|
|
115
|
-
{ deep: true }
|
|
116
|
-
)
|
|
117
|
-
|
|
118
|
-
watch(
|
|
119
|
-
() => props.tcpStacks,
|
|
120
|
-
(newValue: UI_I_TCPStack[]) => {
|
|
121
|
-
if (fields.value.static.defaultGateway.value === '') {
|
|
122
|
-
fields.value.static.defaultGateway.value = newValue?.[0]?.gateway || ''
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{ deep: true, immediate: true }
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
watch(
|
|
129
|
-
() => props.tcp,
|
|
130
|
-
(newValue: string) => {
|
|
131
|
-
if (newValue && !props.gatewayFlag) {
|
|
132
|
-
fields.value.static.defaultGateway.value = props.tcpStacks.find(
|
|
133
|
-
(tcp: UI_I_TCPStack) => tcp.id === newValue
|
|
134
|
-
).gateway
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{ immediate: true }
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
const onHideAlert = (): void => {
|
|
141
|
-
emits('hide-alert', 4)
|
|
142
|
-
}
|
|
143
|
-
</script>
|
|
144
|
-
<style lang="scss" scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="currentComponent"
|
|
4
|
+
v-model="fields"
|
|
5
|
+
:messages-fields="props.messagesFields"
|
|
6
|
+
:alert-messages="props.alertMessages"
|
|
7
|
+
@hide-alert="onHideAlert"
|
|
8
|
+
/>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
13
|
+
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
|
14
|
+
import type {
|
|
15
|
+
UI_I_ArbitraryObject,
|
|
16
|
+
UI_I_Localization,
|
|
17
|
+
} from '~/lib/models/interfaces'
|
|
18
|
+
import type {
|
|
19
|
+
UI_I_IpFourSettings,
|
|
20
|
+
UI_I_TCPStack,
|
|
21
|
+
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
22
|
+
import {
|
|
23
|
+
removeIpFourSettingsValidationLocal,
|
|
24
|
+
validateAddressIpFourSettingsLocal,
|
|
25
|
+
validateGatewayIpFourSettingsLocal,
|
|
26
|
+
validateMaskIpFourSettingsLocal,
|
|
27
|
+
} from '~/components/common/wizards/network/add/validations/validations'
|
|
28
|
+
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
|
29
|
+
|
|
30
|
+
const props = defineProps<{
|
|
31
|
+
wizard: Wizard
|
|
32
|
+
ipFourSettings: UI_I_IpFourSettings
|
|
33
|
+
messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
34
|
+
alertMessages: string[]
|
|
35
|
+
tcp: string
|
|
36
|
+
gatewayFlag: boolean
|
|
37
|
+
tcpStacks?: UI_I_TCPStack[]
|
|
38
|
+
}>()
|
|
39
|
+
|
|
40
|
+
const emits = defineEmits<{
|
|
41
|
+
(event: 'change-ip-four-settings', ipFourSettings: UI_I_IpFourSettings): void
|
|
42
|
+
(event: 'change-gateway-flag', value: boolean): void
|
|
43
|
+
(event: 'hide-alert', stepId: 4): void
|
|
44
|
+
}>()
|
|
45
|
+
|
|
46
|
+
const { $store }: any = useNuxtApp()
|
|
47
|
+
|
|
48
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
49
|
+
|
|
50
|
+
const currentComponent = computed(() =>
|
|
51
|
+
isNewView.value
|
|
52
|
+
? defineAsyncComponent(() => import('./IpFourSettingsNew.vue'))
|
|
53
|
+
: defineAsyncComponent(() => import('./IpFourSettingsOld.vue'))
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
57
|
+
|
|
58
|
+
const fields = ref<UI_I_IpFourSettings>(useDeepCopy(props.ipFourSettings))
|
|
59
|
+
|
|
60
|
+
let oldFields = useDeepCopy(fields.value)
|
|
61
|
+
|
|
62
|
+
watch(
|
|
63
|
+
fields,
|
|
64
|
+
(newFields: UI_I_IpFourSettings) => {
|
|
65
|
+
if (newFields.ipSettings === '1') {
|
|
66
|
+
;(oldFields.ipSettings === '0' ||
|
|
67
|
+
oldFields.static.ipFourAddress !== newFields.static.ipFourAddress) &&
|
|
68
|
+
validateAddressIpFourSettingsLocal(
|
|
69
|
+
localization.value,
|
|
70
|
+
newFields,
|
|
71
|
+
props.wizard
|
|
72
|
+
)
|
|
73
|
+
;(oldFields.ipSettings === '0' ||
|
|
74
|
+
oldFields.static.subnetMask !== newFields.static.subnetMask) &&
|
|
75
|
+
validateMaskIpFourSettingsLocal(
|
|
76
|
+
localization.value,
|
|
77
|
+
newFields,
|
|
78
|
+
props.wizard
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
const isGatewayChanged =
|
|
82
|
+
newFields.static.defaultGateway &&
|
|
83
|
+
oldFields.static.defaultGateway.value !==
|
|
84
|
+
newFields.static.defaultGateway.value
|
|
85
|
+
|
|
86
|
+
emits('change-gateway-flag', true)
|
|
87
|
+
|
|
88
|
+
if (
|
|
89
|
+
oldFields.static.defaultGateway.override &&
|
|
90
|
+
!newFields.static.defaultGateway.override
|
|
91
|
+
) {
|
|
92
|
+
fields.value.static.defaultGateway.value = props.tcpStacks.find(
|
|
93
|
+
(tcp: UI_I_TCPStack) => tcp.id === props.tcp
|
|
94
|
+
).gateway
|
|
95
|
+
props.wizard.removeValidationLocal(
|
|
96
|
+
4,
|
|
97
|
+
UI_E_ValidationFields.IPV_SETTINGS_GATEWAY
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
;(oldFields.ipSettings === '0' || isGatewayChanged) &&
|
|
102
|
+
validateGatewayIpFourSettingsLocal(
|
|
103
|
+
localization.value,
|
|
104
|
+
newFields,
|
|
105
|
+
props.wizard
|
|
106
|
+
)
|
|
107
|
+
} else {
|
|
108
|
+
removeIpFourSettingsValidationLocal(props.wizard)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
oldFields = useDeepCopy(fields.value)
|
|
112
|
+
|
|
113
|
+
emits('change-ip-four-settings', newFields)
|
|
114
|
+
},
|
|
115
|
+
{ deep: true }
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
watch(
|
|
119
|
+
() => props.tcpStacks,
|
|
120
|
+
(newValue: UI_I_TCPStack[]) => {
|
|
121
|
+
if (fields.value.static.defaultGateway.value === '') {
|
|
122
|
+
fields.value.static.defaultGateway.value = newValue?.[0]?.gateway || ''
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{ deep: true, immediate: true }
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
watch(
|
|
129
|
+
() => props.tcp,
|
|
130
|
+
(newValue: string) => {
|
|
131
|
+
if (newValue && !props.gatewayFlag) {
|
|
132
|
+
fields.value.static.defaultGateway.value = props.tcpStacks.find(
|
|
133
|
+
(tcp: UI_I_TCPStack) => tcp.id === newValue
|
|
134
|
+
).gateway
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{ immediate: true }
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
const onHideAlert = (): void => {
|
|
141
|
+
emits('hide-alert', 4)
|
|
142
|
+
}
|
|
143
|
+
</script>
|
|
144
|
+
<style lang="scss" scoped></style>
|
|
@@ -76,17 +76,35 @@
|
|
|
76
76
|
{{ localization.common.defaultGateway }}
|
|
77
77
|
</h4>
|
|
78
78
|
<div class="col-right pt-2">
|
|
79
|
-
<ui-
|
|
79
|
+
<ui-tooltip
|
|
80
80
|
id="default-gateway-override-input"
|
|
81
|
-
|
|
82
|
-
class="mb-3"
|
|
83
|
-
:label-text="
|
|
84
|
-
localization.common.overrideDefaultGatewayForThisAdapter
|
|
85
|
-
"
|
|
86
|
-
:disabled="fields.ipSettings === '0'"
|
|
87
|
-
test-id="default-gateway-override-input"
|
|
81
|
+
test-id="default-gateway-override-input-tooltip"
|
|
88
82
|
size="md"
|
|
89
|
-
|
|
83
|
+
position="bottom"
|
|
84
|
+
position-by-tooltip="center"
|
|
85
|
+
show-type="variant-1"
|
|
86
|
+
timing="660"
|
|
87
|
+
width="214"
|
|
88
|
+
>
|
|
89
|
+
<template #target>
|
|
90
|
+
<ui-checkbox
|
|
91
|
+
id="default-gateway-override-input"
|
|
92
|
+
v-model="fields.static.defaultGateway.override"
|
|
93
|
+
class="mb-3"
|
|
94
|
+
:label-text="
|
|
95
|
+
localization.common.overrideDefaultGatewayForThisAdapter
|
|
96
|
+
"
|
|
97
|
+
:disabled="fields.ipSettings === '0'"
|
|
98
|
+
test-id="default-gateway-override-input"
|
|
99
|
+
size="md"
|
|
100
|
+
/>
|
|
101
|
+
</template>
|
|
102
|
+
<template #content>
|
|
103
|
+
<div class="tooltip-text">
|
|
104
|
+
{{ localization.common.overrideDefaultGatewayForThisAdapter }}
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
107
|
+
</ui-tooltip>
|
|
90
108
|
<ui-input
|
|
91
109
|
id="default-gateway-input"
|
|
92
110
|
v-model="fields.static.defaultGateway.value"
|
|
@@ -197,6 +215,9 @@ const fields = computed({
|
|
|
197
215
|
&-left {
|
|
198
216
|
padding-top: 8px;
|
|
199
217
|
width: calc((100% - 8px) / 3);
|
|
218
|
+
text-overflow: ellipsis;
|
|
219
|
+
white-space: nowrap;
|
|
220
|
+
overflow: hidden;
|
|
200
221
|
}
|
|
201
222
|
|
|
202
223
|
&-right {
|
|
@@ -213,6 +234,10 @@ const fields = computed({
|
|
|
213
234
|
}
|
|
214
235
|
}
|
|
215
236
|
|
|
237
|
+
:deep(input[type='radio'] ~ .radio-label .radio-label__text) {
|
|
238
|
+
padding-top: 1px;
|
|
239
|
+
}
|
|
240
|
+
|
|
216
241
|
@media (max-width: 896px) {
|
|
217
242
|
.radio-container {
|
|
218
243
|
display: flex;
|
|
@@ -221,4 +246,18 @@ const fields = computed({
|
|
|
221
246
|
margin: 16px 0;
|
|
222
247
|
}
|
|
223
248
|
}
|
|
249
|
+
:deep(.ui-checkbox-label) {
|
|
250
|
+
text-overflow: ellipsis;
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
overflow: hidden;
|
|
253
|
+
|
|
254
|
+
.ui-checkbox-label-text {
|
|
255
|
+
text-overflow: ellipsis;
|
|
256
|
+
white-space: nowrap;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
.tooltip-text {
|
|
261
|
+
word-wrap: break-word;
|
|
262
|
+
}
|
|
224
263
|
</style>
|