bfg-common 1.6.76 → 1.6.78
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 +1 -14
- package/assets/localization/local_en.json +1 -14
- package/assets/localization/local_hy.json +1 -14
- package/assets/localization/local_kk.json +1 -14
- package/assets/localization/local_ru.json +1 -14
- package/assets/localization/local_zh.json +1 -14
- package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -170
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
- package/components/common/adapterManager/AdapterManager.vue +473 -473
- 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/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/certificate/Certificate.vue +6 -16
- package/components/common/certificate/{Info/Old.vue → CertificateInfo.vue} +34 -6
- package/components/common/certificate/{tools/Tools.vue → Tools.vue} +23 -18
- package/components/common/certificate/lib/config/tabsPannel.ts +22 -0
- 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/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/lib/config/adapterModal.ts +147 -147
- 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/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/switch/Switch.vue +180 -180
- package/components/common/diagramMain/switch/SwitchSelected.vue +111 -111
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- package/components/common/split/horizontal/New.vue +1 -1
- package/components/common/split/horizontal/Old.vue +1 -1
- package/package.json +2 -2
- package/components/common/certificate/Info/Info.vue +0 -61
- package/components/common/certificate/Info/new/New.vue +0 -285
- package/components/common/certificate/Info/new/lib/config/index.ts +0 -59
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +0 -3
- package/components/common/certificate/Info/new/lib/utils/index.ts +0 -10
- package/components/common/certificate/Old.vue +0 -27
- package/components/common/certificate/new/New.vue +0 -30
- package/components/common/certificate/new/Skeleton.vue +0 -155
- package/components/common/certificate/tools/New.vue +0 -48
- package/components/common/certificate/tools/Old.vue +0 -39
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +0 -20
|
@@ -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,151 +1,151 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-diagram-main-highlights-new
|
|
3
|
-
v-if="isNewView"
|
|
4
|
-
:main-classes="mainClasses"
|
|
5
|
-
:second-classes="secondClasses"
|
|
6
|
-
:line-classes="lineClasses"
|
|
7
|
-
:is-main="isMain"
|
|
8
|
-
:is-second="isSecond"
|
|
9
|
-
:is-line="isLine"
|
|
10
|
-
:is-vertical-line="isVerticalLine"
|
|
11
|
-
:data-title="props.dataTitle"
|
|
12
|
-
:width="props.width"
|
|
13
|
-
:height="props.height"
|
|
14
|
-
:x="props.x"
|
|
15
|
-
:y="props.y"
|
|
16
|
-
:x2="props.x2"
|
|
17
|
-
:y2="props.y2"
|
|
18
|
-
:d1="props.d1"
|
|
19
|
-
:d2="props.d2"
|
|
20
|
-
:radius="props.radius"
|
|
21
|
-
:is-network-block="props.isNetworkBlock"
|
|
22
|
-
:is-adapter-block="props.isAdapterBlock"
|
|
23
|
-
/>
|
|
24
|
-
<common-diagram-main-highlights-old
|
|
25
|
-
v-else
|
|
26
|
-
:main-classes="mainClasses"
|
|
27
|
-
:second-classes="secondClasses"
|
|
28
|
-
:line-classes="lineClasses"
|
|
29
|
-
:is-main="isMain"
|
|
30
|
-
:is-second="isSecond"
|
|
31
|
-
:is-line="isLine"
|
|
32
|
-
:data-title="props.dataTitle"
|
|
33
|
-
:width="props.width"
|
|
34
|
-
:height="props.height"
|
|
35
|
-
:x="props.x"
|
|
36
|
-
:y="props.y"
|
|
37
|
-
:x2="props.x2"
|
|
38
|
-
:y2="props.y2"
|
|
39
|
-
:d="props.d"
|
|
40
|
-
/>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
<script setup lang="ts">
|
|
44
|
-
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
45
|
-
|
|
46
|
-
const props = withDefaults(
|
|
47
|
-
defineProps<{
|
|
48
|
-
dataTitle?: string
|
|
49
|
-
type: string
|
|
50
|
-
height?: number | string | undefined
|
|
51
|
-
width?: number | string | undefined
|
|
52
|
-
x?: number | string | undefined
|
|
53
|
-
y?: number | string | undefined
|
|
54
|
-
x2?: number | string | undefined
|
|
55
|
-
y2?: number | string | undefined
|
|
56
|
-
d?: string
|
|
57
|
-
d1?: string
|
|
58
|
-
d2?: string
|
|
59
|
-
hide?: boolean
|
|
60
|
-
radius?: string,
|
|
61
|
-
isNetworkBlock?: boolean
|
|
62
|
-
isAdapterBlock?: boolean
|
|
63
|
-
}>(),
|
|
64
|
-
{
|
|
65
|
-
dataTitle: '',
|
|
66
|
-
width: undefined,
|
|
67
|
-
height: undefined,
|
|
68
|
-
x: undefined,
|
|
69
|
-
y: undefined,
|
|
70
|
-
x2: undefined,
|
|
71
|
-
y2: undefined,
|
|
72
|
-
d: '',
|
|
73
|
-
d1: '',
|
|
74
|
-
d2: '',
|
|
75
|
-
hide: true,
|
|
76
|
-
radius: '3',
|
|
77
|
-
isNetworkBlock: false,
|
|
78
|
-
isAdapterBlock: false,
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
const { $store }: any = useNuxtApp()
|
|
83
|
-
|
|
84
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
85
|
-
|
|
86
|
-
const isMain = computed<boolean>(() => props.type.includes('main'))
|
|
87
|
-
const isSecond = computed<boolean>(() => props.type.includes('second'))
|
|
88
|
-
const isLine = computed<boolean>(() => props.type.includes('line'))
|
|
89
|
-
const isVerticalLine = computed<boolean>(
|
|
90
|
-
() => isLine.value && props.type.includes('vertical')
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
const mainClasses = computed<UI_I_ArbitraryObject<boolean>>(() => ({
|
|
94
|
-
'highlight highlight-stroke': props.type === 'main-orange',
|
|
95
|
-
'selection selection-stroke': props.type === 'main-blue',
|
|
96
|
-
'highlight-hide': props.hide,
|
|
97
|
-
}))
|
|
98
|
-
|
|
99
|
-
const secondClasses = computed<UI_I_ArbitraryObject<boolean>>(() => ({
|
|
100
|
-
'highlight highlight-stroke': props.type === 'second-orange',
|
|
101
|
-
'selection selection-stroke': props.type === 'second-blue',
|
|
102
|
-
'highlight-hide': props.hide,
|
|
103
|
-
}))
|
|
104
|
-
|
|
105
|
-
const lineClasses = computed<UI_I_ArbitraryObject<boolean>>(() => ({
|
|
106
|
-
'highlight-hide': props.hide,
|
|
107
|
-
}))
|
|
108
|
-
</script>
|
|
109
|
-
|
|
110
|
-
<style scoped lang="scss">
|
|
111
|
-
:root.dark-theme {
|
|
112
|
-
.selection-stroke {
|
|
113
|
-
stroke: #0f6082;
|
|
114
|
-
fill: #0f6082;
|
|
115
|
-
}
|
|
116
|
-
.selection-line {
|
|
117
|
-
stroke: #fdd006;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.highlight {
|
|
121
|
-
fill: #7f6509;
|
|
122
|
-
|
|
123
|
-
&-stroke {
|
|
124
|
-
stroke: #7f6509;
|
|
125
|
-
}
|
|
126
|
-
&-hide {
|
|
127
|
-
stroke-opacity: 0;
|
|
128
|
-
fill: transparent;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.selection-stroke {
|
|
134
|
-
stroke: #0079b8;
|
|
135
|
-
fill: #f3f6fa;
|
|
136
|
-
}
|
|
137
|
-
.selection-line {
|
|
138
|
-
stroke: #f3bb00;
|
|
139
|
-
}
|
|
140
|
-
.highlight {
|
|
141
|
-
fill: #fffce8;
|
|
142
|
-
|
|
143
|
-
&-stroke {
|
|
144
|
-
stroke: #f3bb00;
|
|
145
|
-
}
|
|
146
|
-
&-hide {
|
|
147
|
-
stroke-opacity: 0;
|
|
148
|
-
fill: transparent;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-diagram-main-highlights-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
:main-classes="mainClasses"
|
|
5
|
+
:second-classes="secondClasses"
|
|
6
|
+
:line-classes="lineClasses"
|
|
7
|
+
:is-main="isMain"
|
|
8
|
+
:is-second="isSecond"
|
|
9
|
+
:is-line="isLine"
|
|
10
|
+
:is-vertical-line="isVerticalLine"
|
|
11
|
+
:data-title="props.dataTitle"
|
|
12
|
+
:width="props.width"
|
|
13
|
+
:height="props.height"
|
|
14
|
+
:x="props.x"
|
|
15
|
+
:y="props.y"
|
|
16
|
+
:x2="props.x2"
|
|
17
|
+
:y2="props.y2"
|
|
18
|
+
:d1="props.d1"
|
|
19
|
+
:d2="props.d2"
|
|
20
|
+
:radius="props.radius"
|
|
21
|
+
:is-network-block="props.isNetworkBlock"
|
|
22
|
+
:is-adapter-block="props.isAdapterBlock"
|
|
23
|
+
/>
|
|
24
|
+
<common-diagram-main-highlights-old
|
|
25
|
+
v-else
|
|
26
|
+
:main-classes="mainClasses"
|
|
27
|
+
:second-classes="secondClasses"
|
|
28
|
+
:line-classes="lineClasses"
|
|
29
|
+
:is-main="isMain"
|
|
30
|
+
:is-second="isSecond"
|
|
31
|
+
:is-line="isLine"
|
|
32
|
+
:data-title="props.dataTitle"
|
|
33
|
+
:width="props.width"
|
|
34
|
+
:height="props.height"
|
|
35
|
+
:x="props.x"
|
|
36
|
+
:y="props.y"
|
|
37
|
+
:x2="props.x2"
|
|
38
|
+
:y2="props.y2"
|
|
39
|
+
:d="props.d"
|
|
40
|
+
/>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script setup lang="ts">
|
|
44
|
+
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
45
|
+
|
|
46
|
+
const props = withDefaults(
|
|
47
|
+
defineProps<{
|
|
48
|
+
dataTitle?: string
|
|
49
|
+
type: string
|
|
50
|
+
height?: number | string | undefined
|
|
51
|
+
width?: number | string | undefined
|
|
52
|
+
x?: number | string | undefined
|
|
53
|
+
y?: number | string | undefined
|
|
54
|
+
x2?: number | string | undefined
|
|
55
|
+
y2?: number | string | undefined
|
|
56
|
+
d?: string
|
|
57
|
+
d1?: string
|
|
58
|
+
d2?: string
|
|
59
|
+
hide?: boolean
|
|
60
|
+
radius?: string,
|
|
61
|
+
isNetworkBlock?: boolean
|
|
62
|
+
isAdapterBlock?: boolean
|
|
63
|
+
}>(),
|
|
64
|
+
{
|
|
65
|
+
dataTitle: '',
|
|
66
|
+
width: undefined,
|
|
67
|
+
height: undefined,
|
|
68
|
+
x: undefined,
|
|
69
|
+
y: undefined,
|
|
70
|
+
x2: undefined,
|
|
71
|
+
y2: undefined,
|
|
72
|
+
d: '',
|
|
73
|
+
d1: '',
|
|
74
|
+
d2: '',
|
|
75
|
+
hide: true,
|
|
76
|
+
radius: '3',
|
|
77
|
+
isNetworkBlock: false,
|
|
78
|
+
isAdapterBlock: false,
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
const { $store }: any = useNuxtApp()
|
|
83
|
+
|
|
84
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
85
|
+
|
|
86
|
+
const isMain = computed<boolean>(() => props.type.includes('main'))
|
|
87
|
+
const isSecond = computed<boolean>(() => props.type.includes('second'))
|
|
88
|
+
const isLine = computed<boolean>(() => props.type.includes('line'))
|
|
89
|
+
const isVerticalLine = computed<boolean>(
|
|
90
|
+
() => isLine.value && props.type.includes('vertical')
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
const mainClasses = computed<UI_I_ArbitraryObject<boolean>>(() => ({
|
|
94
|
+
'highlight highlight-stroke': props.type === 'main-orange',
|
|
95
|
+
'selection selection-stroke': props.type === 'main-blue',
|
|
96
|
+
'highlight-hide': props.hide,
|
|
97
|
+
}))
|
|
98
|
+
|
|
99
|
+
const secondClasses = computed<UI_I_ArbitraryObject<boolean>>(() => ({
|
|
100
|
+
'highlight highlight-stroke': props.type === 'second-orange',
|
|
101
|
+
'selection selection-stroke': props.type === 'second-blue',
|
|
102
|
+
'highlight-hide': props.hide,
|
|
103
|
+
}))
|
|
104
|
+
|
|
105
|
+
const lineClasses = computed<UI_I_ArbitraryObject<boolean>>(() => ({
|
|
106
|
+
'highlight-hide': props.hide,
|
|
107
|
+
}))
|
|
108
|
+
</script>
|
|
109
|
+
|
|
110
|
+
<style scoped lang="scss">
|
|
111
|
+
:root.dark-theme {
|
|
112
|
+
.selection-stroke {
|
|
113
|
+
stroke: #0f6082;
|
|
114
|
+
fill: #0f6082;
|
|
115
|
+
}
|
|
116
|
+
.selection-line {
|
|
117
|
+
stroke: #fdd006;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.highlight {
|
|
121
|
+
fill: #7f6509;
|
|
122
|
+
|
|
123
|
+
&-stroke {
|
|
124
|
+
stroke: #7f6509;
|
|
125
|
+
}
|
|
126
|
+
&-hide {
|
|
127
|
+
stroke-opacity: 0;
|
|
128
|
+
fill: transparent;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.selection-stroke {
|
|
134
|
+
stroke: #0079b8;
|
|
135
|
+
fill: #f3f6fa;
|
|
136
|
+
}
|
|
137
|
+
.selection-line {
|
|
138
|
+
stroke: #f3bb00;
|
|
139
|
+
}
|
|
140
|
+
.highlight {
|
|
141
|
+
fill: #fffce8;
|
|
142
|
+
|
|
143
|
+
&-stroke {
|
|
144
|
+
stroke: #f3bb00;
|
|
145
|
+
}
|
|
146
|
+
&-hide {
|
|
147
|
+
stroke-opacity: 0;
|
|
148
|
+
fill: transparent;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
</style>
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g v-if="props.isMain" :data-title="`${props.dataTitle}-main`">
|
|
3
|
-
<rect
|
|
4
|
-
:width="props.width"
|
|
5
|
-
:height="props.height"
|
|
6
|
-
:x="props.x"
|
|
7
|
-
:y="props.y"
|
|
8
|
-
:rx="props.radius"
|
|
9
|
-
:ry="props.radius"
|
|
10
|
-
shape-rendering="geometricprecision"
|
|
11
|
-
:class="props.mainClasses"
|
|
12
|
-
/>
|
|
13
|
-
<polyline
|
|
14
|
-
v-if="props.isNetworkBlock"
|
|
15
|
-
:points="`284.5,${props.y} 294.5,${props.y} 294.5,${bottomPoint} 284.5,${bottomPoint}`"
|
|
16
|
-
:class="props.mainClasses"
|
|
17
|
-
/>
|
|
18
|
-
<polyline
|
|
19
|
-
v-if="props.isAdapterBlock"
|
|
20
|
-
:points="`440.5,17.5 430.5,17.5 430.5,${bottomPoint} 440.5,${bottomPoint}`"
|
|
21
|
-
:class="props.mainClasses"
|
|
22
|
-
/>
|
|
23
|
-
</g>
|
|
24
|
-
<g v-if="props.isSecond" :data-title="`${props.dataTitle}-second`">
|
|
25
|
-
<rect
|
|
26
|
-
width="28"
|
|
27
|
-
:height="props.height"
|
|
28
|
-
:x="props.x"
|
|
29
|
-
:y="props.y"
|
|
30
|
-
rx="6"
|
|
31
|
-
ry="6"
|
|
32
|
-
shape-rendering="geometricprecision"
|
|
33
|
-
:class="props.secondClasses"
|
|
34
|
-
/>
|
|
35
|
-
<polyline
|
|
36
|
-
v-if="props.isNetworkBlock"
|
|
37
|
-
:points="`320.5,${props.y} 310.5,${props.y} 310.5,${bottomPoint} 320.5,${bottomPoint}`"
|
|
38
|
-
:class="props.secondClasses"
|
|
39
|
-
/>
|
|
40
|
-
<polyline
|
|
41
|
-
v-if="props.isAdapterBlock"
|
|
42
|
-
:points="`404.5,${props.y} 414.5,${props.y} 414.5,${bottomPoint} 404.5,${bottomPoint}`"
|
|
43
|
-
:class="props.secondClasses"
|
|
44
|
-
/>
|
|
45
|
-
</g>
|
|
46
|
-
<g v-if="props.isLine" :data-title="`${props.dataTitle}-line`">
|
|
47
|
-
<line
|
|
48
|
-
:x1="props.x"
|
|
49
|
-
:y1="props.y"
|
|
50
|
-
:x2="props.x2"
|
|
51
|
-
:y2="props.y2"
|
|
52
|
-
shape-rendering="geometricprecision"
|
|
53
|
-
stroke-width="1.5"
|
|
54
|
-
:class="['selection-line', props.lineClasses]"
|
|
55
|
-
/>
|
|
56
|
-
</g>
|
|
57
|
-
<g v-if="props.isVerticalLine" :data-title="`${props.dataTitle}-vertical-line`">
|
|
58
|
-
<path :d="props.d1" :class="['selection-line', props.lineClasses]" />
|
|
59
|
-
<path :d="props.d2" :class="['selection-line', props.lineClasses]" />
|
|
60
|
-
</g>
|
|
61
|
-
</template>
|
|
62
|
-
|
|
63
|
-
<script setup lang="ts">
|
|
64
|
-
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
65
|
-
|
|
66
|
-
const props = withDefaults(
|
|
67
|
-
defineProps<{
|
|
68
|
-
mainClasses: UI_I_ArbitraryObject<boolean>
|
|
69
|
-
secondClasses: UI_I_ArbitraryObject<boolean>
|
|
70
|
-
lineClasses: UI_I_ArbitraryObject<boolean>
|
|
71
|
-
isMain: boolean
|
|
72
|
-
isSecond: boolean
|
|
73
|
-
isLine: boolean
|
|
74
|
-
isVerticalLine: boolean
|
|
75
|
-
dataTitle: string
|
|
76
|
-
height?: number | string
|
|
77
|
-
width?: number | string
|
|
78
|
-
x?: number | string
|
|
79
|
-
y?: number | string
|
|
80
|
-
x2?: number | string
|
|
81
|
-
y2?: number | string
|
|
82
|
-
d1: string
|
|
83
|
-
d2: string
|
|
84
|
-
radius: string
|
|
85
|
-
isNetworkBlock: boolean
|
|
86
|
-
isAdapterBlock: boolean
|
|
87
|
-
}>(),
|
|
88
|
-
{
|
|
89
|
-
width: 288,
|
|
90
|
-
height: 18,
|
|
91
|
-
x: 6.5,
|
|
92
|
-
y: 20,
|
|
93
|
-
x2: 16.5,
|
|
94
|
-
y2: 20,
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
const bottomPoint = computed<number>(
|
|
99
|
-
() => Number(props.height) + Number(props.y)
|
|
100
|
-
)
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
<style scoped lang="scss">
|
|
104
|
-
.selection-stroke {
|
|
105
|
-
stroke: var(--diagram-selection-line);
|
|
106
|
-
fill: var(--diagram-selection-bg);
|
|
107
|
-
}
|
|
108
|
-
.selection-line {
|
|
109
|
-
stroke: var(--diagram-highlight-line);
|
|
110
|
-
fill: none;
|
|
111
|
-
stroke-width: 1.5px;
|
|
112
|
-
}
|
|
113
|
-
.highlight {
|
|
114
|
-
fill: var(--diagram-highlight-bg);
|
|
115
|
-
|
|
116
|
-
&-stroke {
|
|
117
|
-
stroke: var(--diagram-highlight-line);
|
|
118
|
-
}
|
|
119
|
-
&-hide {
|
|
120
|
-
stroke-opacity: 0;
|
|
121
|
-
fill: transparent;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<g v-if="props.isMain" :data-title="`${props.dataTitle}-main`">
|
|
3
|
+
<rect
|
|
4
|
+
:width="props.width"
|
|
5
|
+
:height="props.height"
|
|
6
|
+
:x="props.x"
|
|
7
|
+
:y="props.y"
|
|
8
|
+
:rx="props.radius"
|
|
9
|
+
:ry="props.radius"
|
|
10
|
+
shape-rendering="geometricprecision"
|
|
11
|
+
:class="props.mainClasses"
|
|
12
|
+
/>
|
|
13
|
+
<polyline
|
|
14
|
+
v-if="props.isNetworkBlock"
|
|
15
|
+
:points="`284.5,${props.y} 294.5,${props.y} 294.5,${bottomPoint} 284.5,${bottomPoint}`"
|
|
16
|
+
:class="props.mainClasses"
|
|
17
|
+
/>
|
|
18
|
+
<polyline
|
|
19
|
+
v-if="props.isAdapterBlock"
|
|
20
|
+
:points="`440.5,17.5 430.5,17.5 430.5,${bottomPoint} 440.5,${bottomPoint}`"
|
|
21
|
+
:class="props.mainClasses"
|
|
22
|
+
/>
|
|
23
|
+
</g>
|
|
24
|
+
<g v-if="props.isSecond" :data-title="`${props.dataTitle}-second`">
|
|
25
|
+
<rect
|
|
26
|
+
width="28"
|
|
27
|
+
:height="props.height"
|
|
28
|
+
:x="props.x"
|
|
29
|
+
:y="props.y"
|
|
30
|
+
rx="6"
|
|
31
|
+
ry="6"
|
|
32
|
+
shape-rendering="geometricprecision"
|
|
33
|
+
:class="props.secondClasses"
|
|
34
|
+
/>
|
|
35
|
+
<polyline
|
|
36
|
+
v-if="props.isNetworkBlock"
|
|
37
|
+
:points="`320.5,${props.y} 310.5,${props.y} 310.5,${bottomPoint} 320.5,${bottomPoint}`"
|
|
38
|
+
:class="props.secondClasses"
|
|
39
|
+
/>
|
|
40
|
+
<polyline
|
|
41
|
+
v-if="props.isAdapterBlock"
|
|
42
|
+
:points="`404.5,${props.y} 414.5,${props.y} 414.5,${bottomPoint} 404.5,${bottomPoint}`"
|
|
43
|
+
:class="props.secondClasses"
|
|
44
|
+
/>
|
|
45
|
+
</g>
|
|
46
|
+
<g v-if="props.isLine" :data-title="`${props.dataTitle}-line`">
|
|
47
|
+
<line
|
|
48
|
+
:x1="props.x"
|
|
49
|
+
:y1="props.y"
|
|
50
|
+
:x2="props.x2"
|
|
51
|
+
:y2="props.y2"
|
|
52
|
+
shape-rendering="geometricprecision"
|
|
53
|
+
stroke-width="1.5"
|
|
54
|
+
:class="['selection-line', props.lineClasses]"
|
|
55
|
+
/>
|
|
56
|
+
</g>
|
|
57
|
+
<g v-if="props.isVerticalLine" :data-title="`${props.dataTitle}-vertical-line`">
|
|
58
|
+
<path :d="props.d1" :class="['selection-line', props.lineClasses]" />
|
|
59
|
+
<path :d="props.d2" :class="['selection-line', props.lineClasses]" />
|
|
60
|
+
</g>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script setup lang="ts">
|
|
64
|
+
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
65
|
+
|
|
66
|
+
const props = withDefaults(
|
|
67
|
+
defineProps<{
|
|
68
|
+
mainClasses: UI_I_ArbitraryObject<boolean>
|
|
69
|
+
secondClasses: UI_I_ArbitraryObject<boolean>
|
|
70
|
+
lineClasses: UI_I_ArbitraryObject<boolean>
|
|
71
|
+
isMain: boolean
|
|
72
|
+
isSecond: boolean
|
|
73
|
+
isLine: boolean
|
|
74
|
+
isVerticalLine: boolean
|
|
75
|
+
dataTitle: string
|
|
76
|
+
height?: number | string
|
|
77
|
+
width?: number | string
|
|
78
|
+
x?: number | string
|
|
79
|
+
y?: number | string
|
|
80
|
+
x2?: number | string
|
|
81
|
+
y2?: number | string
|
|
82
|
+
d1: string
|
|
83
|
+
d2: string
|
|
84
|
+
radius: string
|
|
85
|
+
isNetworkBlock: boolean
|
|
86
|
+
isAdapterBlock: boolean
|
|
87
|
+
}>(),
|
|
88
|
+
{
|
|
89
|
+
width: 288,
|
|
90
|
+
height: 18,
|
|
91
|
+
x: 6.5,
|
|
92
|
+
y: 20,
|
|
93
|
+
x2: 16.5,
|
|
94
|
+
y2: 20,
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
const bottomPoint = computed<number>(
|
|
99
|
+
() => Number(props.height) + Number(props.y)
|
|
100
|
+
)
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped lang="scss">
|
|
104
|
+
.selection-stroke {
|
|
105
|
+
stroke: var(--diagram-selection-line);
|
|
106
|
+
fill: var(--diagram-selection-bg);
|
|
107
|
+
}
|
|
108
|
+
.selection-line {
|
|
109
|
+
stroke: var(--diagram-highlight-line);
|
|
110
|
+
fill: none;
|
|
111
|
+
stroke-width: 1.5px;
|
|
112
|
+
}
|
|
113
|
+
.highlight {
|
|
114
|
+
fill: var(--diagram-highlight-bg);
|
|
115
|
+
|
|
116
|
+
&-stroke {
|
|
117
|
+
stroke: var(--diagram-highlight-line);
|
|
118
|
+
}
|
|
119
|
+
&-hide {
|
|
120
|
+
stroke-opacity: 0;
|
|
121
|
+
fill: transparent;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
</style>
|