bfg-common 1.6.63 → 1.6.65
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 +5 -1
- package/assets/localization/local_en.json +15 -11
- package/assets/localization/local_hy.json +5 -1
- package/assets/localization/local_kk.json +5 -1
- package/assets/localization/local_ru.json +10 -6
- package/assets/localization/local_zh.json +5 -1
- package/components/atoms/dropdown/dropdown/Dropdown.vue +8 -10
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +0 -1
- package/components/common/adapterManager/AdapterManager.vue +473 -473
- package/components/common/adapterManager/AdapterManagerNew.vue +86 -0
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -498
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -70
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +110 -110
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalOld.vue +531 -531
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -32
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +37 -37
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalOld.vue +73 -73
- package/components/common/adapterManager/lib/config/index.ts +19 -19
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +34 -34
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +41 -41
- package/components/common/adapterManager/ui/actions/VerticalSeparator.vue +10 -10
- 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/actions/bar/BarOld.vue +95 -95
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +76 -76
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +77 -77
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -24
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +18 -18
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterOld.vue +38 -38
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -31
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +51 -51
- package/components/common/adapterManager/ui/secondTitle/SecondTitleOld.vue +35 -35
- package/components/common/adapterManager/ui/table/Table.vue +88 -88
- package/components/common/adapterManager/ui/table/TableNew.vue +137 -137
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -141
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -44
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +187 -187
- package/components/common/adapterManager/ui/table/adapters/AdaptersOld.vue +87 -87
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -57
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +81 -81
- package/components/common/adapterManager/ui/table/header/HeaderOld.vue +79 -79
- package/components/common/adapterManager/ui/table/lib/models/types.ts +1 -1
- package/components/common/diagramMain/Diagram.vue +459 -459
- package/components/common/diagramMain/DiagramMain.vue +929 -929
- package/components/common/diagramMain/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/AdapterItem.vue +438 -438
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/adapter/Contents.vue +212 -212
- package/components/common/diagramMain/adapter/Lines.vue +81 -81
- package/components/common/diagramMain/adapter/block/Block.vue +27 -27
- package/components/common/diagramMain/adapter/block/BlockNew.vue +58 -58
- package/components/common/diagramMain/adapter/block/BlockOld.vue +50 -50
- package/components/common/diagramMain/adapter/secondBlock/SecondBlock.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockNew.vue +60 -60
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockOld.vue +51 -51
- package/components/common/diagramMain/header/Header.vue +49 -49
- package/components/common/diagramMain/header/HeaderNew.vue +155 -155
- package/components/common/diagramMain/header/HeaderOld.vue +234 -234
- package/components/common/diagramMain/highlights/Highlights.vue +151 -151
- package/components/common/diagramMain/highlights/HighlightsNew.vue +124 -124
- package/components/common/diagramMain/highlights/HighlightsOld.vue +107 -107
- package/components/common/diagramMain/lib/config/index.ts +81 -81
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/config/positions.ts +194 -194
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- package/components/common/diagramMain/lib/models/interfaces.ts +760 -760
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +331 -331
- package/components/common/diagramMain/modals/Modals.vue +483 -483
- 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/SwitchPropertiesOld.vue +87 -0
- 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/adapterModal.ts +147 -147
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +66 -66
- package/components/common/diagramMain/modals/lib/config/index.ts +56 -56
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +405 -405
- package/components/common/diagramMain/modals/lib/config/portModal.ts +253 -253
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +245 -245
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +88 -88
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +541 -541
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +170 -170
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/VmkernelAdapterReadyComplete.vue +49 -49
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +82 -82
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -106
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +241 -241
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +57 -57
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +174 -174
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +141 -141
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +45 -45
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +323 -323
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +203 -203
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModal.vue +60 -60
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +50 -50
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalOld.vue +70 -70
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/lib/models/interfaces.ts +48 -48
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/diagramMain/network/Lines.vue +107 -107
- package/components/common/diagramMain/network/Network.vue +141 -141
- package/components/common/diagramMain/network/block/Block.vue +37 -37
- package/components/common/diagramMain/network/block/BlockNew.vue +68 -68
- package/components/common/diagramMain/network/block/BlockOld.vue +64 -64
- package/components/common/diagramMain/network/noNetwork/NoNetwork.vue +12 -12
- package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +89 -89
- package/components/common/diagramMain/network/noNetwork/NoNetworkOld.vue +61 -61
- package/components/common/diagramMain/network/secondBlock/SecondBlock.vue +41 -41
- package/components/common/diagramMain/network/secondBlock/SecondBlockNew.vue +64 -64
- package/components/common/diagramMain/network/secondBlock/SecondBlockOld.vue +60 -60
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/diagramMain/skeleton/Header.vue +31 -31
- package/components/common/diagramMain/skeleton/Switch.vue +75 -75
- package/components/common/diagramMain/switch/Switch.vue +180 -180
- package/components/common/diagramMain/switch/SwitchSelected.vue +111 -111
- package/components/common/modals/Rename.vue +3 -1
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/New.vue +5 -0
- package/components/common/monitor/utilization/Old.vue +24 -65
- package/components/common/monitor/utilization/Utilization.vue +14 -22
- package/components/common/monitor/utilization/infoBlock/InfoBlock.vue +2 -125
- package/components/common/monitor/utilization/infoBlock/New.vue +3 -183
- package/components/common/monitor/utilization/infoBlock/Old.vue +66 -71
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- package/components/common/monitor/utilization/lib/models/interfaces.ts +12 -14
- package/components/common/monitor/utilization/lib/utils/index.ts +6 -64
- package/components/common/vm/actions/rename/Old.vue +1 -0
- package/package.json +2 -2
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
- package/components/common/monitor/utilization/infoBlock/progressBar/New.vue +0 -64
- package/components/common/monitor/utilization/infoBlock/progressBar/Old.vue +0 -65
- package/components/common/monitor/utilization/infoBlock/progressBar/ProgressBar.vue +0 -84
- package/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces.ts +0 -10
- package/components/common/monitor/utilization/lib/models/types.ts +0 -1
- package/components/common/monitor/utilization/new/New.vue +0 -167
- package/components/common/monitor/utilization/new/Portlet.vue +0 -42
- package/components/common/monitor/utilization/new/Skeleton.vue +0 -120
- package/components/common/monitor/utilization/new/lib/utils/newPortlet.ts +0 -7
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g data-title="adapter-second-block-group">
|
|
3
|
-
<path
|
|
4
|
-
data-title="adapter-second-block"
|
|
5
|
-
:d="`M 411.5 ${props.adaptersWithPositions.rectPosition} H 391.5 V ${rectBottomPosition} H 411.5 `"
|
|
6
|
-
shape-rendering="geometricprecision"
|
|
7
|
-
class="panel"
|
|
8
|
-
/>
|
|
9
|
-
|
|
10
|
-
<common-diagram-main-highlights
|
|
11
|
-
data-title="adapter-second"
|
|
12
|
-
type="second-orange"
|
|
13
|
-
:d="`M 411.5 ${props.adaptersWithPositions.rectPosition} H 391.5 V ${rectBottomPosition} H 411.5 `"
|
|
14
|
-
:hide="!props.isHighlightedClosedAdapterBlock"
|
|
15
|
-
/>
|
|
16
|
-
</g>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script setup lang="ts">
|
|
20
|
-
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
21
|
-
|
|
22
|
-
const props = defineProps<{
|
|
23
|
-
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
24
|
-
isHighlightedClosedAdapterBlock: boolean
|
|
25
|
-
}>()
|
|
26
|
-
|
|
27
|
-
const rectBottomPosition = computed<number>(
|
|
28
|
-
() =>
|
|
29
|
-
props.adaptersWithPositions.rectPosition +
|
|
30
|
-
props.adaptersWithPositions.height
|
|
31
|
-
)
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<style scoped lang="scss">
|
|
35
|
-
:root.dark-theme {
|
|
36
|
-
.panel {
|
|
37
|
-
fill: #1b2a32;
|
|
38
|
-
stroke: #adbbc4;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.panel {
|
|
43
|
-
fill: #fff;
|
|
44
|
-
stroke: #888;
|
|
45
|
-
margin-bottom: 20px;
|
|
46
|
-
background-color: #fff;
|
|
47
|
-
border: 1px solid transparent;
|
|
48
|
-
border-radius: 0;
|
|
49
|
-
box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
|
|
50
|
-
}
|
|
51
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<g data-title="adapter-second-block-group">
|
|
3
|
+
<path
|
|
4
|
+
data-title="adapter-second-block"
|
|
5
|
+
:d="`M 411.5 ${props.adaptersWithPositions.rectPosition} H 391.5 V ${rectBottomPosition} H 411.5 `"
|
|
6
|
+
shape-rendering="geometricprecision"
|
|
7
|
+
class="panel"
|
|
8
|
+
/>
|
|
9
|
+
|
|
10
|
+
<common-diagram-main-highlights
|
|
11
|
+
data-title="adapter-second"
|
|
12
|
+
type="second-orange"
|
|
13
|
+
:d="`M 411.5 ${props.adaptersWithPositions.rectPosition} H 391.5 V ${rectBottomPosition} H 411.5 `"
|
|
14
|
+
:hide="!props.isHighlightedClosedAdapterBlock"
|
|
15
|
+
/>
|
|
16
|
+
</g>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
21
|
+
|
|
22
|
+
const props = defineProps<{
|
|
23
|
+
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
24
|
+
isHighlightedClosedAdapterBlock: boolean
|
|
25
|
+
}>()
|
|
26
|
+
|
|
27
|
+
const rectBottomPosition = computed<number>(
|
|
28
|
+
() =>
|
|
29
|
+
props.adaptersWithPositions.rectPosition +
|
|
30
|
+
props.adaptersWithPositions.height
|
|
31
|
+
)
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<style scoped lang="scss">
|
|
35
|
+
:root.dark-theme {
|
|
36
|
+
.panel {
|
|
37
|
+
fill: #1b2a32;
|
|
38
|
+
stroke: #adbbc4;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.panel {
|
|
43
|
+
fill: #fff;
|
|
44
|
+
stroke: #888;
|
|
45
|
+
margin-bottom: 20px;
|
|
46
|
+
background-color: #fff;
|
|
47
|
+
border: 1px solid transparent;
|
|
48
|
+
border-radius: 0;
|
|
49
|
+
box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
@@ -1,49 +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>
|
|
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>
|
|
@@ -1,155 +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>
|
|
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>
|