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,476 +1,483 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="{
|
|
4
|
-
'is-manager-step':
|
|
5
|
-
props.wizard.selectedStepId === 2 || props.wizard.selectedStepId === 6,
|
|
6
|
-
}"
|
|
7
|
-
>
|
|
8
|
-
<ui-wizard
|
|
9
|
-
:show="props.show"
|
|
10
|
-
:steps="props.wizard.steps"
|
|
11
|
-
:selected-scheme="props.selectedScheme"
|
|
12
|
-
:is-loading="props.wizard.wizardLoader.status"
|
|
13
|
-
:title="localization.common.addNetworking"
|
|
14
|
-
:sub-title="props.hostName"
|
|
15
|
-
:texts="texts"
|
|
16
|
-
test-id="add-networking-wizard"
|
|
17
|
-
@change-steps="onChangeSteps"
|
|
18
|
-
@hide="emits('hide')"
|
|
19
|
-
@submit="emits('submit')"
|
|
20
|
-
>
|
|
21
|
-
<template #content="{ selectedStep }">
|
|
22
|
-
<ui-wizard-block
|
|
23
|
-
v-if="selectedStep.id === 0"
|
|
24
|
-
:sub-title-height="selectConnectionTypeHeight"
|
|
25
|
-
>
|
|
26
|
-
<template #subTitle>
|
|
27
|
-
<div ref="selectConnectionTypeBlock">
|
|
28
|
-
<div class="subtitle-block flex flex-col">
|
|
29
|
-
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
30
|
-
<ui-line margin="12px 0 0" />
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
<template #content>
|
|
35
|
-
<common-wizards-network-add-steps-select-connection-type
|
|
36
|
-
v-model="connectionTypeLocal"
|
|
37
|
-
/>
|
|
38
|
-
</template>
|
|
39
|
-
</ui-wizard-block>
|
|
40
|
-
|
|
41
|
-
<ui-wizard-block
|
|
42
|
-
v-if="selectedStep.id === 1"
|
|
43
|
-
:sub-title-height="selectTargetDeviceHeight"
|
|
44
|
-
>
|
|
45
|
-
<template #subTitle>
|
|
46
|
-
<div ref="selectTargetDeviceBlock">
|
|
47
|
-
<div class="subtitle-block flex flex-col">
|
|
48
|
-
<template
|
|
49
|
-
v-for="(message, field) in selectedStep.fields"
|
|
50
|
-
:key="
|
|
51
|
-
>
|
|
52
|
-
<ui-alert
|
|
53
|
-
:messages="[message.alert]"
|
|
54
|
-
test-id="select-target-device-alert"
|
|
55
|
-
:class="{
|
|
56
|
-
'mb-4':
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<ui-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
:
|
|
71
|
-
:
|
|
72
|
-
:
|
|
73
|
-
:
|
|
74
|
-
:
|
|
75
|
-
:
|
|
76
|
-
:selected-switch-id="props.
|
|
77
|
-
:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
:
|
|
116
|
-
:
|
|
117
|
-
:adapters="props.
|
|
118
|
-
:
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
@
|
|
128
|
-
@
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
:
|
|
173
|
-
:
|
|
174
|
-
:
|
|
175
|
-
:
|
|
176
|
-
:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
:
|
|
217
|
-
:
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
import
|
|
293
|
-
import type {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
(event: '
|
|
348
|
-
(event: 'change-
|
|
349
|
-
(event: '
|
|
350
|
-
(event: '
|
|
351
|
-
(event: '
|
|
352
|
-
(event: 'change-
|
|
353
|
-
(event: '
|
|
354
|
-
(event: '
|
|
355
|
-
(event: '
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
)
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="{
|
|
4
|
+
'is-manager-step':
|
|
5
|
+
props.wizard.selectedStepId === 2 || props.wizard.selectedStepId === 6,
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
8
|
+
<ui-wizard
|
|
9
|
+
:show="props.show"
|
|
10
|
+
:steps="props.wizard.steps"
|
|
11
|
+
:selected-scheme="props.selectedScheme"
|
|
12
|
+
:is-loading="props.wizard.wizardLoader.status"
|
|
13
|
+
:title="localization.common.addNetworking"
|
|
14
|
+
:sub-title="props.hostName"
|
|
15
|
+
:texts="texts"
|
|
16
|
+
test-id="add-networking-wizard"
|
|
17
|
+
@change-steps="onChangeSteps"
|
|
18
|
+
@hide="emits('hide')"
|
|
19
|
+
@submit="emits('submit')"
|
|
20
|
+
>
|
|
21
|
+
<template #content="{ selectedStep }">
|
|
22
|
+
<ui-wizard-block
|
|
23
|
+
v-if="selectedStep.id === 0"
|
|
24
|
+
:sub-title-height="selectConnectionTypeHeight"
|
|
25
|
+
>
|
|
26
|
+
<template #subTitle>
|
|
27
|
+
<div ref="selectConnectionTypeBlock">
|
|
28
|
+
<div class="subtitle-block flex flex-col">
|
|
29
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
30
|
+
<ui-line margin="12px 0 0" />
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<template #content>
|
|
35
|
+
<common-wizards-network-add-steps-select-connection-type
|
|
36
|
+
v-model="connectionTypeLocal"
|
|
37
|
+
/>
|
|
38
|
+
</template>
|
|
39
|
+
</ui-wizard-block>
|
|
40
|
+
|
|
41
|
+
<ui-wizard-block
|
|
42
|
+
v-if="selectedStep.id === 1"
|
|
43
|
+
:sub-title-height="selectTargetDeviceHeight"
|
|
44
|
+
>
|
|
45
|
+
<template #subTitle>
|
|
46
|
+
<div ref="selectTargetDeviceBlock">
|
|
47
|
+
<div class="subtitle-block flex flex-col">
|
|
48
|
+
<template
|
|
49
|
+
v-for="(message, field, key) in selectedStep.fields"
|
|
50
|
+
:key="key"
|
|
51
|
+
>
|
|
52
|
+
<ui-alert
|
|
53
|
+
:messages="[message.alert]"
|
|
54
|
+
test-id="select-target-device-alert"
|
|
55
|
+
:class="{
|
|
56
|
+
'mb-4':
|
|
57
|
+
props.alertMessages[selectedStep.id].length - 1 === key,
|
|
58
|
+
}"
|
|
59
|
+
size="md"
|
|
60
|
+
@hide="emits('hide-alert', selectedStep.id, field)"
|
|
61
|
+
/>
|
|
62
|
+
</template>
|
|
63
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
64
|
+
<ui-line margin="12px 0 0" />
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
<template #content>
|
|
69
|
+
<common-wizards-network-add-steps-select-target-device
|
|
70
|
+
:wizard="props.wizard"
|
|
71
|
+
:target-device="props.targetDevice"
|
|
72
|
+
:connection-type="connectionTypeLocal"
|
|
73
|
+
:standard-switches-initial="props.standardSwitchesInitial"
|
|
74
|
+
:messages-fields="selectedStep.fields"
|
|
75
|
+
:alert-messages="props.alertMessages[selectedStep.id]"
|
|
76
|
+
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
|
77
|
+
:selected-switch-id="props.selectedSwitchId"
|
|
78
|
+
:is-get-existing-switches-loading="
|
|
79
|
+
props.isGetExistingSwitchesLoading
|
|
80
|
+
"
|
|
81
|
+
@change-target-device="onChangeTargetDevice"
|
|
82
|
+
/>
|
|
83
|
+
</template>
|
|
84
|
+
</ui-wizard-block>
|
|
85
|
+
|
|
86
|
+
<ui-wizard-block
|
|
87
|
+
v-if="selectedStep.id === 2 || selectedStep.id === 6"
|
|
88
|
+
:sub-title-height="createStandardSwitchHeight"
|
|
89
|
+
>
|
|
90
|
+
<template #subTitle>
|
|
91
|
+
<div ref="createStandardSwitchBlock">
|
|
92
|
+
<div class="subtitle-block flex flex-col">
|
|
93
|
+
<template
|
|
94
|
+
v-for="(message, field, key) in selectedStep.fields"
|
|
95
|
+
:key="key"
|
|
96
|
+
>
|
|
97
|
+
<ui-alert
|
|
98
|
+
:messages="[message.alert]"
|
|
99
|
+
test-id="create-standard-switch-alert"
|
|
100
|
+
:class="{
|
|
101
|
+
'mb-4':
|
|
102
|
+
props.alertMessages[selectedStep.id].length - 1 === key,
|
|
103
|
+
}"
|
|
104
|
+
size="md"
|
|
105
|
+
@hide="emits('hide-alert', selectedStep.id, field)"
|
|
106
|
+
/>
|
|
107
|
+
</template>
|
|
108
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
109
|
+
<ui-line margin="12px 0 0" />
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</template>
|
|
113
|
+
<template #content>
|
|
114
|
+
<common-wizards-network-add-steps-create-standard-switch
|
|
115
|
+
:free-adapters="props.freeAdapters"
|
|
116
|
+
:added-adapters="props.addedAdapters"
|
|
117
|
+
:core-adapters="props.coreAdapters"
|
|
118
|
+
:adapter-status="props.adapterStatus"
|
|
119
|
+
:adapters="props.adapters"
|
|
120
|
+
:is-show-no-connected-active-adapters-modal="
|
|
121
|
+
props.isShowNoConnectedActiveAdaptersModal
|
|
122
|
+
"
|
|
123
|
+
:is-show-no-active-adapters-modal="
|
|
124
|
+
props.isShowNoActiveAdaptersModal
|
|
125
|
+
"
|
|
126
|
+
:is-dark-mode="props.isDarkMode"
|
|
127
|
+
@get-free-adapters="onGetFreeAdapters"
|
|
128
|
+
@change-added-adapters="onChangeAddedAdapters"
|
|
129
|
+
@change-adapter-status="onChangeAdapterStatus"
|
|
130
|
+
@confirm-no-active-adapters-modal="
|
|
131
|
+
emits('confirm-no-active-adapters-modal')
|
|
132
|
+
"
|
|
133
|
+
@hide-no-connected-active-adapters-modal="
|
|
134
|
+
emits('hide-no-connected-active-adapters-modal')
|
|
135
|
+
"
|
|
136
|
+
@hide-no-active-adapters-modal="
|
|
137
|
+
emits('hide-no-active-adapters-modal')
|
|
138
|
+
"
|
|
139
|
+
/>
|
|
140
|
+
</template>
|
|
141
|
+
</ui-wizard-block>
|
|
142
|
+
|
|
143
|
+
<ui-wizard-block
|
|
144
|
+
v-if="selectedStep.id === 3"
|
|
145
|
+
:sub-title-height="portPropertiesHeight"
|
|
146
|
+
>
|
|
147
|
+
<template #subTitle>
|
|
148
|
+
<div ref="portPropertiesBlock">
|
|
149
|
+
<div class="subtitle-block flex flex-col">
|
|
150
|
+
<template
|
|
151
|
+
v-for="(message, field, key) in selectedStep.fields"
|
|
152
|
+
:key="key"
|
|
153
|
+
>
|
|
154
|
+
<ui-alert
|
|
155
|
+
:messages="[message.alert]"
|
|
156
|
+
test-id="port-properties-alert"
|
|
157
|
+
:class="{
|
|
158
|
+
'mb-4':
|
|
159
|
+
props.alertMessages[selectedStep.id].length - 1 === key,
|
|
160
|
+
}"
|
|
161
|
+
size="md"
|
|
162
|
+
@hide="emits('hide-alert', selectedStep.id, field)"
|
|
163
|
+
/>
|
|
164
|
+
</template>
|
|
165
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
166
|
+
<ui-line margin="12px 0 0" />
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</template>
|
|
170
|
+
<template #content>
|
|
171
|
+
<common-wizards-network-add-steps-port-properties
|
|
172
|
+
:wizard="props.wizard"
|
|
173
|
+
:port-properties="props.portProperties"
|
|
174
|
+
:mtu-from-switch="props.mtuFromSwitch"
|
|
175
|
+
:project="props.project"
|
|
176
|
+
:messages-fields="selectedStep.fields"
|
|
177
|
+
:alert-messages="props.alertMessages[selectedStep.id]"
|
|
178
|
+
:tcp-stacks="props.tcpStacks"
|
|
179
|
+
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
180
|
+
:is-processing="props.wizard.wizardLoader.status"
|
|
181
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
|
182
|
+
@change-port-properties="onChangePortProperties"
|
|
183
|
+
/>
|
|
184
|
+
</template>
|
|
185
|
+
</ui-wizard-block>
|
|
186
|
+
|
|
187
|
+
<ui-wizard-block
|
|
188
|
+
v-if="selectedStep.id === 4"
|
|
189
|
+
:sub-title-height="ipFourSettingsHeight"
|
|
190
|
+
>
|
|
191
|
+
<template #subTitle>
|
|
192
|
+
<div ref="ipFourSettingsBlock">
|
|
193
|
+
<div class="subtitle-block flex flex-col">
|
|
194
|
+
<template
|
|
195
|
+
v-for="(message, field, key) in selectedStep.fields"
|
|
196
|
+
:key="key"
|
|
197
|
+
>
|
|
198
|
+
<ui-alert
|
|
199
|
+
:messages="[message.alert]"
|
|
200
|
+
test-id="ip-four-settings-alert"
|
|
201
|
+
:class="{
|
|
202
|
+
'mb-4':
|
|
203
|
+
props.alertMessages[selectedStep.id].length - 1 === key,
|
|
204
|
+
}"
|
|
205
|
+
size="md"
|
|
206
|
+
@hide="emits('hide-alert', selectedStep.id, field)"
|
|
207
|
+
/>
|
|
208
|
+
</template>
|
|
209
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
210
|
+
<ui-line margin="12px 0 0" />
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
</template>
|
|
214
|
+
<template #content>
|
|
215
|
+
<common-wizards-network-add-steps-ip-four-settings
|
|
216
|
+
:wizard="props.wizard"
|
|
217
|
+
:ip-four-settings="props.ipFourSettings"
|
|
218
|
+
:messages-fields="selectedStep.fields"
|
|
219
|
+
:alert-messages="props.alertMessages[selectedStep.id]"
|
|
220
|
+
:tcp-stacks="props.tcpStacks"
|
|
221
|
+
:tcp="props.portProperties.tcp"
|
|
222
|
+
:gateway-flag="props.gatewayFlag"
|
|
223
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
|
224
|
+
@change-ip-four-settings="onChangeIpFourSettings"
|
|
225
|
+
/>
|
|
226
|
+
</template>
|
|
227
|
+
</ui-wizard-block>
|
|
228
|
+
|
|
229
|
+
<ui-wizard-block
|
|
230
|
+
v-if="selectedStep.id === 5"
|
|
231
|
+
:sub-title-height="connectionSettingsHeight"
|
|
232
|
+
>
|
|
233
|
+
<template #subTitle>
|
|
234
|
+
<div ref="connectionSettingsBlock">
|
|
235
|
+
<div class="subtitle-block flex flex-col">
|
|
236
|
+
<template
|
|
237
|
+
v-for="(message, field, key) in selectedStep.fields"
|
|
238
|
+
:key="key"
|
|
239
|
+
>
|
|
240
|
+
<ui-alert
|
|
241
|
+
:messages="[message.alert]"
|
|
242
|
+
test-id="connection-settings-alert"
|
|
243
|
+
:class="{
|
|
244
|
+
'mb-4':
|
|
245
|
+
props.alertMessages[selectedStep.id].length - 1 === key,
|
|
246
|
+
}"
|
|
247
|
+
size="md"
|
|
248
|
+
@hide="emits('hide-alert', selectedStep.id, field)"
|
|
249
|
+
/>
|
|
250
|
+
</template>
|
|
251
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
252
|
+
<ui-line margin="12px 0 0" />
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</template>
|
|
256
|
+
<template #content>
|
|
257
|
+
<common-wizards-network-add-steps-connection-settings
|
|
258
|
+
:wizard="props.wizard"
|
|
259
|
+
:connection-settings="props.connectionSettings"
|
|
260
|
+
:is-processing="props.wizard.wizardLoader.status"
|
|
261
|
+
:messages-fields="selectedStep.fields"
|
|
262
|
+
:alert-messages="props.alertMessages[selectedStep.id]"
|
|
263
|
+
@change-connection-settings="onChangeConnectionSettings"
|
|
264
|
+
/>
|
|
265
|
+
</template>
|
|
266
|
+
</ui-wizard-block>
|
|
267
|
+
|
|
268
|
+
<ui-wizard-block
|
|
269
|
+
v-if="selectedStep.id === 7"
|
|
270
|
+
:sub-title-height="readyCompleteHeight"
|
|
271
|
+
>
|
|
272
|
+
<template #subTitle>
|
|
273
|
+
<div ref="readyCompleteBlock">
|
|
274
|
+
<div class="subtitle-block flex flex-col">
|
|
275
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
276
|
+
<ui-line margin="12px 0 0" />
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
</template>
|
|
280
|
+
<template #content>
|
|
281
|
+
<common-wizards-network-add-steps-ready-complete
|
|
282
|
+
:ready-complete-fields="props.readyCompleteFields"
|
|
283
|
+
/>
|
|
284
|
+
</template>
|
|
285
|
+
</ui-wizard-block>
|
|
286
|
+
</template>
|
|
287
|
+
</ui-wizard>
|
|
288
|
+
</div>
|
|
289
|
+
</template>
|
|
290
|
+
|
|
291
|
+
<script setup lang="ts">
|
|
292
|
+
import { useElementSize } from '@vueuse/core'
|
|
293
|
+
import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/atoms/wizard/lib/models/interfaces'
|
|
294
|
+
import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
|
295
|
+
import type {
|
|
296
|
+
UI_I_Localization,
|
|
297
|
+
UI_I_ItemsWithTotalCounts,
|
|
298
|
+
} from '~/lib/models/interfaces'
|
|
299
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
300
|
+
import type {
|
|
301
|
+
UI_I_PortProperties,
|
|
302
|
+
UI_I_IpFourSettings,
|
|
303
|
+
UI_I_ConnectionSettings,
|
|
304
|
+
UI_I_TargetDevice,
|
|
305
|
+
UI_I_Switch,
|
|
306
|
+
UI_I_ReadyCompleteFields,
|
|
307
|
+
UI_I_TCPStack,
|
|
308
|
+
} from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
309
|
+
import type {
|
|
310
|
+
UI_I_Adapter,
|
|
311
|
+
UI_I_AdapterStatus,
|
|
312
|
+
UI_I_SwitchAdapterItem,
|
|
313
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
314
|
+
|
|
315
|
+
const props = defineProps<{
|
|
316
|
+
show: boolean
|
|
317
|
+
wizard: Wizard
|
|
318
|
+
selectedScheme: number[]
|
|
319
|
+
hostName: string
|
|
320
|
+
project: UI_T_Project
|
|
321
|
+
connectionType: string
|
|
322
|
+
targetDevice: UI_I_TargetDevice
|
|
323
|
+
standardSwitchesInitial: UI_I_Switch[]
|
|
324
|
+
alertMessages: string[][]
|
|
325
|
+
selectedStandardSwitchId: string
|
|
326
|
+
selectedSwitchId: string
|
|
327
|
+
freeAdapters: UI_I_Adapter[]
|
|
328
|
+
addedAdapters: string[]
|
|
329
|
+
coreAdapters: string[]
|
|
330
|
+
adapterStatus: UI_I_AdapterStatus
|
|
331
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
332
|
+
isShowNoConnectedActiveAdaptersModal: boolean
|
|
333
|
+
isShowNoActiveAdaptersModal: boolean
|
|
334
|
+
isDarkMode: boolean
|
|
335
|
+
portProperties: UI_I_PortProperties
|
|
336
|
+
mtuFromSwitch: number
|
|
337
|
+
tcpStacks: UI_I_TCPStack[]
|
|
338
|
+
ipFourSettings: UI_I_IpFourSettings
|
|
339
|
+
gatewayFlag: boolean
|
|
340
|
+
connectionSettings: UI_I_ConnectionSettings
|
|
341
|
+
readyCompleteFields: UI_I_ReadyCompleteFields[]
|
|
342
|
+
isGetExistingSwitchesLoading: boolean
|
|
343
|
+
isGetTcpStackLoading: boolean
|
|
344
|
+
}>()
|
|
345
|
+
|
|
346
|
+
const emits = defineEmits<{
|
|
347
|
+
(event: 'update:connection-type', value: string): void
|
|
348
|
+
(event: 'change-connection-settings', value: UI_I_ConnectionSettings): void
|
|
349
|
+
(event: 'hide-alert', value: number, field: string): void
|
|
350
|
+
(event: 'change-gateway-flag', value: boolean): void
|
|
351
|
+
(event: 'change-ip-four-settings', value: UI_I_IpFourSettings): void
|
|
352
|
+
(event: 'change-port-properties', value: UI_I_PortProperties): void
|
|
353
|
+
(event: 'get-free-adapters', cb: () => void): void
|
|
354
|
+
(event: 'change-added-adapters', value: string[]): void
|
|
355
|
+
(event: 'change-adapter-status', value: UI_I_AdapterStatus): void
|
|
356
|
+
(event: 'confirm-no-active-adapters-modal'): void
|
|
357
|
+
(event: 'hide-no-connected-active-adapters-modal'): void
|
|
358
|
+
(event: 'hide-no-active-adapters-modal'): void
|
|
359
|
+
(event: 'change-target-device', value: UI_I_TargetDevice): void
|
|
360
|
+
(event: 'change-steps', value: UI_I_WizardStep[]): void
|
|
361
|
+
(event: 'hide'): void
|
|
362
|
+
(event: 'submit'): void
|
|
363
|
+
}>()
|
|
364
|
+
|
|
365
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
366
|
+
|
|
367
|
+
const texts = computed<UI_I_WizardTexts>(() => ({
|
|
368
|
+
cancel: localization.value.common.cancel,
|
|
369
|
+
back: localization.value.common.backCap,
|
|
370
|
+
processing: localization.value.common.processing,
|
|
371
|
+
next: localization.value.common.next,
|
|
372
|
+
finish: localization.value.common.create,
|
|
373
|
+
incompleteTitle: localization.value.common.incompleteProcess,
|
|
374
|
+
incompleteMessage: localization.value.common.incompleteProcessMessage,
|
|
375
|
+
incompleteCancel: localization.value.common.cancel,
|
|
376
|
+
incompleteLeave: localization.value.common.leave,
|
|
377
|
+
step: localization.value.common.step,
|
|
378
|
+
of: localization.value.common.of2,
|
|
379
|
+
}))
|
|
380
|
+
|
|
381
|
+
const connectionTypeLocal = computed<string>({
|
|
382
|
+
get() {
|
|
383
|
+
return props.connectionType
|
|
384
|
+
},
|
|
385
|
+
set(newValue: string) {
|
|
386
|
+
emits('update:connection-type', newValue)
|
|
387
|
+
},
|
|
388
|
+
})
|
|
389
|
+
|
|
390
|
+
const selectConnectionTypeBlock = ref<HTMLElement | null>(null)
|
|
391
|
+
const { height: selectConnectionTypeHeight } = useElementSize(
|
|
392
|
+
selectConnectionTypeBlock
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
const selectTargetDeviceBlock = ref<HTMLElement | null>(null)
|
|
396
|
+
const { height: selectTargetDeviceHeight } = useElementSize(
|
|
397
|
+
selectTargetDeviceBlock
|
|
398
|
+
)
|
|
399
|
+
|
|
400
|
+
const connectionSettingsBlock = ref<HTMLElement | null>(null)
|
|
401
|
+
const { height: connectionSettingsHeight } = useElementSize(
|
|
402
|
+
connectionSettingsBlock
|
|
403
|
+
)
|
|
404
|
+
|
|
405
|
+
const createStandardSwitchBlock = ref<HTMLElement | null>(null)
|
|
406
|
+
const { height: createStandardSwitchHeight } = useElementSize(
|
|
407
|
+
createStandardSwitchBlock
|
|
408
|
+
)
|
|
409
|
+
|
|
410
|
+
const portPropertiesBlock = ref<HTMLElement | null>(null)
|
|
411
|
+
const { height: portPropertiesHeight } = useElementSize(portPropertiesBlock)
|
|
412
|
+
|
|
413
|
+
const ipFourSettingsBlock = ref<HTMLElement | null>(null)
|
|
414
|
+
const { height: ipFourSettingsHeight } = useElementSize(ipFourSettingsBlock)
|
|
415
|
+
|
|
416
|
+
const readyCompleteBlock = ref<HTMLElement | null>(null)
|
|
417
|
+
const { height: readyCompleteHeight } = useElementSize(readyCompleteBlock)
|
|
418
|
+
|
|
419
|
+
const onChangeAddedAdapters = (addedAdaptersNew: string[]): void => {
|
|
420
|
+
emits('change-added-adapters', addedAdaptersNew)
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const onChangeAdapterStatus = (adapterStatusNew: UI_I_AdapterStatus): void => {
|
|
424
|
+
emits('change-adapter-status', adapterStatusNew)
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const onChangeTargetDevice = (newTargetDevice: UI_I_TargetDevice): void => {
|
|
428
|
+
emits('change-target-device', newTargetDevice)
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
const onChangePortProperties = (newFields: UI_I_PortProperties): void => {
|
|
432
|
+
emits('change-port-properties', newFields)
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
const onChangeIpFourSettings = (newFields: UI_I_IpFourSettings): void => {
|
|
436
|
+
emits('change-ip-four-settings', newFields)
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
const onChangeGatewayFlag = (newValue: boolean) => {
|
|
440
|
+
emits('change-gateway-flag', newValue)
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
const onChangeConnectionSettings = (
|
|
444
|
+
newFields: UI_I_ConnectionSettings
|
|
445
|
+
): void => {
|
|
446
|
+
emits('change-connection-settings', newFields)
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
const onGetFreeAdapters = (showModal: () => void): void => {
|
|
450
|
+
emits('get-free-adapters', showModal)
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> => {
|
|
454
|
+
emits('change-steps', value)
|
|
455
|
+
}
|
|
456
|
+
</script>
|
|
457
|
+
|
|
458
|
+
<style scoped lang="scss">
|
|
459
|
+
.is-manager-step {
|
|
460
|
+
:deep(.ui-wizard-content-right-bottom) {
|
|
461
|
+
width: calc(100% - min(320px, 29%) - 284px);
|
|
462
|
+
}
|
|
463
|
+
:deep(.ui-wizard-content-with-subtitle) {
|
|
464
|
+
padding-right: 0;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
@media (max-width: 1084px) {
|
|
469
|
+
.is-manager-step {
|
|
470
|
+
:deep(.ui-wizard-content-right-bottom) {
|
|
471
|
+
width: calc(100% - min(320px, 29%) - 16px);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
:deep(.ui-alert-item) {
|
|
477
|
+
margin-bottom: 12px;
|
|
478
|
+
|
|
479
|
+
&.mb-4 {
|
|
480
|
+
margin-bottom: 16px;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
</style>
|