bfg-common 1.2.189 → 1.2.190
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 +2 -3
- package/assets/localization/local_en.json +2 -3
- package/assets/localization/local_hy.json +2 -3
- package/assets/localization/local_kk.json +2 -3
- package/assets/localization/local_ru.json +2 -3
- package/assets/localization/local_zh.json +2 -3
- package/components/atoms/table/simpleTable/SimpleTable.vue +2 -5
- package/components/atoms/wizard/Wizard.vue +4 -4
- package/components/atoms/wizard/models/interfaces.ts +3 -4
- package/components/atoms/wizard/utils/utils.ts +27 -106
- package/components/common/addNetworking/AddNetworking.vue +1123 -0
- package/components/common/addNetworking/Wizard.vue +286 -0
- package/components/common/{wizards/network/add/config/steps.ts → addNetworking/config/addNetworkingSteps.ts} +60 -107
- package/components/common/{wizards/network/add → addNetworking}/config/index.ts +16 -2
- package/components/common/{wizards/network/add → addNetworking}/config/initialData.ts +19 -4
- package/components/common/{wizards/network/add → addNetworking}/config/portPropertiesStep.ts +1 -1
- package/components/common/{wizards/network/add → addNetworking}/config/selectSwitch.ts +1 -1
- package/components/common/{wizards/network/add → addNetworking}/config/sendData.ts +1 -1
- package/components/common/addNetworking/config/temporaryData.ts +8 -0
- package/components/common/addNetworking/config/validation.ts +23 -0
- package/components/common/{wizards/network/add → addNetworking}/modals/SelectNetwork.vue +2 -2
- package/components/common/{wizards/network/add → addNetworking}/modals/SelectStandardSwitch.vue +2 -2
- package/components/common/{wizards/network/add → addNetworking}/modals/SelectSwitch.vue +2 -2
- package/components/common/addNetworking/models/enums.ts +7 -0
- package/components/common/{wizards/network/add → addNetworking}/models/interfaces.ts +37 -30
- package/components/common/addNetworking/models/types.ts +13 -0
- package/components/common/addNetworking/steps/ConnectionSettings.vue +269 -0
- package/components/common/{wizards/network/add → addNetworking}/steps/CreateStandardSwitch.vue +7 -0
- package/components/common/addNetworking/steps/Header.vue +53 -0
- package/components/common/addNetworking/steps/IpFourSettings.vue +361 -0
- package/components/common/{wizards/network/add → addNetworking}/steps/PhysicalAdapter.vue +12 -1
- package/components/common/{wizards/network/add → addNetworking}/steps/PortProperties.vue +180 -57
- package/components/common/{wizards/network/add → addNetworking}/steps/ReadyComplete.vue +10 -1
- package/components/common/{wizards/network/add → addNetworking}/steps/SelectConnectionType.vue +15 -3
- package/components/common/{wizards/network/add → addNetworking}/steps/SelectedTargetDevice.vue +212 -106
- package/components/common/addNetworking/utils/index.ts +212 -0
- package/components/common/diagramMain/DiagramMain.vue +47 -11
- package/components/common/diagramMain/modals/MigrateVmkernelAdapter.vue +603 -0
- package/components/common/diagramMain/modals/config/index.ts +6 -0
- package/components/common/diagramMain/modals/config/migrateVmkernelAdapterSteps.ts +81 -0
- package/components/common/diagramMain/modals/config/validation.ts +3 -0
- 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 +1 -1
- package/components/common/diagramMain/modals/steps/ConnectionSettings.vue +221 -0
- package/components/common/diagramMain/modals/steps/Header.vue +60 -0
- package/components/common/diagramMain/modals/{migrateVmkernelAdapter/steps → steps}/SelectVmkernelAdapter.vue +86 -24
- package/components/common/diagramMain/modals/{migrateVmkernelAdapter/steps → steps}/VmkernelAdapterReadyComplete.vue +11 -7
- package/components/common/diagramMain/models/enums.ts +7 -6
- package/components/common/diagramMain/models/interfaces.ts +29 -28
- package/components/common/diagramMain/models/types.ts +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +447 -447
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +77 -77
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
- package/package.json +1 -1
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +0 -531
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/config/steps.ts +0 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +0 -161
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +0 -47
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +0 -146
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +0 -54
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +0 -19
- package/components/common/wizards/network/add/Add.vue +0 -874
- package/components/common/wizards/network/add/models/enums.ts +0 -17
- package/components/common/wizards/network/add/models/types.ts +0 -2
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +0 -148
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +0 -245
- package/components/common/wizards/network/add/utils/index.ts +0 -4
- package/components/common/wizards/network/add/validations/common.ts +0 -58
- package/components/common/wizards/network/add/validations/connectionSettings.ts +0 -75
- package/components/common/wizards/network/add/validations/createStandardSwitch.ts +0 -58
- package/components/common/wizards/network/add/validations/ipFourSettings.ts +0 -188
- package/components/common/wizards/network/add/validations/networkValidation.ts +0 -73
- package/components/common/wizards/network/add/validations/portProperties.ts +0 -87
- package/components/common/wizards/network/add/validations/targetDevice.ts +0 -113
- package/components/common/wizards/network/add/validations/validations.ts +0 -43
- /package/components/common/{wizards/network/add → addNetworking}/mappers/mappers.ts +0 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wizard-content-container add-networking-step">
|
|
3
|
+
<common-add-networking-steps-header
|
|
4
|
+
:title="props.title"
|
|
5
|
+
:text="props.text"
|
|
6
|
+
/>
|
|
3
7
|
<div class="wizard-content wizard-content-port">
|
|
4
8
|
<atoms-alert
|
|
5
|
-
v-if="
|
|
9
|
+
v-if="hasValidationError"
|
|
6
10
|
status="alert-danger"
|
|
7
|
-
:items="props.
|
|
8
|
-
@remove="
|
|
11
|
+
:items="props.errorMessages"
|
|
12
|
+
@remove="onHideErrorMessageAlert"
|
|
9
13
|
/>
|
|
10
14
|
<form>
|
|
11
15
|
<b class="property-label-group">
|
|
@@ -20,7 +24,7 @@
|
|
|
20
24
|
<div class="property-value-group">
|
|
21
25
|
<fieldset>
|
|
22
26
|
<atoms-tooltip-error
|
|
23
|
-
:has-error="!!
|
|
27
|
+
:has-error="!!fieldsErrorMessages.networkLabel"
|
|
24
28
|
>
|
|
25
29
|
<template #elem>
|
|
26
30
|
<input
|
|
@@ -31,15 +35,14 @@
|
|
|
31
35
|
:class="[
|
|
32
36
|
'tooltip-field port-properties-network-label',
|
|
33
37
|
{
|
|
34
|
-
'danger-not-valid':
|
|
35
|
-
props.messagesFields.network_name.field,
|
|
38
|
+
'danger-not-valid': fieldsErrorMessages.networkLabel,
|
|
36
39
|
},
|
|
37
40
|
]"
|
|
38
41
|
@click.stop
|
|
39
42
|
/>
|
|
40
43
|
</template>
|
|
41
44
|
<template #content>
|
|
42
|
-
{{
|
|
45
|
+
{{ fieldsErrorMessages.networkLabel }}
|
|
43
46
|
</template>
|
|
44
47
|
</atoms-tooltip-error>
|
|
45
48
|
</fieldset>
|
|
@@ -58,13 +61,12 @@
|
|
|
58
61
|
v-model="fields.vlanId"
|
|
59
62
|
:items="vlanIdSelectData"
|
|
60
63
|
:class="{
|
|
61
|
-
'danger-not-valid':
|
|
62
|
-
props.messagesFields['new_network.vlan'].field,
|
|
64
|
+
'danger-not-valid': fieldsErrorMessages.vlanId,
|
|
63
65
|
}"
|
|
64
66
|
@click.stop
|
|
65
67
|
/>
|
|
66
68
|
<div
|
|
67
|
-
v-show="
|
|
69
|
+
v-show="fieldsErrorMessages.vlanId"
|
|
68
70
|
class="flex-align-center"
|
|
69
71
|
>
|
|
70
72
|
<div class="tooltip flex align-middle">
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
name="info"
|
|
76
78
|
/>
|
|
77
79
|
<div class="tooltip-top-left tooltip-content error">
|
|
78
|
-
{{
|
|
80
|
+
{{ fieldsErrorMessages.vlanId }}
|
|
79
81
|
</div>
|
|
80
82
|
</div>
|
|
81
83
|
</div>
|
|
@@ -99,9 +101,7 @@
|
|
|
99
101
|
<option value="1">{{ localization.custom }}</option>
|
|
100
102
|
</select>
|
|
101
103
|
</div>
|
|
102
|
-
<atoms-tooltip-error
|
|
103
|
-
:has-error="!!props.messagesFields.mtu.field"
|
|
104
|
-
>
|
|
104
|
+
<atoms-tooltip-error :has-error="!!fieldsErrorMessages.mtu">
|
|
105
105
|
<template #elem>
|
|
106
106
|
<input
|
|
107
107
|
id="mtu"
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
'tooltip-field show-arrow',
|
|
113
113
|
{
|
|
114
114
|
disabled: fields.mtu.option === '0',
|
|
115
|
-
'danger-not-valid':
|
|
115
|
+
'danger-not-valid': fieldsErrorMessages.mtu,
|
|
116
116
|
},
|
|
117
117
|
]"
|
|
118
118
|
@click.stop
|
|
119
119
|
/>
|
|
120
120
|
</template>
|
|
121
121
|
<template #content>
|
|
122
|
-
{{
|
|
122
|
+
{{ fieldsErrorMessages.mtu }}
|
|
123
123
|
</template>
|
|
124
124
|
</atoms-tooltip-error>
|
|
125
125
|
</div>
|
|
@@ -205,45 +205,74 @@ import { UI_T_Project } from '~/models/types'
|
|
|
205
205
|
import {
|
|
206
206
|
servicesInitial,
|
|
207
207
|
vlanIdSelectData,
|
|
208
|
+
portPropertiesFieldsErrorMessages,
|
|
208
209
|
portPropertiesEnabledServicesFunc,
|
|
209
|
-
} from '~/components/common/
|
|
210
|
-
import {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
} from '~/components/common/addNetworking/config'
|
|
211
|
+
import {
|
|
212
|
+
UI_I_PortProperties,
|
|
213
|
+
UI_I_PortPropertiesFieldsErrorMessages,
|
|
214
|
+
} from '~/components/common/addNetworking/models/interfaces'
|
|
214
215
|
import {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
} from '~/components/common/wizards/network/add/validations/validations'
|
|
216
|
+
UI_T_PortPropertiesFieldName,
|
|
217
|
+
UI_T_TCP,
|
|
218
|
+
} from '~/components/common/addNetworking/models/types'
|
|
219
219
|
|
|
220
|
+
// Props from up
|
|
220
221
|
const props = withDefaults(
|
|
221
222
|
defineProps<{
|
|
223
|
+
title: string
|
|
224
|
+
text: string
|
|
225
|
+
stepId: number
|
|
222
226
|
portProperties: UI_I_PortProperties
|
|
223
|
-
|
|
227
|
+
isShowErrorMessageAlert: boolean
|
|
228
|
+
errorMessages: string[]
|
|
229
|
+
networkLabelExistingErrorMessage: string
|
|
230
|
+
mtuFromSwitch: number
|
|
231
|
+
error: UI_I_ArbitraryObject<string>
|
|
224
232
|
project: UI_T_Project
|
|
225
|
-
alertMessages: string[]
|
|
226
|
-
messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
227
|
-
wizard: Wizard
|
|
228
233
|
}>(),
|
|
229
234
|
{
|
|
230
235
|
mtuFromSwitch: 1500,
|
|
231
236
|
}
|
|
232
237
|
)
|
|
233
238
|
|
|
239
|
+
// UI_I_Localization
|
|
234
240
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
235
241
|
|
|
236
242
|
const isSphereProject = computed<boolean>(() => props.project === 'sphere')
|
|
237
243
|
|
|
244
|
+
// Making port properties enabled services template
|
|
238
245
|
const portPropertiesEnabledServices = computed(() =>
|
|
239
246
|
portPropertiesEnabledServicesFunc(localization.value, isSphereProject.value)
|
|
240
247
|
)
|
|
241
248
|
|
|
249
|
+
// Define emits for changing data and validation messages
|
|
242
250
|
const emits = defineEmits<{
|
|
243
251
|
(event: 'change-port-properties', portProperties: UI_I_PortProperties): void
|
|
244
|
-
(
|
|
252
|
+
(
|
|
253
|
+
event: 'change-error-messages',
|
|
254
|
+
errorMessages: string[],
|
|
255
|
+
stepIndex: number
|
|
256
|
+
): void
|
|
257
|
+
(event: 'hide-error-message-alert'): void
|
|
258
|
+
(event: 'set-error-empty', fieldName: string): void
|
|
245
259
|
}>()
|
|
246
260
|
|
|
261
|
+
// Checking network label existing
|
|
262
|
+
watch(
|
|
263
|
+
() => props.networkLabelExistingErrorMessage,
|
|
264
|
+
(newValue: string) => {
|
|
265
|
+
if (fieldsErrorMessages.value.networkLabel) return
|
|
266
|
+
|
|
267
|
+
fieldsErrorMessages.value.networkLabel = newValue
|
|
268
|
+
}
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
// Validation error check for this step
|
|
272
|
+
const hasValidationError = computed<boolean>(
|
|
273
|
+
() => props.isShowErrorMessageAlert && !!props.errorMessages.length
|
|
274
|
+
)
|
|
275
|
+
|
|
247
276
|
const mtuCustom = ref<number>()
|
|
248
277
|
|
|
249
278
|
const fields = ref<UI_I_PortProperties>({
|
|
@@ -257,6 +286,56 @@ const fields = ref<UI_I_PortProperties>({
|
|
|
257
286
|
},
|
|
258
287
|
})
|
|
259
288
|
|
|
289
|
+
const fieldsErrorMessages = ref<UI_I_PortPropertiesFieldsErrorMessages>(
|
|
290
|
+
portPropertiesFieldsErrorMessages
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
const messageTexts = (
|
|
294
|
+
local: UI_I_Localization
|
|
295
|
+
): UI_I_ArbitraryObject<string> => ({
|
|
296
|
+
networkLabel: local.networkLabelInvalidMessage,
|
|
297
|
+
vlanId: local.vlanIdInvalidMessage,
|
|
298
|
+
mtu: local.mtuInvalidMessage,
|
|
299
|
+
})
|
|
300
|
+
const isNumberInRange = (value: number | string, down: number, up: number) =>
|
|
301
|
+
isNaN(Number(value)) || Number(value) < down || Number(value) > up
|
|
302
|
+
|
|
303
|
+
const setMessageOnChangedField = (
|
|
304
|
+
values: UI_I_PortProperties,
|
|
305
|
+
name: UI_T_PortPropertiesFieldName,
|
|
306
|
+
text: string
|
|
307
|
+
): void => {
|
|
308
|
+
if (
|
|
309
|
+
name === 'mtu' &&
|
|
310
|
+
values.mtu.option === '1' &&
|
|
311
|
+
isNumberInRange(values.mtu.size, 1280, 65535)
|
|
312
|
+
) {
|
|
313
|
+
fieldsErrorMessages.value[name] = text
|
|
314
|
+
return
|
|
315
|
+
} else if (name === 'mtu' && !props.error.mtu) {
|
|
316
|
+
fieldsErrorMessages.value[name] = ''
|
|
317
|
+
return
|
|
318
|
+
}
|
|
319
|
+
if (name === 'networkLabel' && !values.networkLabel) {
|
|
320
|
+
fieldsErrorMessages.value[name] = text
|
|
321
|
+
return
|
|
322
|
+
} else if (name === 'networkLabel' && !props.error.network_name) {
|
|
323
|
+
fieldsErrorMessages.value[name] = ''
|
|
324
|
+
return
|
|
325
|
+
}
|
|
326
|
+
if (
|
|
327
|
+
name === 'vlanId' &&
|
|
328
|
+
values.vlanId !== 'None (0)' &&
|
|
329
|
+
values.vlanId !== 'All (4095)' &&
|
|
330
|
+
(isNumberInRange(values.vlanId, 0, 4095) || values.vlanId === '')
|
|
331
|
+
) {
|
|
332
|
+
fieldsErrorMessages.value[name] = text
|
|
333
|
+
} else if (name === 'vlanId' && !props.error['new_network.vlan']) {
|
|
334
|
+
fieldsErrorMessages.value[name] = ''
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// Setting enabled services type depends on tcp value
|
|
260
339
|
const setEnabledServiceDefault = (
|
|
261
340
|
tcp: UI_T_TCP,
|
|
262
341
|
currentFields: UI_I_PortProperties
|
|
@@ -267,7 +346,6 @@ const setEnabledServiceDefault = (
|
|
|
267
346
|
services: servicesInitial,
|
|
268
347
|
})
|
|
269
348
|
}
|
|
270
|
-
|
|
271
349
|
const setEnabledServiceProvisioning = (
|
|
272
350
|
tcp: UI_T_TCP,
|
|
273
351
|
currentFields: UI_I_PortProperties,
|
|
@@ -282,7 +360,6 @@ const setEnabledServiceProvisioning = (
|
|
|
282
360
|
},
|
|
283
361
|
})
|
|
284
362
|
}
|
|
285
|
-
|
|
286
363
|
const setEnabledServiceVMotion = (
|
|
287
364
|
tcp: UI_T_TCP,
|
|
288
365
|
currentFields: UI_I_PortProperties,
|
|
@@ -298,40 +375,82 @@ const setEnabledServiceVMotion = (
|
|
|
298
375
|
})
|
|
299
376
|
}
|
|
300
377
|
|
|
301
|
-
|
|
378
|
+
watch(
|
|
379
|
+
() => props.error,
|
|
380
|
+
(newError) => {
|
|
381
|
+
fieldsErrorMessages.value = {
|
|
382
|
+
networkLabel: newError.network_name,
|
|
383
|
+
vlanId: newError['new_network.vlan'],
|
|
384
|
+
mtu: newError.mtu,
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const fieldsErrorMessagesFiltered = Object.values(
|
|
388
|
+
fieldsErrorMessages.value
|
|
389
|
+
).filter(
|
|
390
|
+
(errorMessage: string | undefined) =>
|
|
391
|
+
errorMessage !== '' && errorMessage !== undefined
|
|
392
|
+
)
|
|
393
|
+
|
|
394
|
+
emits('change-error-messages', fieldsErrorMessagesFiltered, props.stepId)
|
|
395
|
+
},
|
|
396
|
+
{ deep: true, immediate: true }
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
const oldFields = ref<any>(useDeepCopy(fields.value))
|
|
400
|
+
|
|
401
|
+
const cacheOldFields = (newFields: UI_I_PortProperties): void => {
|
|
402
|
+
oldFields.value = useDeepCopy(newFields)
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
const setErrorEmpty = (
|
|
406
|
+
newValue: UI_I_PortProperties,
|
|
407
|
+
oldValue: UI_I_PortProperties,
|
|
408
|
+
fieldName: keyof UI_I_PortProperties,
|
|
409
|
+
errFieldName: string
|
|
410
|
+
): void => {
|
|
411
|
+
newValue[fieldName] !== oldValue[fieldName] &&
|
|
412
|
+
emits('set-error-empty', errFieldName)
|
|
413
|
+
}
|
|
302
414
|
|
|
303
415
|
// Changing data and validate they
|
|
304
416
|
watch(
|
|
305
417
|
fields,
|
|
306
418
|
(newFields: UI_I_PortProperties) => {
|
|
419
|
+
setErrorEmpty(newFields, oldFields.value, 'networkLabel', 'network_name')
|
|
420
|
+
setErrorEmpty(newFields, oldFields.value, 'vlanId', 'new_network.vlan')
|
|
421
|
+
newFields.mtu.size !== oldFields.value.mtu.size &&
|
|
422
|
+
emits('set-error-empty', 'mtu')
|
|
423
|
+
|
|
424
|
+
cacheOldFields(newFields)
|
|
425
|
+
|
|
426
|
+
setMessageOnChangedField(
|
|
427
|
+
newFields,
|
|
428
|
+
'mtu',
|
|
429
|
+
messageTexts(localization.value).mtu
|
|
430
|
+
)
|
|
431
|
+
setMessageOnChangedField(
|
|
432
|
+
newFields,
|
|
433
|
+
'vlanId',
|
|
434
|
+
messageTexts(localization.value).vlanId
|
|
435
|
+
)
|
|
436
|
+
setMessageOnChangedField(
|
|
437
|
+
newFields,
|
|
438
|
+
'networkLabel',
|
|
439
|
+
messageTexts(localization.value).networkLabel
|
|
440
|
+
)
|
|
307
441
|
if (newFields.tcp && newFields.tcp !== fields.value.tcp) {
|
|
308
442
|
setEnabledServiceProvisioning(newFields.tcp, fields.value, newFields)
|
|
309
443
|
setEnabledServiceVMotion(newFields.tcp, fields.value, newFields)
|
|
310
444
|
}
|
|
311
445
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
newFields,
|
|
316
|
-
props.wizard
|
|
317
|
-
)
|
|
318
|
-
|
|
319
|
-
oldFields.vlanId !== newFields.vlanId &&
|
|
320
|
-
validateVlanIdPortPropertiesLocal(
|
|
321
|
-
localization.value,
|
|
322
|
-
newFields,
|
|
323
|
-
props.wizard
|
|
324
|
-
)
|
|
325
|
-
|
|
326
|
-
oldFields.mtu.size !== newFields.mtu.size &&
|
|
327
|
-
validateMtuPortPropertiesLocal(
|
|
328
|
-
localization.value,
|
|
329
|
-
newFields,
|
|
330
|
-
props.wizard
|
|
331
|
-
)
|
|
332
|
-
|
|
333
|
-
oldFields = useDeepCopy(newFields)
|
|
446
|
+
const fieldsErrorMessagesFiltered = Object.values(
|
|
447
|
+
fieldsErrorMessages.value
|
|
448
|
+
).filter((errorMessage: string) => errorMessage !== '')
|
|
334
449
|
|
|
450
|
+
fieldsErrorMessagesFiltered.length === 0 &&
|
|
451
|
+
emits('hide-error-message-alert')
|
|
452
|
+
|
|
453
|
+
emits('change-error-messages', fieldsErrorMessagesFiltered, props.stepId)
|
|
335
454
|
emits('change-port-properties', newFields)
|
|
336
455
|
},
|
|
337
456
|
{ deep: true, immediate: true }
|
|
@@ -363,7 +482,11 @@ watch(
|
|
|
363
482
|
}
|
|
364
483
|
)
|
|
365
484
|
|
|
366
|
-
|
|
367
|
-
|
|
485
|
+
// Validation message show and hide
|
|
486
|
+
const onHideErrorMessageAlert = (): void => {
|
|
487
|
+
emits('hide-error-message-alert')
|
|
368
488
|
}
|
|
489
|
+
onUnmounted(() => {
|
|
490
|
+
emits('hide-error-message-alert')
|
|
491
|
+
})
|
|
369
492
|
</script>
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wizard-content-container add-networking-step">
|
|
3
|
+
<common-add-networking-steps-header
|
|
4
|
+
:title="props.title"
|
|
5
|
+
:text="props.text"
|
|
6
|
+
/>
|
|
3
7
|
<template
|
|
4
8
|
v-for="readyCompleteField in props.readyCompleteFields"
|
|
5
9
|
:key="readyCompleteField.id"
|
|
6
10
|
>
|
|
7
11
|
<common-diagram-main-modals-view-settings
|
|
12
|
+
modal-name=""
|
|
8
13
|
:view-settings-field="readyCompleteField"
|
|
9
14
|
/>
|
|
10
15
|
</template>
|
|
@@ -12,9 +17,13 @@
|
|
|
12
17
|
</template>
|
|
13
18
|
|
|
14
19
|
<script setup lang="ts">
|
|
15
|
-
import { UI_I_ReadyCompleteFields } from '~/components/common/
|
|
20
|
+
import { UI_I_ReadyCompleteFields } from '~/components/common/addNetworking/models/interfaces'
|
|
16
21
|
|
|
22
|
+
// Props from up
|
|
17
23
|
const props = defineProps<{
|
|
24
|
+
title: string
|
|
25
|
+
text: string
|
|
26
|
+
stepId: number
|
|
18
27
|
readyCompleteFields: UI_I_ReadyCompleteFields[]
|
|
19
28
|
}>()
|
|
20
29
|
</script>
|
package/components/common/{wizards/network/add → addNetworking}/steps/SelectConnectionType.vue
RENAMED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wizard-content-container add-networking-step">
|
|
3
|
+
<common-add-networking-steps-header
|
|
4
|
+
:title="props.title"
|
|
5
|
+
:text="props.text"
|
|
6
|
+
/>
|
|
3
7
|
<div class="wizard-content">
|
|
4
8
|
<form @change="onChangeConnectionType">
|
|
5
9
|
<div class="radio">
|
|
@@ -55,18 +59,23 @@
|
|
|
55
59
|
<script setup lang="ts">
|
|
56
60
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
57
61
|
|
|
62
|
+
// Props from up
|
|
58
63
|
const props = defineProps<{
|
|
64
|
+
title: string
|
|
65
|
+
text: string
|
|
66
|
+
stepId: number
|
|
59
67
|
connectionType: string
|
|
60
68
|
}>()
|
|
61
69
|
|
|
70
|
+
// UI_I_Localization
|
|
62
71
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
63
72
|
|
|
73
|
+
// Changing data
|
|
64
74
|
const emits = defineEmits<{
|
|
65
75
|
(event: 'change-connection-type', connectionType: string): void
|
|
66
76
|
}>()
|
|
67
|
-
const onChangeConnectionType = (newConnectionType:
|
|
68
|
-
|
|
69
|
-
emits('change-connection-type', target?.value)
|
|
77
|
+
const onChangeConnectionType = (newConnectionType: any): void => {
|
|
78
|
+
emits('change-connection-type', newConnectionType.target.value)
|
|
70
79
|
}
|
|
71
80
|
</script>
|
|
72
81
|
|
|
@@ -75,6 +84,7 @@ const onChangeConnectionType = (newConnectionType: Event): void => {
|
|
|
75
84
|
height: auto;
|
|
76
85
|
width: inherit;
|
|
77
86
|
margin: 0;
|
|
87
|
+
padding-top: 12px;
|
|
78
88
|
|
|
79
89
|
.radio {
|
|
80
90
|
min-height: 20px;
|
|
@@ -91,4 +101,6 @@ const onChangeConnectionType = (newConnectionType: Event): void => {
|
|
|
91
101
|
color: #333;
|
|
92
102
|
}
|
|
93
103
|
}
|
|
104
|
+
|
|
105
|
+
|
|
94
106
|
</style>
|