bfg-common 1.6.76 → 1.6.77
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 +4213 -4474
- package/assets/localization/local_en.json +4217 -4479
- package/assets/localization/local_hy.json +4217 -4478
- package/assets/localization/local_kk.json +4216 -4477
- package/assets/localization/local_ru.json +4216 -4477
- package/assets/localization/local_zh.json +4214 -4475
- package/assets/scss/common/global.scss +0 -11
- package/assets/scss/common/normalize.scss +0 -3
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -170
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +0 -3
- package/components/common/adapterManager/AdapterManagerNew.vue +0 -86
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +0 -2
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +2 -3
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
- package/components/common/diagramMain/Diagram.vue +85 -169
- package/components/common/diagramMain/DiagramMain.vue +10 -40
- package/components/common/diagramMain/{header/HeaderOld.vue → Header.vue} +67 -78
- package/components/common/diagramMain/modals/Modals.vue +0 -4
- package/components/common/diagramMain/modals/editSettings/{confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue → ConfirmTeamingSettingsModal.vue} +5 -2
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +102 -104
- package/components/common/diagramMain/modals/editSettings/{modal/EditSettingsModalOld.vue → EditSettingsModal.vue} +51 -12
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +0 -6
- package/components/common/diagramMain/modals/editSettings/tabs/{networkProperties/NetworkPropertiesOld.vue → NetworkProperties.vue} +113 -12
- package/components/common/diagramMain/modals/editSettings/tabs/{security/SecurityOld.vue → Security.vue} +48 -25
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +164 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{teamingFailover/TeamingFailoverOld.vue → TeamingFailover.vue} +48 -11
- package/components/common/diagramMain/modals/editSettings/tabs/{trafficShaping/TrafficShapingOld.vue → TrafficShaping.vue} +134 -12
- package/components/common/diagramMain/modals/editSettings/tabs/port/{ipvFourSettings/IpvFourSettingsOld.vue → IpvFourSettings.vue} +152 -11
- package/components/common/diagramMain/modals/editSettings/tabs/port/{portProperties/PortPropertiesOld.vue → PortProperties.vue} +103 -12
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +2 -43
- package/components/common/diagramMain/modals/lib/config/index.ts +1 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +4 -34
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +30 -38
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
- package/components/common/modals/Rename.vue +1 -3
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +253 -184
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +0 -9
- package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
- package/components/common/pages/tasks/Tasks.vue +1 -4
- package/components/common/pages/tasks/table/Table.vue +23 -25
- package/components/common/readyToComplete/New.vue +0 -1
- package/components/common/split/vertical/New.vue +8 -42
- package/components/common/split/vertical/Old.vue +2 -31
- package/components/common/split/vertical/Vertical.vue +0 -4
- package/components/common/tools/Actions.vue +3 -7
- package/components/common/tools/lib/models/interfaces.ts +0 -1
- package/components/common/vm/actions/add/New.vue +6 -21
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -14
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +0 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/options/New.vue +12 -14
- package/components/common/vm/actions/common/select/options/Old.vue +15 -16
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
- package/components/common/vm/actions/confirm/Confirm.vue +0 -3
- package/components/common/vm/actions/rename/Old.vue +0 -1
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +0 -6
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +2 -13
- package/components/common/wizards/network/add/AddNew.vue +26 -22
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -6
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +1 -5
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +0 -3
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +2 -6
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -4
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +3 -13
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +0 -5
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -3
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +1 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +21 -40
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +14 -44
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +0 -4
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +2 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +7 -22
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +16 -12
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +5 -10
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +11 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +10 -17
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +0 -1
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +15 -35
- package/lib/models/store/tasks/enums.ts +0 -3
- package/lib/models/store/tasks/types.ts +6 -7
- package/package.json +1 -1
- package/plugins/directives.ts +5 -3
- package/public/spice-console/application/agent.js +17 -18
- package/store/tasks/actions.ts +8 -26
- package/store/tasks/mappers/recentTasks.ts +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
- package/components/common/diagramMain/header/Header.vue +0 -49
- package/components/common/diagramMain/header/HeaderNew.vue +0 -155
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +0 -32
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +0 -285
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +0 -254
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +0 -31
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +0 -82
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +0 -15
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +0 -177
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +0 -137
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +0 -91
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +0 -158
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +0 -262
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +0 -192
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +0 -388
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +0 -139
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +0 -286
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +0 -209
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +0 -233
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +0 -128
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +0 -235
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +0 -87
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +0 -99
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +0 -319
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +0 -173
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +0 -348
- package/components/common/diagramMain/skeleton/Header.vue +0 -31
- package/components/common/diagramMain/skeleton/Switch.vue +0 -75
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
@submit="emits('send-edit-data')"
|
|
12
12
|
>
|
|
13
13
|
<template #content>
|
|
14
|
-
<ui-alert
|
|
15
|
-
v-if="!!errors.alert"
|
|
16
|
-
:messages="[errors.alert]"
|
|
17
|
-
test-id="virtual-functions-alert"
|
|
18
|
-
size="md"
|
|
19
|
-
class="virtual-functions-alert"
|
|
20
|
-
@hide="onHideAlert"
|
|
21
|
-
/>
|
|
22
14
|
<div class="form-group">
|
|
23
15
|
<div class="form-group-speed">
|
|
24
16
|
<label class="config-speed-title title">
|
|
@@ -38,7 +30,7 @@
|
|
|
38
30
|
<div v-if="props.hasSpeed" class="form-group-sr">
|
|
39
31
|
<ui-line margin="24px 0 16px" />
|
|
40
32
|
<label class="sr-title title">
|
|
41
|
-
{{ localization.common.
|
|
33
|
+
{{ localization.common.status }}
|
|
42
34
|
</label>
|
|
43
35
|
<p class="sr-description">
|
|
44
36
|
{{ localization.common.srIovDescription }}
|
|
@@ -67,7 +59,6 @@
|
|
|
67
59
|
:placeholder="localization.common.virtualFunctions"
|
|
68
60
|
size="md"
|
|
69
61
|
type="number"
|
|
70
|
-
:error="sriovStatus ? errors.field : ''"
|
|
71
62
|
:disabled="!sriovStatus"
|
|
72
63
|
/>
|
|
73
64
|
</div>
|
|
@@ -94,8 +85,6 @@ import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/mod
|
|
|
94
85
|
import type { UI_I_OptionItem } from '~/node_modules/bfg-common/components/atoms/lib/models/interfaces'
|
|
95
86
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
96
87
|
import type { UI_I_SwitchAdapterItem } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
97
|
-
import type { UI_I_SrOptionError } from '~/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces'
|
|
98
|
-
import { vfNumberValidationFunc } from '~/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations'
|
|
99
88
|
|
|
100
89
|
const props = defineProps<{
|
|
101
90
|
hasSpeed: boolean
|
|
@@ -120,7 +109,6 @@ const modalTexts = ref<UI_I_ModalTexts>({
|
|
|
120
109
|
const configSpeed = defineModel<string>('config-speed')
|
|
121
110
|
const sriovStatus = defineModel<boolean>('status')
|
|
122
111
|
const numberOfFunctions = defineModel<number>('number-of-functions')
|
|
123
|
-
const errors = defineModel<UI_I_SrOptionError>('errors')
|
|
124
112
|
|
|
125
113
|
const status = computed({
|
|
126
114
|
get() {
|
|
@@ -130,19 +118,6 @@ const status = computed({
|
|
|
130
118
|
sriovStatus.value = newValue === '1'
|
|
131
119
|
},
|
|
132
120
|
})
|
|
133
|
-
|
|
134
|
-
watch(
|
|
135
|
-
numberOfFunctions,
|
|
136
|
-
(newValue: number): void => {
|
|
137
|
-
errors.value.field = vfNumberValidationFunc(newValue, localization.value)
|
|
138
|
-
errors.value.alert = ''
|
|
139
|
-
},
|
|
140
|
-
{ immediate: true }
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
const onHideAlert = (): void => {
|
|
144
|
-
errors.value.alert = ''
|
|
145
|
-
}
|
|
146
121
|
</script>
|
|
147
122
|
|
|
148
123
|
<style scoped lang="scss">
|
|
@@ -225,8 +200,4 @@ const onHideAlert = (): void => {
|
|
|
225
200
|
}
|
|
226
201
|
}
|
|
227
202
|
}
|
|
228
|
-
|
|
229
|
-
.virtual-functions-alert {
|
|
230
|
-
margin: 8px 32px;
|
|
231
|
-
}
|
|
232
203
|
</style>
|
|
@@ -170,9 +170,7 @@ const actions = computed<UI_I_ButtonsGroup>(() => [
|
|
|
170
170
|
value: 'edit',
|
|
171
171
|
testId: 'edit-physical-adapted',
|
|
172
172
|
id: 'edit-physical-adapted',
|
|
173
|
-
iconName: 'edit',
|
|
174
173
|
disabled: !props.hasSelectedAdapter,
|
|
175
|
-
development: true,
|
|
176
174
|
},
|
|
177
175
|
])
|
|
178
176
|
|
|
@@ -249,11 +247,6 @@ const onShowEditModal = (id: string): void => {
|
|
|
249
247
|
:deep(.table-container) {
|
|
250
248
|
height: 100%;
|
|
251
249
|
grid-template-rows: min-content auto min-content;
|
|
252
|
-
|
|
253
|
-
.title-container {
|
|
254
|
-
margin-right: 16px;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
250
|
&.full-width-search {
|
|
258
251
|
grid-template-rows: min-content min-content auto min-content;
|
|
259
252
|
}
|
|
@@ -329,7 +322,7 @@ const onShowEditModal = (id: string): void => {
|
|
|
329
322
|
}
|
|
330
323
|
}
|
|
331
324
|
&-text {
|
|
332
|
-
line-height:
|
|
325
|
+
line-height: 16px;
|
|
333
326
|
}
|
|
334
327
|
}
|
|
335
328
|
|
|
@@ -338,8 +331,4 @@ const onShowEditModal = (id: string): void => {
|
|
|
338
331
|
white-space: nowrap;
|
|
339
332
|
}
|
|
340
333
|
}
|
|
341
|
-
|
|
342
|
-
:deep(.ui-button-group-dots-icon) {
|
|
343
|
-
padding-left: 0;
|
|
344
|
-
}
|
|
345
334
|
</style>
|
|
@@ -8,96 +8,96 @@ import type { UI_I_PhysicalAdapter } from '~/components/common/configure/physica
|
|
|
8
8
|
import { physicalAdaptersTableItemsTuple } from '~/components/common/configure/physicalAdapters/tableView/lib/config/tableKeys'
|
|
9
9
|
|
|
10
10
|
export const getHeaderDataFunc = (
|
|
11
|
-
|
|
11
|
+
localization: UI_I_Localization
|
|
12
12
|
): UI_I_DataTableHeader[] => [
|
|
13
13
|
{
|
|
14
14
|
col: 'col0',
|
|
15
|
-
colName: physicalAdaptersTableItemsTuple[0],
|
|
15
|
+
colName: [physicalAdaptersTableItemsTuple[0]],
|
|
16
16
|
text: localization.common[physicalAdaptersTableItemsTuple[0]],
|
|
17
17
|
isSortable: true,
|
|
18
18
|
sort: 'asc',
|
|
19
19
|
sortColumn: true,
|
|
20
|
-
width: '
|
|
20
|
+
width: '30%',
|
|
21
21
|
show: true,
|
|
22
22
|
filter: true,
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
col: 'col1',
|
|
26
|
-
colName: physicalAdaptersTableItemsTuple[1],
|
|
26
|
+
colName: [physicalAdaptersTableItemsTuple[1]],
|
|
27
27
|
text: localization.common[physicalAdaptersTableItemsTuple[1]],
|
|
28
28
|
isSortable: true,
|
|
29
29
|
sort: 'asc',
|
|
30
|
-
width: '
|
|
30
|
+
width: '20%',
|
|
31
31
|
show: true,
|
|
32
32
|
filter: true,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
col: 'col2',
|
|
36
|
-
colName: physicalAdaptersTableItemsTuple[2],
|
|
36
|
+
colName: [physicalAdaptersTableItemsTuple[2]],
|
|
37
37
|
text: localization.common[physicalAdaptersTableItemsTuple[2]],
|
|
38
38
|
isSortable: true,
|
|
39
39
|
sort: 'asc',
|
|
40
|
-
width: '
|
|
40
|
+
width: '20%',
|
|
41
41
|
show: true,
|
|
42
42
|
filter: true,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
col: 'col3',
|
|
46
|
-
colName: physicalAdaptersTableItemsTuple[3],
|
|
46
|
+
colName: [physicalAdaptersTableItemsTuple[3]],
|
|
47
47
|
text: localization.common[physicalAdaptersTableItemsTuple[3]],
|
|
48
48
|
isSortable: true,
|
|
49
49
|
sort: 'asc',
|
|
50
|
-
width: '
|
|
50
|
+
width: '20%',
|
|
51
51
|
show: true,
|
|
52
52
|
filter: true,
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
col: 'col4',
|
|
56
|
-
colName: physicalAdaptersTableItemsTuple[4],
|
|
56
|
+
colName: [physicalAdaptersTableItemsTuple[4]],
|
|
57
57
|
text: localization.common[physicalAdaptersTableItemsTuple[4]],
|
|
58
58
|
isSortable: true,
|
|
59
59
|
sort: 'asc',
|
|
60
|
-
width: '
|
|
60
|
+
width: '20%',
|
|
61
61
|
show: true,
|
|
62
62
|
filter: true,
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
col: 'col5',
|
|
66
|
-
colName: physicalAdaptersTableItemsTuple[5],
|
|
66
|
+
colName: [physicalAdaptersTableItemsTuple[5]],
|
|
67
67
|
text: localization.common[physicalAdaptersTableItemsTuple[5]],
|
|
68
68
|
isSortable: true,
|
|
69
69
|
sort: 'asc',
|
|
70
|
-
width: '
|
|
70
|
+
width: '20%',
|
|
71
71
|
show: true,
|
|
72
72
|
filter: true,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
col: 'col6',
|
|
76
|
-
colName: physicalAdaptersTableItemsTuple[6],
|
|
76
|
+
colName: [physicalAdaptersTableItemsTuple[6]],
|
|
77
77
|
text: localization.common[physicalAdaptersTableItemsTuple[6]],
|
|
78
78
|
isSortable: true,
|
|
79
79
|
sort: 'asc',
|
|
80
|
-
width: '
|
|
80
|
+
width: '20%',
|
|
81
81
|
show: true,
|
|
82
82
|
filter: true,
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
col: 'col7',
|
|
86
|
-
colName: physicalAdaptersTableItemsTuple[7],
|
|
86
|
+
colName: [physicalAdaptersTableItemsTuple[7]],
|
|
87
87
|
text: localization.common[physicalAdaptersTableItemsTuple[7]],
|
|
88
88
|
isSortable: true,
|
|
89
89
|
sort: 'asc',
|
|
90
|
-
width: '
|
|
90
|
+
width: '20%',
|
|
91
91
|
show: true,
|
|
92
92
|
filter: true,
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
col: 'col8',
|
|
96
|
-
colName: physicalAdaptersTableItemsTuple[8],
|
|
96
|
+
colName: [physicalAdaptersTableItemsTuple[8]],
|
|
97
97
|
text: localization.common[physicalAdaptersTableItemsTuple[8]],
|
|
98
98
|
isSortable: true,
|
|
99
99
|
sort: 'asc',
|
|
100
|
-
width: '
|
|
100
|
+
width: '20%',
|
|
101
101
|
show: true,
|
|
102
102
|
filter: true,
|
|
103
103
|
},
|
|
@@ -131,8 +131,8 @@ export const options: UI_I_DataTableOptions = {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export const getBodyDataFunc = (
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
bodyData: UI_I_PhysicalAdapter[],
|
|
135
|
+
selectedRow: number
|
|
136
136
|
): UI_I_DataTableBody[] => {
|
|
137
137
|
return bodyData.map((adapter: UI_I_PhysicalAdapter, index: number) => {
|
|
138
138
|
return {
|
|
@@ -11,22 +11,22 @@ export const adapterViewSettingsModalTabsFunc = (
|
|
|
11
11
|
{
|
|
12
12
|
text: localization.common.all,
|
|
13
13
|
value: 0,
|
|
14
|
-
testId: 'physical-adapter-view-all-settings'
|
|
14
|
+
testId: 'physical-adapter-view-all-settings'
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
text: localization.common.properties,
|
|
18
18
|
value: 1,
|
|
19
|
-
testId: 'physical-adapter-view-properties-setting'
|
|
19
|
+
testId: 'physical-adapter-view-properties-setting'
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
text: localization.common.cdp,
|
|
23
23
|
value: 2,
|
|
24
|
-
testId: 'physical-adapter-view-cdp-setting'
|
|
24
|
+
testId: 'physical-adapter-view-cdp-setting'
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
text: localization.common.lldp,
|
|
28
28
|
value: 3,
|
|
29
|
-
testId: 'physical-adapter-view-lldp-setting'
|
|
29
|
+
testId: 'physical-adapter-view-lldp-setting'
|
|
30
30
|
},
|
|
31
31
|
]
|
|
32
32
|
|
|
@@ -36,7 +36,6 @@ export const adapterViewSettingsFunc = (
|
|
|
36
36
|
): UI_I_ViewSettingsFields[] => {
|
|
37
37
|
return [
|
|
38
38
|
{
|
|
39
|
-
title: localization.common.properties,
|
|
40
39
|
id: 1,
|
|
41
40
|
type: 1,
|
|
42
41
|
rows: [
|
|
@@ -68,8 +67,6 @@ export const adapterViewSettingsFunc = (
|
|
|
68
67
|
value: initialData.carrier
|
|
69
68
|
? localization.common.connected
|
|
70
69
|
: localization.common.disconnected,
|
|
71
|
-
status: true,
|
|
72
|
-
color: initialData.carrier,
|
|
73
70
|
},
|
|
74
71
|
{
|
|
75
72
|
name: localization.common.actualSpeedDuplex,
|
|
@@ -105,11 +102,7 @@ export const adapterViewSettingsFunc = (
|
|
|
105
102
|
rows: [
|
|
106
103
|
{
|
|
107
104
|
name: localization.common.status,
|
|
108
|
-
value: !initialData.srIov
|
|
109
|
-
? localization.common.notSupported
|
|
110
|
-
: localization.common.supported,
|
|
111
|
-
status: true,
|
|
112
|
-
color: initialData.srIov,
|
|
105
|
+
value: !initialData.srIov ? localization.common.notSupported : '',
|
|
113
106
|
},
|
|
114
107
|
],
|
|
115
108
|
},
|
|
@@ -13,10 +13,7 @@ export interface UI_I_PhysicalAdapter {
|
|
|
13
13
|
|
|
14
14
|
export interface UI_I_ViewSettingsFieldsRow {
|
|
15
15
|
name: string
|
|
16
|
-
value
|
|
17
|
-
color?: boolean
|
|
18
|
-
status?: boolean
|
|
19
|
-
icon?: string
|
|
16
|
+
value: string | string[]
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
export interface UI_I_ViewSettingsFields {
|
|
@@ -6,129 +6,88 @@
|
|
|
6
6
|
'diagram-in-portlet': props.inPortlet,
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
:
|
|
33
|
-
:
|
|
34
|
-
:
|
|
35
|
-
:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<common-diagram-main-network
|
|
73
|
-
:network="network"
|
|
74
|
-
:selected-port="props.selectedPort"
|
|
75
|
-
:selected-adapter="props.selectedAdapter"
|
|
76
|
-
:selected-network="props.selectedNetwork"
|
|
77
|
-
:selected-main-line="props.selectedMainLine"
|
|
78
|
-
:diagram-id="props.diagramData.id"
|
|
79
|
-
:in-portlet="props.inPortlet"
|
|
80
|
-
:is-visible-line="hasActiveAdapter"
|
|
81
|
-
:is-dark-mode="props.isDarkMode"
|
|
82
|
-
:first-and-last-network-lines-y="firstAndLastNetworkLinesY"
|
|
83
|
-
:adapter-line-y="
|
|
84
|
-
props.adaptersWithPositions.adaptersConnectLineY
|
|
85
|
-
"
|
|
86
|
-
:adapters-positions-y="adaptersPositionsY"
|
|
87
|
-
@toggle-ports="onTogglePorts"
|
|
88
|
-
@select-port="onSelectPort"
|
|
89
|
-
@select-network="onSelectNetwork"
|
|
90
|
-
@show-modal="onShowModal"
|
|
91
|
-
/>
|
|
92
|
-
</template>
|
|
9
|
+
<div class="diagram-second-container">
|
|
10
|
+
<svg
|
|
11
|
+
v-if="props.diagramData && props.isShowDiagram"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
:height="diagramHeight"
|
|
14
|
+
:width="diagramWidth"
|
|
15
|
+
:viewBox="viewBox"
|
|
16
|
+
:preserveAspectRatio="preserveAspectRatio"
|
|
17
|
+
:class="svgClasses"
|
|
18
|
+
@click.capture="onClickDiagram"
|
|
19
|
+
>
|
|
20
|
+
<common-diagram-main-switch
|
|
21
|
+
:networks-count="props.networksCount"
|
|
22
|
+
:main-rect-height="props.mainRectHeight"
|
|
23
|
+
:main-switch-line="props.mainSwitchLine"
|
|
24
|
+
:selected-main-line="props.selectedMainLine"
|
|
25
|
+
:is-visible-line="hasActiveAdapter"
|
|
26
|
+
:is-selected-linked-with-adapter="isSelectedLinkedWithAdapter"
|
|
27
|
+
:adapter-line-y="props.adaptersWithPositions.adaptersConnectLineY"
|
|
28
|
+
:first-and-last-network-lines-y="firstAndLastNetworkLinesY"
|
|
29
|
+
:networks-with-positions="props.networksWithPositions"
|
|
30
|
+
/>
|
|
31
|
+
<common-diagram-main-adapter
|
|
32
|
+
:networks-count="props.networksCount"
|
|
33
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
34
|
+
:selected-main-line="props.selectedMainLine"
|
|
35
|
+
:selected-port="props.selectedPort"
|
|
36
|
+
:selected-adapter="props.selectedAdapter"
|
|
37
|
+
:selected-network="props.selectedNetwork"
|
|
38
|
+
:is-visible-line="hasActiveAdapter"
|
|
39
|
+
:is-dark-mode="props.isDarkMode"
|
|
40
|
+
:test-id="props.diagramData.testId"
|
|
41
|
+
:is-selected-linked-with-adapter="isSelectedLinkedWithAdapter"
|
|
42
|
+
:networks-with-positions="props.networksWithPositions"
|
|
43
|
+
:first-and-last-network-lines-y="firstAndLastNetworkLinesY"
|
|
44
|
+
:in-network-lines-y="inNetworkLinesY"
|
|
45
|
+
@toggle-adapters="onToggleAdapters"
|
|
46
|
+
@select-adapter="onSelectAdapter"
|
|
47
|
+
@show-modal="onShowModal"
|
|
48
|
+
/>
|
|
49
|
+
<template v-if="!!props.networksWithPositions.length">
|
|
50
|
+
<template
|
|
51
|
+
v-for="network in props.networksWithPositions"
|
|
52
|
+
:key="network.id"
|
|
53
|
+
>
|
|
54
|
+
<common-diagram-main-network
|
|
55
|
+
:network="network"
|
|
56
|
+
:selected-port="props.selectedPort"
|
|
57
|
+
:selected-adapter="props.selectedAdapter"
|
|
58
|
+
:selected-network="props.selectedNetwork"
|
|
59
|
+
:selected-main-line="props.selectedMainLine"
|
|
60
|
+
:diagram-id="props.diagramData.id"
|
|
61
|
+
:in-portlet="props.inPortlet"
|
|
62
|
+
:is-visible-line="hasActiveAdapter"
|
|
63
|
+
:is-dark-mode="props.isDarkMode"
|
|
64
|
+
:first-and-last-network-lines-y="firstAndLastNetworkLinesY"
|
|
65
|
+
:adapter-line-y="props.adaptersWithPositions.adaptersConnectLineY"
|
|
66
|
+
:adapters-positions-y="adaptersPositionsY"
|
|
67
|
+
@toggle-ports="onTogglePorts"
|
|
68
|
+
@select-port="onSelectPort"
|
|
69
|
+
@select-network="onSelectNetwork"
|
|
70
|
+
@show-modal="onShowModal"
|
|
71
|
+
/>
|
|
93
72
|
</template>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
</
|
|
73
|
+
</template>
|
|
74
|
+
<template v-else>
|
|
75
|
+
<common-diagram-main-network-no-network />
|
|
76
|
+
</template>
|
|
77
|
+
<common-diagram-main-switch-selected
|
|
78
|
+
:selected-switch-line-y="props.selectedSwitchLineY"
|
|
79
|
+
:is-visible-line="hasActiveAdapter && isSelectedLinkedWithAdapter"
|
|
80
|
+
:adapters-positions-y="adaptersPositionsY"
|
|
81
|
+
:adapter-line-y="props.adaptersWithPositions.adaptersConnectLineY"
|
|
82
|
+
:is-highlighted-adapter-line="isHighlightedAdapterLine"
|
|
83
|
+
:in-network-lines-y="inNetworkLinesY"
|
|
84
|
+
/>
|
|
85
|
+
</svg>
|
|
107
86
|
</div>
|
|
108
87
|
</div>
|
|
109
|
-
<div
|
|
110
|
-
v-if="isNewView && props.isShowDiagram && !props.inPortlet"
|
|
111
|
-
class="virtual-switch-remove"
|
|
112
|
-
>
|
|
113
|
-
<ui-button
|
|
114
|
-
:test-id="`${props.diagramData.testId}-remove`"
|
|
115
|
-
variant="text"
|
|
116
|
-
type="error"
|
|
117
|
-
is-without-sizes
|
|
118
|
-
is-without-height
|
|
119
|
-
v-permission="'Networks.RemoveSwitch'"
|
|
120
|
-
@click="emits('show-modal', 'switch-remove')"
|
|
121
|
-
>
|
|
122
|
-
<span class="virtual-switch-remove-btn">
|
|
123
|
-
<ui-icon name="delete" width="20" height="20" />
|
|
124
|
-
{{ localization.common.remove }}
|
|
125
|
-
</span>
|
|
126
|
-
</ui-button>
|
|
127
|
-
</div>
|
|
128
88
|
</template>
|
|
129
89
|
|
|
130
90
|
<script setup lang="ts">
|
|
131
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
132
91
|
import type {
|
|
133
92
|
UI_I_AdaptersWithPositions,
|
|
134
93
|
UI_I_DiagramData,
|
|
@@ -139,7 +98,6 @@ import type {
|
|
|
139
98
|
UI_I_SwitchLine,
|
|
140
99
|
UI_I_Network,
|
|
141
100
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
142
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
|
143
101
|
import { UI_E_PositionsY } from '~/components/common/diagramMain/lib/models/enums'
|
|
144
102
|
|
|
145
103
|
const props = defineProps<{
|
|
@@ -157,7 +115,6 @@ const props = defineProps<{
|
|
|
157
115
|
selectedSwitchLineY: UI_I_SwitchLine
|
|
158
116
|
isDarkMode: boolean
|
|
159
117
|
networksCount: number
|
|
160
|
-
project: UI_T_Project
|
|
161
118
|
}>()
|
|
162
119
|
|
|
163
120
|
const emits = defineEmits<{
|
|
@@ -177,15 +134,12 @@ const emits = defineEmits<{
|
|
|
177
134
|
): void
|
|
178
135
|
(event: 'select-port', networkId: string, portId: string): void
|
|
179
136
|
(event: 'select-network', networkId: string): void
|
|
180
|
-
(event: 'toggle-diagram'): void
|
|
181
137
|
}>()
|
|
182
138
|
|
|
183
139
|
const { $store }: any = useNuxtApp()
|
|
184
140
|
|
|
185
141
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
186
142
|
|
|
187
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
188
|
-
|
|
189
143
|
const inNetworkLinesY = computed(() => {
|
|
190
144
|
const linesY = []
|
|
191
145
|
props.networksWithPositions.forEach((net, index) => {
|
|
@@ -370,19 +324,8 @@ const onSelectNetwork = (networkId: string): void => {
|
|
|
370
324
|
<style scoped lang="scss">
|
|
371
325
|
.diagram {
|
|
372
326
|
&-container {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
.diagram-second-container {
|
|
376
|
-
display: flex;
|
|
377
|
-
justify-content: center;
|
|
378
|
-
min-width: 725px;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
&.diagram-in-portlet {
|
|
382
|
-
.diagram-second-container {
|
|
383
|
-
min-width: 560px;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
327
|
+
display: flex;
|
|
328
|
+
justify-content: center;
|
|
386
329
|
|
|
387
330
|
.diagram-portlet {
|
|
388
331
|
margin-top: 10px;
|
|
@@ -392,21 +335,16 @@ const onSelectNetwork = (networkId: string): void => {
|
|
|
392
335
|
|
|
393
336
|
.diagram {
|
|
394
337
|
&-container-new:not(.diagram-in-portlet) {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
338
|
+
display: flex;
|
|
339
|
+
justify-content: center;
|
|
340
|
+
margin: 16px 16px 30px;
|
|
341
|
+
padding: 16px;
|
|
342
|
+
border-radius: 8px;
|
|
343
|
+
background: var(--diagram-container-bg);
|
|
344
|
+
box-shadow: 0 1px 4px 0 #00000014;
|
|
398
345
|
|
|
399
346
|
.diagram-second-container {
|
|
400
347
|
overflow-x: auto;
|
|
401
|
-
display: flex;
|
|
402
|
-
justify-content: center;
|
|
403
|
-
min-width: 760px;
|
|
404
|
-
|
|
405
|
-
&.diagram-in-portlet {
|
|
406
|
-
.diagram-second-container {
|
|
407
|
-
min-width: 560px;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
348
|
|
|
411
349
|
.diagram-svg {
|
|
412
350
|
margin: 22.5px 17.5px;
|
|
@@ -419,28 +357,6 @@ const onSelectNetwork = (networkId: string): void => {
|
|
|
419
357
|
}
|
|
420
358
|
}
|
|
421
359
|
}
|
|
422
|
-
|
|
423
|
-
.diagrams {
|
|
424
|
-
overflow-y: auto;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.virtual-switch-remove {
|
|
428
|
-
padding: 16px 0 0;
|
|
429
|
-
display: flex;
|
|
430
|
-
justify-content: flex-end;
|
|
431
|
-
|
|
432
|
-
&-btn {
|
|
433
|
-
height: 20px;
|
|
434
|
-
font-weight: 500;
|
|
435
|
-
font-size: 14px;
|
|
436
|
-
line-height: 17px;
|
|
437
|
-
letter-spacing: 0;
|
|
438
|
-
display: flex;
|
|
439
|
-
align-items: center;
|
|
440
|
-
column-gap: 8px;
|
|
441
|
-
color: var(--text-red);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
360
|
</style>
|
|
445
361
|
<style lang="scss">
|
|
446
362
|
.diagram-actions__popup.navbar-dropdown-menu {
|