bfg-common 1.6.74 → 1.6.75
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 +272 -11
- package/assets/localization/local_en.json +291 -29
- package/assets/localization/local_hy.json +274 -13
- package/assets/localization/local_kk.json +272 -11
- package/assets/localization/local_ru.json +286 -25
- package/assets/localization/local_zh.json +273 -12
- package/assets/scss/common/global.scss +11 -0
- package/assets/scss/common/normalize.scss +3 -0
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +3 -0
- package/components/common/adapterManager/AdapterManagerNew.vue +86 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
- package/components/common/certificate/CertificateInfo.vue +7 -1
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +12 -5
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
- package/components/common/diagramMain/Diagram.vue +169 -85
- package/components/common/diagramMain/DiagramMain.vue +40 -10
- package/components/common/diagramMain/header/Header.vue +49 -0
- package/components/common/diagramMain/header/HeaderNew.vue +155 -0
- package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
- package/components/common/diagramMain/modals/Modals.vue +4 -0
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
- package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
- package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -113
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{SwitchProperties.vue → switchProperties/SwitchPropertiesOld.vue} +12 -89
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
- package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- 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 +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/modals/Rename.vue +3 -1
- 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 +184 -253
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +25 -23
- package/components/common/readyToComplete/New.vue +1 -0
- package/components/common/split/vertical/New.vue +42 -8
- package/components/common/split/vertical/Old.vue +31 -2
- package/components/common/split/vertical/Vertical.vue +4 -0
- package/components/common/tools/Actions.vue +7 -3
- package/components/common/tools/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/select/options/New.vue +14 -12
- package/components/common/vm/actions/common/select/options/Old.vue +16 -15
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
- package/components/common/vm/actions/confirm/Confirm.vue +3 -0
- package/components/common/vm/actions/rename/Old.vue +1 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +6 -0
- 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 +13 -2
- package/components/common/wizards/network/add/AddNew.vue +22 -26
- package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +13 -3
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/package.json +2 -2
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/agent.js +18 -17
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
|
@@ -6,88 +6,129 @@
|
|
|
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
|
-
|
|
9
|
+
<common-diagram-main-header
|
|
10
|
+
v-if="!props.inPortlet"
|
|
11
|
+
:project="props.project"
|
|
12
|
+
:is-show-diagram="props.isShowDiagram"
|
|
13
|
+
:diagram-name="props.diagramData.diagramName"
|
|
14
|
+
:test-id="props.diagramData.testId"
|
|
15
|
+
@toggle-diagram="emits('toggle-diagram')"
|
|
16
|
+
@show-modal="onShowModal"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<div
|
|
20
|
+
:class="[
|
|
21
|
+
'diagrams',
|
|
22
|
+
{
|
|
23
|
+
'is-show-diagram': props.isShowDiagram,
|
|
24
|
+
},
|
|
25
|
+
]"
|
|
26
|
+
>
|
|
27
|
+
<div class="diagram-second-container">
|
|
28
|
+
<svg
|
|
29
|
+
v-if="props.diagramData && props.isShowDiagram"
|
|
30
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
31
|
+
:height="diagramHeight"
|
|
32
|
+
:width="diagramWidth"
|
|
33
|
+
:viewBox="viewBox"
|
|
34
|
+
:preserveAspectRatio="preserveAspectRatio"
|
|
35
|
+
:class="svgClasses"
|
|
36
|
+
@click.capture="onClickDiagram"
|
|
37
|
+
>
|
|
38
|
+
<common-diagram-main-switch
|
|
39
|
+
:networks-count="props.networksCount"
|
|
40
|
+
:main-rect-height="props.mainRectHeight"
|
|
41
|
+
:main-switch-line="props.mainSwitchLine"
|
|
42
|
+
:selected-main-line="props.selectedMainLine"
|
|
43
|
+
:is-visible-line="hasActiveAdapter"
|
|
44
|
+
:is-selected-linked-with-adapter="isSelectedLinkedWithAdapter"
|
|
45
|
+
:adapter-line-y="props.adaptersWithPositions.adaptersConnectLineY"
|
|
46
|
+
:first-and-last-network-lines-y="firstAndLastNetworkLinesY"
|
|
47
|
+
:networks-with-positions="props.networksWithPositions"
|
|
48
|
+
/>
|
|
49
|
+
<common-diagram-main-adapter
|
|
50
|
+
:networks-count="props.networksCount"
|
|
51
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
52
|
+
:selected-main-line="props.selectedMainLine"
|
|
53
|
+
:selected-port="props.selectedPort"
|
|
54
|
+
:selected-adapter="props.selectedAdapter"
|
|
55
|
+
:selected-network="props.selectedNetwork"
|
|
56
|
+
:is-visible-line="hasActiveAdapter"
|
|
57
|
+
:is-dark-mode="props.isDarkMode"
|
|
58
|
+
:test-id="props.diagramData.testId"
|
|
59
|
+
:is-selected-linked-with-adapter="isSelectedLinkedWithAdapter"
|
|
60
|
+
:networks-with-positions="props.networksWithPositions"
|
|
61
|
+
:first-and-last-network-lines-y="firstAndLastNetworkLinesY"
|
|
62
|
+
:in-network-lines-y="inNetworkLinesY"
|
|
63
|
+
@toggle-adapters="onToggleAdapters"
|
|
64
|
+
@select-adapter="onSelectAdapter"
|
|
65
|
+
@show-modal="onShowModal"
|
|
66
|
+
/>
|
|
67
|
+
<template v-if="!!props.networksWithPositions.length">
|
|
68
|
+
<template
|
|
69
|
+
v-for="network in props.networksWithPositions"
|
|
70
|
+
:key="network.id"
|
|
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>
|
|
72
93
|
</template>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</
|
|
94
|
+
<template v-else>
|
|
95
|
+
<common-diagram-main-network-no-network />
|
|
96
|
+
</template>
|
|
97
|
+
<common-diagram-main-switch-selected
|
|
98
|
+
:selected-switch-line-y="props.selectedSwitchLineY"
|
|
99
|
+
:is-visible-line="hasActiveAdapter && isSelectedLinkedWithAdapter"
|
|
100
|
+
:adapters-positions-y="adaptersPositionsY"
|
|
101
|
+
:adapter-line-y="props.adaptersWithPositions.adaptersConnectLineY"
|
|
102
|
+
:is-highlighted-adapter-line="isHighlightedAdapterLine"
|
|
103
|
+
:in-network-lines-y="inNetworkLinesY"
|
|
104
|
+
/>
|
|
105
|
+
</svg>
|
|
106
|
+
</div>
|
|
86
107
|
</div>
|
|
87
108
|
</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>
|
|
88
128
|
</template>
|
|
89
129
|
|
|
90
130
|
<script setup lang="ts">
|
|
131
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
91
132
|
import type {
|
|
92
133
|
UI_I_AdaptersWithPositions,
|
|
93
134
|
UI_I_DiagramData,
|
|
@@ -98,6 +139,7 @@ import type {
|
|
|
98
139
|
UI_I_SwitchLine,
|
|
99
140
|
UI_I_Network,
|
|
100
141
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
142
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
101
143
|
import { UI_E_PositionsY } from '~/components/common/diagramMain/lib/models/enums'
|
|
102
144
|
|
|
103
145
|
const props = defineProps<{
|
|
@@ -115,6 +157,7 @@ const props = defineProps<{
|
|
|
115
157
|
selectedSwitchLineY: UI_I_SwitchLine
|
|
116
158
|
isDarkMode: boolean
|
|
117
159
|
networksCount: number
|
|
160
|
+
project: UI_T_Project
|
|
118
161
|
}>()
|
|
119
162
|
|
|
120
163
|
const emits = defineEmits<{
|
|
@@ -134,12 +177,15 @@ const emits = defineEmits<{
|
|
|
134
177
|
): void
|
|
135
178
|
(event: 'select-port', networkId: string, portId: string): void
|
|
136
179
|
(event: 'select-network', networkId: string): void
|
|
180
|
+
(event: 'toggle-diagram'): void
|
|
137
181
|
}>()
|
|
138
182
|
|
|
139
183
|
const { $store }: any = useNuxtApp()
|
|
140
184
|
|
|
141
185
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
142
186
|
|
|
187
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
188
|
+
|
|
143
189
|
const inNetworkLinesY = computed(() => {
|
|
144
190
|
const linesY = []
|
|
145
191
|
props.networksWithPositions.forEach((net, index) => {
|
|
@@ -324,8 +370,19 @@ const onSelectNetwork = (networkId: string): void => {
|
|
|
324
370
|
<style scoped lang="scss">
|
|
325
371
|
.diagram {
|
|
326
372
|
&-container {
|
|
327
|
-
display: flex;
|
|
328
|
-
justify-content: center;
|
|
373
|
+
//display: flex;
|
|
374
|
+
//justify-content: center;
|
|
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
|
+
}
|
|
329
386
|
|
|
330
387
|
.diagram-portlet {
|
|
331
388
|
margin-top: 10px;
|
|
@@ -335,16 +392,21 @@ const onSelectNetwork = (networkId: string): void => {
|
|
|
335
392
|
|
|
336
393
|
.diagram {
|
|
337
394
|
&-container-new:not(.diagram-in-portlet) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
padding: 16px;
|
|
342
|
-
border-radius: 8px;
|
|
343
|
-
background: var(--diagram-container-bg);
|
|
344
|
-
box-shadow: 0 1px 4px 0 #00000014;
|
|
395
|
+
.diagrams.is-show-diagram {
|
|
396
|
+
margin-top: 24px;
|
|
397
|
+
}
|
|
345
398
|
|
|
346
399
|
.diagram-second-container {
|
|
347
400
|
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
|
+
}
|
|
348
410
|
|
|
349
411
|
.diagram-svg {
|
|
350
412
|
margin: 22.5px 17.5px;
|
|
@@ -357,6 +419,28 @@ const onSelectNetwork = (networkId: string): void => {
|
|
|
357
419
|
}
|
|
358
420
|
}
|
|
359
421
|
}
|
|
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
|
+
}
|
|
360
444
|
</style>
|
|
361
445
|
<style lang="scss">
|
|
362
446
|
.diagram-actions__popup.navbar-dropdown-menu {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
v-if="props.diagramData"
|
|
4
4
|
:class="{ 'diagram-min-width': !props.inPortlet }"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/>
|
|
6
|
+
<div
|
|
7
|
+
:class="[
|
|
8
|
+
'diagram-main-container',
|
|
9
|
+
{
|
|
10
|
+
'is-new-view': isNewView,
|
|
11
|
+
'in-portlet': props.inPortlet,
|
|
12
|
+
},
|
|
13
|
+
]"
|
|
14
|
+
>
|
|
16
15
|
<common-diagram-main-diagram
|
|
16
|
+
:project="props.project"
|
|
17
17
|
:diagram-data="props.diagramData"
|
|
18
18
|
:is-show-diagram="isShowDiagram"
|
|
19
19
|
:in-portlet="props.inPortlet"
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
:selected-switch-line-y="selectedSwitchLineY"
|
|
29
29
|
:is-dark-mode="props.isDarkMode"
|
|
30
30
|
:networks-count="networksCount"
|
|
31
|
+
@toggle-diagram="onToggleDiagram"
|
|
31
32
|
@click-diagram="onClickDiagram"
|
|
32
33
|
@toggle-adapters="onToggleAdapters"
|
|
33
34
|
@select-adapter="onSelectAdapter"
|
|
@@ -74,6 +75,8 @@
|
|
|
74
75
|
:selected-switch-id="selectedSwitchId"
|
|
75
76
|
:tcp-stacks="props.tcpStacks"
|
|
76
77
|
:is-networking-loading="props.isNetworkingLoading"
|
|
78
|
+
:is-get-existing-switches-loading="props.isGetExistingSwitchesLoading"
|
|
79
|
+
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
77
80
|
:networks-list="props.networksList"
|
|
78
81
|
:is-migrate-adapter-loading="props.isMigrateAdapterLoading"
|
|
79
82
|
:diagrams-data="props.diagramsData"
|
|
@@ -172,6 +175,8 @@ const props = withDefaults(
|
|
|
172
175
|
diagramsData?: UI_I_DiagramData[]
|
|
173
176
|
isManageAdaptersModalLoading?: boolean
|
|
174
177
|
isNetworkingLoading?: boolean
|
|
178
|
+
isGetExistingSwitchesLoading?: boolean
|
|
179
|
+
isGetTcpStackLoading?: boolean
|
|
175
180
|
isRemoveModalLoading?: boolean
|
|
176
181
|
isEditModalLoading?: boolean
|
|
177
182
|
isMigrateAdapterLoading?: boolean
|
|
@@ -193,12 +198,18 @@ const props = withDefaults(
|
|
|
193
198
|
diagramsData: [],
|
|
194
199
|
isManageAdaptersModalLoading: false,
|
|
195
200
|
isNetworkingLoading: false,
|
|
201
|
+
isGetExistingSwitchesLoading: false,
|
|
202
|
+
isGetTcpStackLoading: false,
|
|
196
203
|
isRemoveModalLoading: false,
|
|
197
204
|
isEditModalLoading: false,
|
|
198
205
|
isMigrateAdapterLoading: false,
|
|
199
206
|
}
|
|
200
207
|
)
|
|
201
208
|
|
|
209
|
+
const { $store }: any = useNuxtApp()
|
|
210
|
+
|
|
211
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
212
|
+
|
|
202
213
|
const initialData = ref<UI_I_ModalsInitialData>({})
|
|
203
214
|
const switchInitialData = ref<UI_I_ModalsInitialData>({})
|
|
204
215
|
|
|
@@ -880,11 +891,30 @@ const onClickDiagram = (ev: MouseEvent): void => {
|
|
|
880
891
|
&-min-width {
|
|
881
892
|
//min-width: 745px;
|
|
882
893
|
//min-width: 764px;
|
|
894
|
+
&:not(:first-of-type) {
|
|
895
|
+
margin-top: 16px;
|
|
896
|
+
}
|
|
883
897
|
}
|
|
884
898
|
&-main-container {
|
|
885
899
|
padding-top: 5px;
|
|
886
900
|
}
|
|
887
901
|
}
|
|
902
|
+
|
|
903
|
+
.diagram-main-container.is-new-view {
|
|
904
|
+
//display: flex;
|
|
905
|
+
//justify-content: center;
|
|
906
|
+
//margin: 16px 16px 30px;
|
|
907
|
+
|
|
908
|
+
padding: 16px;
|
|
909
|
+
border-radius: 8px;
|
|
910
|
+
background: var(--diagram-container-bg);
|
|
911
|
+
box-shadow: 0 1px 4px 0 #00000014;
|
|
912
|
+
|
|
913
|
+
&.in-portlet {
|
|
914
|
+
box-shadow: none;
|
|
915
|
+
padding: 0;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
888
918
|
</style>
|
|
889
919
|
<style lang="scss">
|
|
890
920
|
.diagram-main-actions__popup.navbar-dropdown-menu {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="currentComponent"
|
|
4
|
+
:project="props.project"
|
|
5
|
+
:is-show-diagram="props.isShowDiagram"
|
|
6
|
+
:diagram-name="props.diagramName"
|
|
7
|
+
:test-id="props.testId"
|
|
8
|
+
@toggle-diagram="emits('toggle-diagram')"
|
|
9
|
+
@show-modal="onShowModal"
|
|
10
|
+
/>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup lang="ts">
|
|
14
|
+
import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
15
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(
|
|
18
|
+
defineProps<{
|
|
19
|
+
isShowDiagram: boolean
|
|
20
|
+
diagramName: string
|
|
21
|
+
testId: string
|
|
22
|
+
project?: UI_T_Project
|
|
23
|
+
}>(),
|
|
24
|
+
{
|
|
25
|
+
project: undefined,
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
const emits = defineEmits<{
|
|
30
|
+
(event: 'toggle-diagram'): void
|
|
31
|
+
(event: 'show-modal', modalName: string, data?: { switch_name: string }): void
|
|
32
|
+
}>()
|
|
33
|
+
|
|
34
|
+
const { $store }: any = useNuxtApp()
|
|
35
|
+
|
|
36
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
37
|
+
|
|
38
|
+
const currentComponent = computed(() =>
|
|
39
|
+
isNewView.value
|
|
40
|
+
? defineAsyncComponent(() => import('./HeaderNew.vue'))
|
|
41
|
+
: defineAsyncComponent(() => import('./HeaderOld.vue'))
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
const onShowModal = (modalName: string, data?: { switch_name: string }) => {
|
|
45
|
+
emits('show-modal', modalName, data)
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="diagram-header">
|
|
3
|
+
<div class="diagram-header-left">
|
|
4
|
+
<span
|
|
5
|
+
class="diagram-header-left-icon"
|
|
6
|
+
:data-id="`${props.testId}-toggle-icon`"
|
|
7
|
+
>
|
|
8
|
+
<ui-icon
|
|
9
|
+
name="arrow"
|
|
10
|
+
width="20"
|
|
11
|
+
height="20"
|
|
12
|
+
:class="[
|
|
13
|
+
'diagram-header-left-icon-arrow',
|
|
14
|
+
{
|
|
15
|
+
open: props.isShowDiagram,
|
|
16
|
+
},
|
|
17
|
+
]"
|
|
18
|
+
@click="emits('toggle-diagram')"
|
|
19
|
+
/>
|
|
20
|
+
</span>
|
|
21
|
+
|
|
22
|
+
<span class="diagram-header-left-title" @click="emits('toggle-diagram')">
|
|
23
|
+
{{ localization.common.standardSwitch }}:
|
|
24
|
+
{{ props.diagramName }}
|
|
25
|
+
</span>
|
|
26
|
+
</div>
|
|
27
|
+
<div v-if="props.isShowDiagram" class="diagram-header-right">
|
|
28
|
+
<ui-button-group
|
|
29
|
+
:buttons="buttons"
|
|
30
|
+
:left-line="true"
|
|
31
|
+
:group-id="props.diagramName"
|
|
32
|
+
class="switch-actions"
|
|
33
|
+
@action="onSelectAction"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script setup lang="ts">
|
|
40
|
+
import type { UI_I_Button } from '~/node_modules/bfg-common/components/common/tools/lib/models/interfaces'
|
|
41
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
42
|
+
import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
43
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
44
|
+
import { switchMainNavigationNewFunc } from '~/components/common/diagramMain/modals/lib/config'
|
|
45
|
+
|
|
46
|
+
const props = withDefaults(
|
|
47
|
+
defineProps<{
|
|
48
|
+
isShowDiagram: boolean
|
|
49
|
+
diagramName: string
|
|
50
|
+
testId: string
|
|
51
|
+
project?: UI_T_Project
|
|
52
|
+
}>(),
|
|
53
|
+
{
|
|
54
|
+
project: undefined,
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
const emits = defineEmits<{
|
|
59
|
+
(event: 'toggle-diagram'): void
|
|
60
|
+
(
|
|
61
|
+
event: 'show-modal',
|
|
62
|
+
modalName: string,
|
|
63
|
+
properties?: UI_I_ModalsInitialData
|
|
64
|
+
): void
|
|
65
|
+
}>()
|
|
66
|
+
|
|
67
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
68
|
+
|
|
69
|
+
const buttons = computed<UI_I_Button[]>(() =>
|
|
70
|
+
switchMainNavigationNewFunc(localization.value, props.testId)
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
const onShowModal = (modalName: string, diagramName?: string) => {
|
|
74
|
+
diagramName
|
|
75
|
+
? emits(
|
|
76
|
+
'show-modal',
|
|
77
|
+
modalName,
|
|
78
|
+
diagramName && { switch_name: diagramName }
|
|
79
|
+
)
|
|
80
|
+
: emits('show-modal', modalName)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const onSelectAction = (event: string): void => {
|
|
84
|
+
onShowModal(event, event === 'add-networking' && props.diagramName)
|
|
85
|
+
}
|
|
86
|
+
</script>
|
|
87
|
+
|
|
88
|
+
<style scoped lang="scss">
|
|
89
|
+
.diagram-header {
|
|
90
|
+
display: flex;
|
|
91
|
+
height: 20px;
|
|
92
|
+
|
|
93
|
+
&-left {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-wrap: nowrap;
|
|
96
|
+
align-items: center;
|
|
97
|
+
column-gap: 12px;
|
|
98
|
+
height: 20px;
|
|
99
|
+
min-width: max-content;
|
|
100
|
+
|
|
101
|
+
&-icon {
|
|
102
|
+
width: 20px;
|
|
103
|
+
height: 20px;
|
|
104
|
+
color: var(--select-arrow);
|
|
105
|
+
|
|
106
|
+
&-arrow {
|
|
107
|
+
transform: rotate(90deg);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
|
|
110
|
+
&.open {
|
|
111
|
+
transform: rotate(180deg);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-title {
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
font-size: 16px;
|
|
119
|
+
line-height: 19px;
|
|
120
|
+
letter-spacing: 0;
|
|
121
|
+
color: var(--title-form-first-color);
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
|
|
124
|
+
&:hover {
|
|
125
|
+
color: var(--dropdown-item-hover-color);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-right {
|
|
131
|
+
height: 20px;
|
|
132
|
+
width: 100%;
|
|
133
|
+
|
|
134
|
+
:deep(.ui-button-group) {
|
|
135
|
+
.ui-button-group-line {
|
|
136
|
+
height: 20px;
|
|
137
|
+
top: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ui-button-group-items {
|
|
141
|
+
height: 20px !important;
|
|
142
|
+
|
|
143
|
+
.button-from-group {
|
|
144
|
+
height: 20px !important;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
.ui-button-group-dots {
|
|
148
|
+
margin-top: 0;
|
|
149
|
+
padding-top: 0;
|
|
150
|
+
height: 20px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</style>
|