bfg-common 1.2.186 → 1.2.187
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 -2
- package/assets/localization/local_en.json +9 -2
- 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/assets/scss/common/theme.scss +27 -25
- package/components/atoms/table/simpleTable/SimpleTable.vue +5 -2
- package/components/atoms/wizard/Wizard.vue +4 -4
- package/components/atoms/wizard/models/interfaces.ts +4 -3
- package/components/atoms/wizard/utils/utils.ts +106 -27
- package/components/common/diagramMain/DiagramMain.vue +10 -46
- package/components/common/diagramMain/modals/config/index.ts +0 -6
- package/components/common/diagramMain/modals/config/vmKernelAdapter.ts +2 -2
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +1 -1
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +531 -0
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/config/steps.ts +114 -0
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +161 -0
- package/components/common/diagramMain/modals/{steps → migrateVmkernelAdapter/steps}/SelectVmkernelAdapter.vue +24 -86
- package/components/common/diagramMain/modals/{steps → migrateVmkernelAdapter/steps}/VmkernelAdapterReadyComplete.vue +7 -11
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +47 -0
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +146 -0
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +54 -0
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -0
- package/components/common/diagramMain/models/enums.ts +6 -7
- package/components/common/diagramMain/models/interfaces.ts +28 -29
- package/components/common/diagramMain/models/types.ts +0 -1
- package/components/common/monitor/advanced/Advanced.vue +5 -4
- package/components/common/wizards/network/add/Add.vue +874 -0
- package/components/common/{addNetworking → wizards/network/add}/config/index.ts +2 -16
- package/components/common/{addNetworking → wizards/network/add}/config/initialData.ts +4 -19
- package/components/common/{addNetworking → wizards/network/add}/config/portPropertiesStep.ts +1 -1
- package/components/common/{addNetworking → wizards/network/add}/config/selectSwitch.ts +1 -1
- package/components/common/{addNetworking → wizards/network/add}/config/sendData.ts +1 -1
- package/components/common/{addNetworking/config/addNetworkingSteps.ts → wizards/network/add/config/steps.ts} +107 -60
- package/components/common/{addNetworking → wizards/network/add}/modals/SelectNetwork.vue +2 -2
- package/components/common/{addNetworking → wizards/network/add}/modals/SelectStandardSwitch.vue +2 -2
- package/components/common/{addNetworking → wizards/network/add}/modals/SelectSwitch.vue +2 -2
- package/components/common/wizards/network/add/models/enums.ts +17 -0
- package/components/common/{addNetworking → wizards/network/add}/models/interfaces.ts +30 -37
- package/components/common/wizards/network/add/models/types.ts +2 -0
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +148 -0
- package/components/common/{addNetworking → wizards/network/add}/steps/CreateStandardSwitch.vue +0 -7
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +245 -0
- package/components/common/{addNetworking → wizards/network/add}/steps/PhysicalAdapter.vue +1 -12
- package/components/common/{addNetworking → wizards/network/add}/steps/PortProperties.vue +57 -180
- package/components/common/{addNetworking → wizards/network/add}/steps/ReadyComplete.vue +1 -10
- package/components/common/{addNetworking → wizards/network/add}/steps/SelectConnectionType.vue +3 -15
- package/components/common/{addNetworking → wizards/network/add}/steps/SelectedTargetDevice.vue +103 -209
- package/components/common/wizards/network/add/utils/index.ts +4 -0
- package/components/common/wizards/network/add/validations/common.ts +58 -0
- package/components/common/wizards/network/add/validations/connectionSettings.ts +75 -0
- package/components/common/wizards/network/add/validations/createStandardSwitch.ts +58 -0
- package/components/common/wizards/network/add/validations/ipFourSettings.ts +188 -0
- package/components/common/wizards/network/add/validations/networkValidation.ts +73 -0
- package/components/common/wizards/network/add/validations/portProperties.ts +87 -0
- package/components/common/wizards/network/add/validations/targetDevice.ts +113 -0
- package/components/common/wizards/network/add/validations/validations.ts +43 -0
- package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +2 -0
- package/package.json +1 -1
- package/components/common/addNetworking/AddNetworking.vue +0 -1123
- package/components/common/addNetworking/Wizard.vue +0 -286
- package/components/common/addNetworking/config/temporaryData.ts +0 -8
- package/components/common/addNetworking/config/validation.ts +0 -23
- package/components/common/addNetworking/models/enums.ts +0 -7
- package/components/common/addNetworking/models/types.ts +0 -13
- package/components/common/addNetworking/steps/ConnectionSettings.vue +0 -269
- package/components/common/addNetworking/steps/Header.vue +0 -53
- package/components/common/addNetworking/steps/IpFourSettings.vue +0 -361
- package/components/common/addNetworking/utils/index.ts +0 -212
- package/components/common/diagramMain/modals/MigrateVmkernelAdapter.vue +0 -603
- package/components/common/diagramMain/modals/config/migrateVmkernelAdapterSteps.ts +0 -81
- package/components/common/diagramMain/modals/config/validation.ts +0 -3
- package/components/common/diagramMain/modals/steps/ConnectionSettings.vue +0 -221
- package/components/common/diagramMain/modals/steps/Header.vue +0 -60
- /package/components/common/{addNetworking → wizards/network/add}/mappers/mappers.ts +0 -0
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="wizard-content-container add-networking-step">
|
|
3
|
-
<common-diagram-main-modals-steps-header
|
|
4
|
-
:title="props.title"
|
|
5
|
-
:text="props.text"
|
|
6
|
-
/>
|
|
7
|
-
<div class="wizard-content wizard-content-port">
|
|
8
|
-
<atoms-alert
|
|
9
|
-
v-if="isShowErrorMessage"
|
|
10
|
-
status="alert-danger"
|
|
11
|
-
:items="props.errorMessages"
|
|
12
|
-
@remove="onHideErrorMessageAlert"
|
|
13
|
-
/>
|
|
14
|
-
<form id-connection-settings-form>
|
|
15
|
-
<div class="horizontal-flex-container">
|
|
16
|
-
<label class="property-label-group" for="network-label">
|
|
17
|
-
{{ localization.networkLabel }}
|
|
18
|
-
</label>
|
|
19
|
-
<div class="margin-left-property-value-group">
|
|
20
|
-
<div class="property-value-group">
|
|
21
|
-
<fieldset>
|
|
22
|
-
<atoms-tooltip-error
|
|
23
|
-
:has-error="!!fieldsErrorMessages.networkLabel"
|
|
24
|
-
>
|
|
25
|
-
<template #elem>
|
|
26
|
-
<input
|
|
27
|
-
id="network-label"
|
|
28
|
-
v-model="fields.networkLabel"
|
|
29
|
-
name="network-label"
|
|
30
|
-
type="text"
|
|
31
|
-
:class="[
|
|
32
|
-
'tooltip-field port-properties-network-label',
|
|
33
|
-
{
|
|
34
|
-
'danger-not-valid': fieldsErrorMessages.networkLabel,
|
|
35
|
-
},
|
|
36
|
-
]"
|
|
37
|
-
@click.stop
|
|
38
|
-
/>
|
|
39
|
-
</template>
|
|
40
|
-
<template #content>
|
|
41
|
-
{{ fieldsErrorMessages.networkLabel }}
|
|
42
|
-
</template>
|
|
43
|
-
</atoms-tooltip-error>
|
|
44
|
-
</fieldset>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<div class="horizontal-flex-container port-properties-padding">
|
|
50
|
-
<label class="property-label-group" for="">
|
|
51
|
-
{{ localization.vlanId }}
|
|
52
|
-
</label>
|
|
53
|
-
<div class="margin-left-property-value-group">
|
|
54
|
-
<div class="property-value-group">
|
|
55
|
-
<fieldset>
|
|
56
|
-
<div class="flex-align-center">
|
|
57
|
-
<atoms-combobox
|
|
58
|
-
v-model.trim="fields.vlanId"
|
|
59
|
-
:items="vlanIdSelectData"
|
|
60
|
-
@click.stop
|
|
61
|
-
/>
|
|
62
|
-
<div
|
|
63
|
-
v-show="fieldsErrorMessages.vlanId"
|
|
64
|
-
class="flex-align-center"
|
|
65
|
-
>
|
|
66
|
-
<div class="tooltip">
|
|
67
|
-
<atoms-the-icon
|
|
68
|
-
width="24px"
|
|
69
|
-
height="24px"
|
|
70
|
-
class="is-error tooltip-trigger"
|
|
71
|
-
name="info"
|
|
72
|
-
/>
|
|
73
|
-
<div class="tooltip-top-left tooltip-content error">
|
|
74
|
-
{{ fieldsErrorMessages.vlanId }}
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</fieldset>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</form>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</template>
|
|
87
|
-
|
|
88
|
-
<script setup lang="ts">
|
|
89
|
-
import { UI_I_ArbitraryObject, UI_I_Localization } from '~/models/interfaces'
|
|
90
|
-
import {
|
|
91
|
-
UI_I_ConnectionSettings,
|
|
92
|
-
UI_I_ConnectionSettingsFieldsErrorMessages,
|
|
93
|
-
} from '~/components/common/addNetworking/models/interfaces'
|
|
94
|
-
import { UI_T_ConnectionSettingsFieldName } from '~/components/common/addNetworking/models/types'
|
|
95
|
-
import {
|
|
96
|
-
connectionSettingsFieldsErrorMessages,
|
|
97
|
-
vlanIdSelectData,
|
|
98
|
-
} from '~/components/common/addNetworking/config'
|
|
99
|
-
|
|
100
|
-
// Props from up
|
|
101
|
-
const props = defineProps<{
|
|
102
|
-
title: string
|
|
103
|
-
text: string
|
|
104
|
-
stepId: number
|
|
105
|
-
connectionSettings: UI_I_ConnectionSettings
|
|
106
|
-
isShowErrorMessageAlert: boolean
|
|
107
|
-
errorMessages: string[]
|
|
108
|
-
}>()
|
|
109
|
-
|
|
110
|
-
// UI_I_Localization
|
|
111
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
112
|
-
|
|
113
|
-
// Define emits for changing data and validation messages
|
|
114
|
-
const emits = defineEmits<{
|
|
115
|
-
(
|
|
116
|
-
event: 'change-connection-settings',
|
|
117
|
-
connectionSettings: UI_I_ConnectionSettings
|
|
118
|
-
): void
|
|
119
|
-
(
|
|
120
|
-
event: 'change-error-messages',
|
|
121
|
-
errorMessages: string[],
|
|
122
|
-
stepIndex: number
|
|
123
|
-
): void
|
|
124
|
-
(event: 'hide-error-message-alert'): void
|
|
125
|
-
}>()
|
|
126
|
-
|
|
127
|
-
// Component binding data
|
|
128
|
-
const fields = ref<UI_I_ConnectionSettings>({ ...props.connectionSettings })
|
|
129
|
-
|
|
130
|
-
// Validation error check for this step
|
|
131
|
-
const isShowErrorMessage = computed<boolean>(
|
|
132
|
-
() => props.isShowErrorMessageAlert && !!props.errorMessages.length
|
|
133
|
-
)
|
|
134
|
-
|
|
135
|
-
// Validation
|
|
136
|
-
const fieldsErrorMessages = ref<UI_I_ConnectionSettingsFieldsErrorMessages>(
|
|
137
|
-
connectionSettingsFieldsErrorMessages
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
const messageTexts = (
|
|
141
|
-
local: UI_I_Localization
|
|
142
|
-
): UI_I_ArbitraryObject<string> => ({
|
|
143
|
-
networkLabel: local.vlanIdInvalidMessage,
|
|
144
|
-
vlanId: local.networkLabelInvalidMessage,
|
|
145
|
-
})
|
|
146
|
-
|
|
147
|
-
const isNumberInRange = (
|
|
148
|
-
value: number | string,
|
|
149
|
-
down: number,
|
|
150
|
-
up: number
|
|
151
|
-
): boolean => isNaN(Number(value)) || Number(value) < down || Number(value) > up
|
|
152
|
-
|
|
153
|
-
const setMessageOnChangedField = (
|
|
154
|
-
values: string | number,
|
|
155
|
-
name: UI_T_ConnectionSettingsFieldName,
|
|
156
|
-
text: string
|
|
157
|
-
): void => {
|
|
158
|
-
if (name === 'networkLabel' && !values) {
|
|
159
|
-
fieldsErrorMessages.value[name] = text
|
|
160
|
-
return
|
|
161
|
-
}
|
|
162
|
-
if (
|
|
163
|
-
name === 'vlanId' &&
|
|
164
|
-
values !== 'None (0)' &&
|
|
165
|
-
values !== 'All (4095)' &&
|
|
166
|
-
(isNumberInRange(values, 0, 4095) || values === '')
|
|
167
|
-
) {
|
|
168
|
-
fieldsErrorMessages.value[name] = text
|
|
169
|
-
return
|
|
170
|
-
}
|
|
171
|
-
fieldsErrorMessages.value[name] = ''
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Changing data and validate they
|
|
175
|
-
watch(
|
|
176
|
-
fields,
|
|
177
|
-
(newFields: UI_I_ConnectionSettings) => {
|
|
178
|
-
setMessageOnChangedField(
|
|
179
|
-
newFields.vlanId,
|
|
180
|
-
'vlanId',
|
|
181
|
-
messageTexts(localization.value).vlanId
|
|
182
|
-
)
|
|
183
|
-
setMessageOnChangedField(
|
|
184
|
-
newFields.networkLabel,
|
|
185
|
-
'networkLabel',
|
|
186
|
-
messageTexts(localization.value).networkLabel
|
|
187
|
-
)
|
|
188
|
-
const fieldsErrorMessagesFiltered = Object.values(
|
|
189
|
-
fieldsErrorMessages.value
|
|
190
|
-
).filter((v) => v !== '')
|
|
191
|
-
fieldsErrorMessagesFiltered.length === 0 &&
|
|
192
|
-
emits('hide-error-message-alert')
|
|
193
|
-
emits('change-error-messages', fieldsErrorMessagesFiltered, props.stepId)
|
|
194
|
-
emits('change-connection-settings', newFields)
|
|
195
|
-
},
|
|
196
|
-
{ deep: true, immediate: true }
|
|
197
|
-
)
|
|
198
|
-
|
|
199
|
-
// Validation message show and hide
|
|
200
|
-
const onHideErrorMessageAlert = (): void => {
|
|
201
|
-
emits('hide-error-message-alert')
|
|
202
|
-
}
|
|
203
|
-
onUnmounted(() => {
|
|
204
|
-
emits('hide-error-message-alert')
|
|
205
|
-
})
|
|
206
|
-
</script>
|
|
207
|
-
|
|
208
|
-
<style scoped lang="scss">
|
|
209
|
-
.wizard-content-container {
|
|
210
|
-
display: flex;
|
|
211
|
-
flex-direction: column;
|
|
212
|
-
align-items: stretch;
|
|
213
|
-
flex: 1 1 100%;
|
|
214
|
-
box-sizing: border-box;
|
|
215
|
-
padding: 16px 15px 10px 10px;
|
|
216
|
-
overflow-y: auto;
|
|
217
|
-
color: #333;
|
|
218
|
-
order: 2;
|
|
219
|
-
width: 100%;
|
|
220
|
-
}
|
|
221
|
-
</style>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="wizard-content-header-area">
|
|
3
|
-
<div>
|
|
4
|
-
<div class="title">
|
|
5
|
-
{{ props.title }}
|
|
6
|
-
</div>
|
|
7
|
-
<div class="description">
|
|
8
|
-
{{ props.text }}
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
// Props from up
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
title: string
|
|
19
|
-
text: string
|
|
20
|
-
}>()
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style scoped lang="scss">
|
|
24
|
-
.wizard-content-header-area {
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
width: inherit;
|
|
27
|
-
height: auto;
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
padding-bottom: 3px;
|
|
30
|
-
border-bottom: 1px solid #a6a6a6;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.wizard-content-header-area {
|
|
34
|
-
display: flex;
|
|
35
|
-
//padding-top: 12px;
|
|
36
|
-
|
|
37
|
-
.description {
|
|
38
|
-
color: #333333;
|
|
39
|
-
font-size: 13px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.title {
|
|
43
|
-
font-weight: 700;
|
|
44
|
-
font-size: 13px;
|
|
45
|
-
margin: 0;
|
|
46
|
-
color: #333;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.description,
|
|
50
|
-
.select {
|
|
51
|
-
flex: 1 1 100%;
|
|
52
|
-
margin-right: 5px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:deep(select) {
|
|
56
|
-
background-color: transparent;
|
|
57
|
-
border-color: var(--type-list-border-color);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
</style>
|
|
File without changes
|