bfg-common 1.4.498 → 1.4.499
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/components/common/diagramMain/Diagram.vue +364 -364
- package/components/common/diagramMain/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/block/Block.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlock.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockOld.vue +51 -51
- package/components/common/diagramMain/network/Network.vue +1 -1
- 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/NoNetworkOld.vue +61 -61
- package/components/common/diagramMain/network/secondBlock/SecondBlockOld.vue +60 -60
- package/package.json +1 -1
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g>
|
|
3
|
-
<common-diagram-main-adapter-block
|
|
4
|
-
:is-highlighted-closed-adapter-block="isHighlightedClosedAdapterBlock"
|
|
5
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
6
|
-
/>
|
|
7
|
-
|
|
8
|
-
<common-diagram-main-adapter-contents
|
|
9
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
10
|
-
:test-id="props.testId"
|
|
11
|
-
@toggle-adapters="onToggleAdapters"
|
|
12
|
-
/>
|
|
13
|
-
|
|
14
|
-
<common-diagram-main-adapter-second-block
|
|
15
|
-
:is-highlighted-closed-adapter-block="isHighlightedClosedAdapterBlock"
|
|
16
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
<common-diagram-main-adapter-lines
|
|
20
|
-
v-if="props.isVisibleLine && !!props.networksCount"
|
|
21
|
-
:adapters-connect-line-y="
|
|
22
|
-
props.adaptersWithPositions.adaptersConnectLineY
|
|
23
|
-
"
|
|
24
|
-
:is-highlighted-adapter-line="isHighlightedAdapterLine"
|
|
25
|
-
:first-and-last-network-lines-y="props.firstAndLastNetworkLinesY"
|
|
26
|
-
/>
|
|
27
|
-
|
|
28
|
-
<common-diagram-main-adapter-items
|
|
29
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
30
|
-
:selected-port="props.selectedPort"
|
|
31
|
-
:selected-adapter="props.selectedAdapter"
|
|
32
|
-
:networks-count="props.networksCount"
|
|
33
|
-
:is-dark-mode="props.isDarkMode"
|
|
34
|
-
:networks-with-positions="props.networksWithPositions"
|
|
35
|
-
@select-adapter="onSelectAdapter"
|
|
36
|
-
@show-modal="onShowModal"
|
|
37
|
-
/>
|
|
38
|
-
</g>
|
|
39
|
-
</template>
|
|
40
|
-
|
|
41
|
-
<script setup lang="ts">
|
|
42
|
-
import {
|
|
43
|
-
UI_I_AdaptersWithPositions,
|
|
44
|
-
UI_I_ModalsInitialData,
|
|
45
|
-
UI_I_SelectedAdapter,
|
|
46
|
-
UI_I_SelectedPort,
|
|
47
|
-
UI_I_NetworksWithPositions,
|
|
48
|
-
UI_I_FirstAndLastNetworkLinesY,
|
|
49
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
50
|
-
|
|
51
|
-
const props = defineProps<{
|
|
52
|
-
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
53
|
-
selectedMainLine: boolean
|
|
54
|
-
selectedPort: UI_I_SelectedPort
|
|
55
|
-
selectedAdapter: UI_I_SelectedAdapter
|
|
56
|
-
selectedNetwork: string
|
|
57
|
-
isSelectedLinkedWithAdapter: boolean
|
|
58
|
-
networksWithPositions: UI_I_NetworksWithPositions[]
|
|
59
|
-
isVisibleLine: boolean
|
|
60
|
-
networksCount: number
|
|
61
|
-
isDarkMode: boolean
|
|
62
|
-
testId: string
|
|
63
|
-
firstAndLastNetworkLinesY: UI_I_FirstAndLastNetworkLinesY
|
|
64
|
-
}>()
|
|
65
|
-
|
|
66
|
-
const isOpenedAdapterBlockAndNoSelectedNetwork = computed<boolean>(
|
|
67
|
-
() =>
|
|
68
|
-
!props.adaptersWithPositions.toggle && props.selectedPort.networkId !== '-1'
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
const hasNoAdaptersAndNoSelectedNetwork = computed<boolean>(() => {
|
|
72
|
-
return (
|
|
73
|
-
props.adaptersWithPositions.adapters?.length === 0 &&
|
|
74
|
-
props.selectedNetwork !== '-1'
|
|
75
|
-
)
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
const isHighlightedOptimizePart = computed<boolean>(
|
|
79
|
-
() =>
|
|
80
|
-
!props.selectedMainLine && !isOpenedAdapterBlockAndNoSelectedNetwork.value
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
const isHighlightedAdapterLine = computed<boolean>(
|
|
84
|
-
() =>
|
|
85
|
-
props.isSelectedLinkedWithAdapter &&
|
|
86
|
-
!(
|
|
87
|
-
isHighlightedOptimizePart.value &&
|
|
88
|
-
!hasNoAdaptersAndNoSelectedNetwork.value
|
|
89
|
-
)
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
const isHighlightedClosedAdapterBlock = computed<boolean>(
|
|
93
|
-
() =>
|
|
94
|
-
props.isSelectedLinkedWithAdapter &&
|
|
95
|
-
!(
|
|
96
|
-
isHighlightedOptimizePart.value &&
|
|
97
|
-
!(hasNoAdaptersAndNoSelectedNetwork.value && props.isVisibleLine)
|
|
98
|
-
)
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
const emits = defineEmits<{
|
|
102
|
-
(event: 'toggle-adapters', networkId: string, portId: string): void
|
|
103
|
-
(event: 'select-adapter', adapterId: string): void
|
|
104
|
-
(
|
|
105
|
-
event: 'show-modal',
|
|
106
|
-
value: string,
|
|
107
|
-
properties?: UI_I_ModalsInitialData
|
|
108
|
-
): void
|
|
109
|
-
}>()
|
|
110
|
-
|
|
111
|
-
const onToggleAdapters = (networkId: string, portId: string): void => {
|
|
112
|
-
emits('toggle-adapters', networkId, portId)
|
|
113
|
-
}
|
|
114
|
-
const onSelectAdapter = (adapterId: string): void => {
|
|
115
|
-
emits('select-adapter', adapterId)
|
|
116
|
-
}
|
|
117
|
-
const onShowModal = (
|
|
118
|
-
value: string,
|
|
119
|
-
properties?: UI_I_ModalsInitialData
|
|
120
|
-
): void => {
|
|
121
|
-
emits('show-modal', value, properties)
|
|
122
|
-
}
|
|
123
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<g>
|
|
3
|
+
<common-diagram-main-adapter-block
|
|
4
|
+
:is-highlighted-closed-adapter-block="isHighlightedClosedAdapterBlock"
|
|
5
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
6
|
+
/>
|
|
7
|
+
|
|
8
|
+
<common-diagram-main-adapter-contents
|
|
9
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
10
|
+
:test-id="props.testId"
|
|
11
|
+
@toggle-adapters="onToggleAdapters"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<common-diagram-main-adapter-second-block
|
|
15
|
+
:is-highlighted-closed-adapter-block="isHighlightedClosedAdapterBlock"
|
|
16
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<common-diagram-main-adapter-lines
|
|
20
|
+
v-if="props.isVisibleLine && !!props.networksCount"
|
|
21
|
+
:adapters-connect-line-y="
|
|
22
|
+
props.adaptersWithPositions.adaptersConnectLineY
|
|
23
|
+
"
|
|
24
|
+
:is-highlighted-adapter-line="isHighlightedAdapterLine"
|
|
25
|
+
:first-and-last-network-lines-y="props.firstAndLastNetworkLinesY"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<common-diagram-main-adapter-items
|
|
29
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
30
|
+
:selected-port="props.selectedPort"
|
|
31
|
+
:selected-adapter="props.selectedAdapter"
|
|
32
|
+
:networks-count="props.networksCount"
|
|
33
|
+
:is-dark-mode="props.isDarkMode"
|
|
34
|
+
:networks-with-positions="props.networksWithPositions"
|
|
35
|
+
@select-adapter="onSelectAdapter"
|
|
36
|
+
@show-modal="onShowModal"
|
|
37
|
+
/>
|
|
38
|
+
</g>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script setup lang="ts">
|
|
42
|
+
import {
|
|
43
|
+
UI_I_AdaptersWithPositions,
|
|
44
|
+
UI_I_ModalsInitialData,
|
|
45
|
+
UI_I_SelectedAdapter,
|
|
46
|
+
UI_I_SelectedPort,
|
|
47
|
+
UI_I_NetworksWithPositions,
|
|
48
|
+
UI_I_FirstAndLastNetworkLinesY,
|
|
49
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
50
|
+
|
|
51
|
+
const props = defineProps<{
|
|
52
|
+
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
53
|
+
selectedMainLine: boolean
|
|
54
|
+
selectedPort: UI_I_SelectedPort
|
|
55
|
+
selectedAdapter: UI_I_SelectedAdapter
|
|
56
|
+
selectedNetwork: string
|
|
57
|
+
isSelectedLinkedWithAdapter: boolean
|
|
58
|
+
networksWithPositions: UI_I_NetworksWithPositions[]
|
|
59
|
+
isVisibleLine: boolean
|
|
60
|
+
networksCount: number
|
|
61
|
+
isDarkMode: boolean
|
|
62
|
+
testId: string
|
|
63
|
+
firstAndLastNetworkLinesY: UI_I_FirstAndLastNetworkLinesY
|
|
64
|
+
}>()
|
|
65
|
+
|
|
66
|
+
const isOpenedAdapterBlockAndNoSelectedNetwork = computed<boolean>(
|
|
67
|
+
() =>
|
|
68
|
+
!props.adaptersWithPositions.toggle && props.selectedPort.networkId !== '-1'
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
const hasNoAdaptersAndNoSelectedNetwork = computed<boolean>(() => {
|
|
72
|
+
return (
|
|
73
|
+
props.adaptersWithPositions.adapters?.length === 0 &&
|
|
74
|
+
props.selectedNetwork !== '-1'
|
|
75
|
+
)
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
const isHighlightedOptimizePart = computed<boolean>(
|
|
79
|
+
() =>
|
|
80
|
+
!props.selectedMainLine && !isOpenedAdapterBlockAndNoSelectedNetwork.value
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
const isHighlightedAdapterLine = computed<boolean>(
|
|
84
|
+
() =>
|
|
85
|
+
props.isSelectedLinkedWithAdapter &&
|
|
86
|
+
!(
|
|
87
|
+
isHighlightedOptimizePart.value &&
|
|
88
|
+
!hasNoAdaptersAndNoSelectedNetwork.value
|
|
89
|
+
)
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
const isHighlightedClosedAdapterBlock = computed<boolean>(
|
|
93
|
+
() =>
|
|
94
|
+
props.isSelectedLinkedWithAdapter &&
|
|
95
|
+
!(
|
|
96
|
+
isHighlightedOptimizePart.value &&
|
|
97
|
+
!(hasNoAdaptersAndNoSelectedNetwork.value && props.isVisibleLine)
|
|
98
|
+
)
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
const emits = defineEmits<{
|
|
102
|
+
(event: 'toggle-adapters', networkId: string, portId: string): void
|
|
103
|
+
(event: 'select-adapter', adapterId: string): void
|
|
104
|
+
(
|
|
105
|
+
event: 'show-modal',
|
|
106
|
+
value: string,
|
|
107
|
+
properties?: UI_I_ModalsInitialData
|
|
108
|
+
): void
|
|
109
|
+
}>()
|
|
110
|
+
|
|
111
|
+
const onToggleAdapters = (networkId: string, portId: string): void => {
|
|
112
|
+
emits('toggle-adapters', networkId, portId)
|
|
113
|
+
}
|
|
114
|
+
const onSelectAdapter = (adapterId: string): void => {
|
|
115
|
+
emits('select-adapter', adapterId)
|
|
116
|
+
}
|
|
117
|
+
const onShowModal = (
|
|
118
|
+
value: string,
|
|
119
|
+
properties?: UI_I_ModalsInitialData
|
|
120
|
+
): void => {
|
|
121
|
+
emits('show-modal', value, properties)
|
|
122
|
+
}
|
|
123
|
+
</script>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-diagram-main-adapter-block-new
|
|
3
|
-
v-if="isNewView"
|
|
4
|
-
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
5
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
6
|
-
/>
|
|
7
|
-
<common-diagram-main-adapter-block-old
|
|
8
|
-
v-else
|
|
9
|
-
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
10
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
11
|
-
/>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
19
|
-
isHighlightedClosedAdapterBlock: boolean
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const { $store }: any = useNuxtApp()
|
|
23
|
-
|
|
24
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<style scoped lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-diagram-main-adapter-block-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
5
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
6
|
+
/>
|
|
7
|
+
<common-diagram-main-adapter-block-old
|
|
8
|
+
v-else
|
|
9
|
+
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
10
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
11
|
+
/>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
16
|
+
|
|
17
|
+
const props = defineProps<{
|
|
18
|
+
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
19
|
+
isHighlightedClosedAdapterBlock: boolean
|
|
20
|
+
}>()
|
|
21
|
+
|
|
22
|
+
const { $store }: any = useNuxtApp()
|
|
23
|
+
|
|
24
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-diagram-main-adapter-second-block-new
|
|
3
|
-
v-if="isNewView"
|
|
4
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
5
|
-
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
6
|
-
/>
|
|
7
|
-
<common-diagram-main-adapter-second-block-old
|
|
8
|
-
v-else
|
|
9
|
-
:adapters-with-positions="props.adaptersWithPositions"
|
|
10
|
-
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
11
|
-
/>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
19
|
-
isHighlightedClosedAdapterBlock: boolean
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const { $store }: any = useNuxtApp()
|
|
23
|
-
|
|
24
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<style scoped lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-diagram-main-adapter-second-block-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
5
|
+
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
6
|
+
/>
|
|
7
|
+
<common-diagram-main-adapter-second-block-old
|
|
8
|
+
v-else
|
|
9
|
+
:adapters-with-positions="props.adaptersWithPositions"
|
|
10
|
+
:is-highlighted-closed-adapter-block="props.isHighlightedClosedAdapterBlock"
|
|
11
|
+
/>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
16
|
+
|
|
17
|
+
const props = defineProps<{
|
|
18
|
+
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
19
|
+
isHighlightedClosedAdapterBlock: boolean
|
|
20
|
+
}>()
|
|
21
|
+
|
|
22
|
+
const { $store }: any = useNuxtApp()
|
|
23
|
+
|
|
24
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<style scoped lang="scss"></style>
|
|
@@ -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>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:adapters-positions-y="props.adaptersPositionsY"
|
|
19
19
|
/>
|
|
20
20
|
|
|
21
|
-
<common-diagram-main-network-second-block
|
|
21
|
+
<common-diagram-main-network-second-block
|
|
22
22
|
:network="props.network"
|
|
23
23
|
:selected-network="props.selectedNetwork"
|
|
24
24
|
:selected-main-line="props.selectedMainLine"
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g data-title="network-main-block-group">
|
|
3
|
-
<rect
|
|
4
|
-
data-title="network-main-block"
|
|
5
|
-
width="280"
|
|
6
|
-
:height="props.network.networkHeight"
|
|
7
|
-
x="16.5"
|
|
8
|
-
:y="props.network.rectPosition"
|
|
9
|
-
shape-rendering="geometricprecision"
|
|
10
|
-
class="panel"
|
|
11
|
-
/>
|
|
12
|
-
|
|
13
|
-
<common-diagram-main-highlights
|
|
14
|
-
data-title="network-main"
|
|
15
|
-
type="main-blue"
|
|
16
|
-
:height="props.network.networkHeight"
|
|
17
|
-
:y="props.network.rectPosition"
|
|
18
|
-
:hide="!(props.selectedNetwork === props.network.id)"
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
|
-
<common-diagram-main-highlights
|
|
22
|
-
data-title="network-main"
|
|
23
|
-
type="main-orange"
|
|
24
|
-
:height="props.network.networkHeight"
|
|
25
|
-
:y="props.network.rectPosition"
|
|
26
|
-
:hide="
|
|
27
|
-
props.isCantBeHighlighted ||
|
|
28
|
-
(!props.selectedMainLine && !props.isNetworkConnectedSelectedAdapter)
|
|
29
|
-
"
|
|
30
|
-
/>
|
|
31
|
-
</g>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script setup lang="ts">
|
|
35
|
-
import type { UI_I_NetworkFullWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
36
|
-
|
|
37
|
-
const props = defineProps<{
|
|
38
|
-
network: UI_I_NetworkFullWithPositions
|
|
39
|
-
selectedNetwork: string
|
|
40
|
-
selectedMainLine: boolean
|
|
41
|
-
isNetworkConnectedSelectedAdapter: boolean
|
|
42
|
-
isCantBeHighlighted: boolean
|
|
43
|
-
}>()
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<style scoped lang="scss">
|
|
47
|
-
:root.dark-theme {
|
|
48
|
-
.panel {
|
|
49
|
-
fill: #1b2a32;
|
|
50
|
-
stroke: #adbbc4;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.panel {
|
|
55
|
-
fill: #fff;
|
|
56
|
-
stroke: #888;
|
|
57
|
-
|
|
58
|
-
margin-bottom: 20px;
|
|
59
|
-
background-color: #fff;
|
|
60
|
-
border: 1px solid transparent;
|
|
61
|
-
border-radius: 0;
|
|
62
|
-
box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
|
|
63
|
-
}
|
|
64
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<g data-title="network-main-block-group">
|
|
3
|
+
<rect
|
|
4
|
+
data-title="network-main-block"
|
|
5
|
+
width="280"
|
|
6
|
+
:height="props.network.networkHeight"
|
|
7
|
+
x="16.5"
|
|
8
|
+
:y="props.network.rectPosition"
|
|
9
|
+
shape-rendering="geometricprecision"
|
|
10
|
+
class="panel"
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
<common-diagram-main-highlights
|
|
14
|
+
data-title="network-main"
|
|
15
|
+
type="main-blue"
|
|
16
|
+
:height="props.network.networkHeight"
|
|
17
|
+
:y="props.network.rectPosition"
|
|
18
|
+
:hide="!(props.selectedNetwork === props.network.id)"
|
|
19
|
+
/>
|
|
20
|
+
|
|
21
|
+
<common-diagram-main-highlights
|
|
22
|
+
data-title="network-main"
|
|
23
|
+
type="main-orange"
|
|
24
|
+
:height="props.network.networkHeight"
|
|
25
|
+
:y="props.network.rectPosition"
|
|
26
|
+
:hide="
|
|
27
|
+
props.isCantBeHighlighted ||
|
|
28
|
+
(!props.selectedMainLine && !props.isNetworkConnectedSelectedAdapter)
|
|
29
|
+
"
|
|
30
|
+
/>
|
|
31
|
+
</g>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script setup lang="ts">
|
|
35
|
+
import type { UI_I_NetworkFullWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
36
|
+
|
|
37
|
+
const props = defineProps<{
|
|
38
|
+
network: UI_I_NetworkFullWithPositions
|
|
39
|
+
selectedNetwork: string
|
|
40
|
+
selectedMainLine: boolean
|
|
41
|
+
isNetworkConnectedSelectedAdapter: boolean
|
|
42
|
+
isCantBeHighlighted: boolean
|
|
43
|
+
}>()
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<style scoped lang="scss">
|
|
47
|
+
:root.dark-theme {
|
|
48
|
+
.panel {
|
|
49
|
+
fill: #1b2a32;
|
|
50
|
+
stroke: #adbbc4;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.panel {
|
|
55
|
+
fill: #fff;
|
|
56
|
+
stroke: #888;
|
|
57
|
+
|
|
58
|
+
margin-bottom: 20px;
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
border: 1px solid transparent;
|
|
61
|
+
border-radius: 0;
|
|
62
|
+
box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-diagram-main-network-no-network-new v-if="isNewView" />
|
|
3
|
-
<common-diagram-main-network-no-network-old v-else />
|
|
4
|
-
</template>
|
|
5
|
-
|
|
6
|
-
<script setup lang="ts">
|
|
7
|
-
const { $store }: any = useNuxtApp()
|
|
8
|
-
|
|
9
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<style scoped lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-diagram-main-network-no-network-new v-if="isNewView" />
|
|
3
|
+
<common-diagram-main-network-no-network-old v-else />
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
const { $store }: any = useNuxtApp()
|
|
8
|
+
|
|
9
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<style scoped lang="scss"></style>
|