bfg-common 1.4.498 → 1.4.500
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/img/icons/icons-sprite-dark-1.svg +407 -407
- package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
- package/assets/img/icons/icons-sprite-light-1.svg +407 -407
- package/assets/img/icons/icons-sprite-light-2.svg +343 -343
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +255 -255
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +94 -94
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/table/dataGrid/DataGrid.vue +1633 -1633
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +199 -199
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/diagramMain/Diagram.vue +364 -364
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- 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/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- 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 +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- 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/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/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/modals/confirmation/Confirmation.vue +70 -70
- package/components/common/vm/actions/add/Add.vue +617 -617
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +267 -267
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +254 -204
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +163 -164
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -125
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/Location.vue +71 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/{Location.vue → location/LocationOld.vue} +134 -145
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -84
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -53
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
- package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
- package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
- package/components/common/vm/actions/editSettings/EditSettings.vue +214 -214
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +182 -182
- package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/date.ts +233 -233
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import type { UI_I_SelectVmkernelAdapter } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
-
import type { UI_I_WizardStep, UI_I_ValidationReturn } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
4
|
-
import { UI_E_MigrationValidationFields } from '~/components/common/diagramMain/lib/models/enums'
|
|
5
|
-
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
|
6
|
-
|
|
7
|
-
export const validateSelectedVmLocal = (
|
|
8
|
-
localization: UI_I_Localization,
|
|
9
|
-
data: UI_I_SelectVmkernelAdapter,
|
|
10
|
-
wizard: Wizard
|
|
11
|
-
): void => {
|
|
12
|
-
wizard.validateFieldLocal(
|
|
13
|
-
0,
|
|
14
|
-
'vm',
|
|
15
|
-
data.vm === '',
|
|
16
|
-
'',
|
|
17
|
-
localization.common.noVmKernelNetworkAdapterSelectedForMigration
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const checkSelectedVmSync = (
|
|
22
|
-
localization: UI_I_Localization,
|
|
23
|
-
data: UI_I_SelectVmkernelAdapter,
|
|
24
|
-
wizard: Wizard,
|
|
25
|
-
value: UI_I_WizardStep[]
|
|
26
|
-
): UI_I_ValidationReturn => {
|
|
27
|
-
let stepHasError = false
|
|
28
|
-
|
|
29
|
-
if (data.vm === '') {
|
|
30
|
-
stepHasError = wizard.setValidation(
|
|
31
|
-
0,
|
|
32
|
-
UI_E_MigrationValidationFields.SELECT_ADAPTER_VM,
|
|
33
|
-
{
|
|
34
|
-
fieldMessage: '',
|
|
35
|
-
alertMessage: localization.common.noVmKernelNetworkAdapterSelectedForMigration,
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
} else if (
|
|
39
|
-
wizard.hasMessage(0, UI_E_MigrationValidationFields.SELECT_ADAPTER_VM)
|
|
40
|
-
) {
|
|
41
|
-
value = wizard.removeValidation(
|
|
42
|
-
0,
|
|
43
|
-
UI_E_MigrationValidationFields.SELECT_ADAPTER_VM,
|
|
44
|
-
value
|
|
45
|
-
)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return {
|
|
49
|
-
newValue: value,
|
|
50
|
-
stepHasError,
|
|
51
|
-
}
|
|
52
|
-
}
|
|
1
|
+
import type { UI_I_SelectVmkernelAdapter } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
+
import type { UI_I_WizardStep, UI_I_ValidationReturn } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
4
|
+
import { UI_E_MigrationValidationFields } from '~/components/common/diagramMain/lib/models/enums'
|
|
5
|
+
import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
|
6
|
+
|
|
7
|
+
export const validateSelectedVmLocal = (
|
|
8
|
+
localization: UI_I_Localization,
|
|
9
|
+
data: UI_I_SelectVmkernelAdapter,
|
|
10
|
+
wizard: Wizard
|
|
11
|
+
): void => {
|
|
12
|
+
wizard.validateFieldLocal(
|
|
13
|
+
0,
|
|
14
|
+
'vm',
|
|
15
|
+
data.vm === '',
|
|
16
|
+
'',
|
|
17
|
+
localization.common.noVmKernelNetworkAdapterSelectedForMigration
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const checkSelectedVmSync = (
|
|
22
|
+
localization: UI_I_Localization,
|
|
23
|
+
data: UI_I_SelectVmkernelAdapter,
|
|
24
|
+
wizard: Wizard,
|
|
25
|
+
value: UI_I_WizardStep[]
|
|
26
|
+
): UI_I_ValidationReturn => {
|
|
27
|
+
let stepHasError = false
|
|
28
|
+
|
|
29
|
+
if (data.vm === '') {
|
|
30
|
+
stepHasError = wizard.setValidation(
|
|
31
|
+
0,
|
|
32
|
+
UI_E_MigrationValidationFields.SELECT_ADAPTER_VM,
|
|
33
|
+
{
|
|
34
|
+
fieldMessage: '',
|
|
35
|
+
alertMessage: localization.common.noVmKernelNetworkAdapterSelectedForMigration,
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
} else if (
|
|
39
|
+
wizard.hasMessage(0, UI_E_MigrationValidationFields.SELECT_ADAPTER_VM)
|
|
40
|
+
) {
|
|
41
|
+
value = wizard.removeValidation(
|
|
42
|
+
0,
|
|
43
|
+
UI_E_MigrationValidationFields.SELECT_ADAPTER_VM,
|
|
44
|
+
value
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return {
|
|
49
|
+
newValue: value,
|
|
50
|
+
stepHasError,
|
|
51
|
+
}
|
|
52
|
+
}
|
package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validateVlanIdConnectionSettingsLocal,
|
|
3
|
-
validateNetworkConnectionSettingsLocal,
|
|
4
|
-
checkConnectionSettingsSync,
|
|
5
|
-
checkNetworkAsync,
|
|
6
|
-
} from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings'
|
|
7
|
-
import {
|
|
8
|
-
checkSelectedVmSync,
|
|
9
|
-
validateSelectedVmLocal,
|
|
10
|
-
} from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter'
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
validateVlanIdConnectionSettingsLocal,
|
|
14
|
-
validateNetworkConnectionSettingsLocal,
|
|
15
|
-
checkConnectionSettingsSync,
|
|
16
|
-
checkNetworkAsync,
|
|
17
|
-
checkSelectedVmSync,
|
|
18
|
-
validateSelectedVmLocal,
|
|
19
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
validateVlanIdConnectionSettingsLocal,
|
|
3
|
+
validateNetworkConnectionSettingsLocal,
|
|
4
|
+
checkConnectionSettingsSync,
|
|
5
|
+
checkNetworkAsync,
|
|
6
|
+
} from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings'
|
|
7
|
+
import {
|
|
8
|
+
checkSelectedVmSync,
|
|
9
|
+
validateSelectedVmLocal,
|
|
10
|
+
} from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter'
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
validateVlanIdConnectionSettingsLocal,
|
|
14
|
+
validateNetworkConnectionSettingsLocal,
|
|
15
|
+
checkConnectionSettingsSync,
|
|
16
|
+
checkNetworkAsync,
|
|
17
|
+
checkSelectedVmSync,
|
|
18
|
+
validateSelectedVmLocal,
|
|
19
|
+
}
|
|
@@ -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>
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g>
|
|
3
|
-
<rect
|
|
4
|
-
width="280"
|
|
5
|
-
height="38"
|
|
6
|
-
shape-rendering="geometricprecision"
|
|
7
|
-
x="16.5"
|
|
8
|
-
y="17.5"
|
|
9
|
-
class="panel"
|
|
10
|
-
></rect>
|
|
11
|
-
<path
|
|
12
|
-
d="M 313.5 17.5 H 333.5 V 55.5 H 313.5 "
|
|
13
|
-
shape-rendering="geometricprecision"
|
|
14
|
-
class="panel"
|
|
15
|
-
></path>
|
|
16
|
-
<text
|
|
17
|
-
dy="14px"
|
|
18
|
-
font-size="14"
|
|
19
|
-
font-weight="500"
|
|
20
|
-
x="50"
|
|
21
|
-
y="27"
|
|
22
|
-
class="diagram__heading"
|
|
23
|
-
>
|
|
24
|
-
{{ localization.common.noAssociatedPortGroups }}
|
|
25
|
-
</text>
|
|
26
|
-
</g>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script setup lang="ts">
|
|
30
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
31
|
-
|
|
32
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style scoped lang="scss">
|
|
36
|
-
@import '~/assets/scss/common/mixins.scss';
|
|
37
|
-
:root.dark-theme {
|
|
38
|
-
.diagram__heading {
|
|
39
|
-
fill: #c1cdd4;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.panel {
|
|
43
|
-
fill: #1b2a32;
|
|
44
|
-
stroke: #adbbc4;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.diagram {
|
|
49
|
-
&__heading {
|
|
50
|
-
@include text($fs: 14px, $fw: 500);
|
|
51
|
-
fill: #565656;
|
|
52
|
-
letter-spacing: normal;
|
|
53
|
-
line-height: 1.2rem;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.panel {
|
|
58
|
-
fill: #fff;
|
|
59
|
-
stroke: #888;
|
|
60
|
-
}
|
|
61
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<g>
|
|
3
|
+
<rect
|
|
4
|
+
width="280"
|
|
5
|
+
height="38"
|
|
6
|
+
shape-rendering="geometricprecision"
|
|
7
|
+
x="16.5"
|
|
8
|
+
y="17.5"
|
|
9
|
+
class="panel"
|
|
10
|
+
></rect>
|
|
11
|
+
<path
|
|
12
|
+
d="M 313.5 17.5 H 333.5 V 55.5 H 313.5 "
|
|
13
|
+
shape-rendering="geometricprecision"
|
|
14
|
+
class="panel"
|
|
15
|
+
></path>
|
|
16
|
+
<text
|
|
17
|
+
dy="14px"
|
|
18
|
+
font-size="14"
|
|
19
|
+
font-weight="500"
|
|
20
|
+
x="50"
|
|
21
|
+
y="27"
|
|
22
|
+
class="diagram__heading"
|
|
23
|
+
>
|
|
24
|
+
{{ localization.common.noAssociatedPortGroups }}
|
|
25
|
+
</text>
|
|
26
|
+
</g>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
31
|
+
|
|
32
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style scoped lang="scss">
|
|
36
|
+
@import '~/assets/scss/common/mixins.scss';
|
|
37
|
+
:root.dark-theme {
|
|
38
|
+
.diagram__heading {
|
|
39
|
+
fill: #c1cdd4;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.panel {
|
|
43
|
+
fill: #1b2a32;
|
|
44
|
+
stroke: #adbbc4;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.diagram {
|
|
49
|
+
&__heading {
|
|
50
|
+
@include text($fs: 14px, $fw: 500);
|
|
51
|
+
fill: #565656;
|
|
52
|
+
letter-spacing: normal;
|
|
53
|
+
line-height: 1.2rem;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.panel {
|
|
58
|
+
fill: #fff;
|
|
59
|
+
stroke: #888;
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g data-title="network-second-block-group">
|
|
3
|
-
<path
|
|
4
|
-
data-title="network-second-block"
|
|
5
|
-
:d="`M 313.5 ${props.network.rectPosition} H 333.5 V ${props.networkRectBottomPosition} H 313.5`"
|
|
6
|
-
shape-rendering="geometricprecision"
|
|
7
|
-
class="panel"
|
|
8
|
-
/>
|
|
9
|
-
|
|
10
|
-
<common-diagram-main-highlights
|
|
11
|
-
data-title="network-second"
|
|
12
|
-
type="second-orange"
|
|
13
|
-
:d="`M 313.5 ${props.network.rectPosition} H 333.5 V ${props.networkRectBottomPosition} H 313.5`"
|
|
14
|
-
:hide="
|
|
15
|
-
props.isCantBeHighlighted ||
|
|
16
|
-
(!props.selectedMainLine && !props.isNetworkConnectedSelectedAdapter)
|
|
17
|
-
"
|
|
18
|
-
/>
|
|
19
|
-
|
|
20
|
-
<common-diagram-main-highlights
|
|
21
|
-
data-title="network-second"
|
|
22
|
-
type="second-blue"
|
|
23
|
-
:d="`M 313.5 ${props.network.rectPosition} H 333.5 V ${props.networkRectBottomPosition} H 313.5`"
|
|
24
|
-
:hide="!(props.selectedNetwork === props.network.id)"
|
|
25
|
-
/>
|
|
26
|
-
</g>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script setup lang="ts">
|
|
30
|
-
import type { UI_I_NetworkFullWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
31
|
-
|
|
32
|
-
const props = defineProps<{
|
|
33
|
-
network: UI_I_NetworkFullWithPositions
|
|
34
|
-
selectedMainLine: boolean
|
|
35
|
-
selectedNetwork: string
|
|
36
|
-
networkRectBottomPosition: number
|
|
37
|
-
isNetworkConnectedSelectedAdapter: boolean
|
|
38
|
-
isCantBeHighlighted: boolean
|
|
39
|
-
}>()
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<style scoped lang="scss">
|
|
43
|
-
:root.dark-theme {
|
|
44
|
-
.panel {
|
|
45
|
-
fill: #1b2a32;
|
|
46
|
-
stroke: #adbbc4;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.panel {
|
|
51
|
-
fill: #fff;
|
|
52
|
-
stroke: #888;
|
|
53
|
-
|
|
54
|
-
margin-bottom: 20px;
|
|
55
|
-
background-color: #fff;
|
|
56
|
-
border: 1px solid transparent;
|
|
57
|
-
border-radius: 0;
|
|
58
|
-
box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
|
|
59
|
-
}
|
|
60
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<g data-title="network-second-block-group">
|
|
3
|
+
<path
|
|
4
|
+
data-title="network-second-block"
|
|
5
|
+
:d="`M 313.5 ${props.network.rectPosition} H 333.5 V ${props.networkRectBottomPosition} H 313.5`"
|
|
6
|
+
shape-rendering="geometricprecision"
|
|
7
|
+
class="panel"
|
|
8
|
+
/>
|
|
9
|
+
|
|
10
|
+
<common-diagram-main-highlights
|
|
11
|
+
data-title="network-second"
|
|
12
|
+
type="second-orange"
|
|
13
|
+
:d="`M 313.5 ${props.network.rectPosition} H 333.5 V ${props.networkRectBottomPosition} H 313.5`"
|
|
14
|
+
:hide="
|
|
15
|
+
props.isCantBeHighlighted ||
|
|
16
|
+
(!props.selectedMainLine && !props.isNetworkConnectedSelectedAdapter)
|
|
17
|
+
"
|
|
18
|
+
/>
|
|
19
|
+
|
|
20
|
+
<common-diagram-main-highlights
|
|
21
|
+
data-title="network-second"
|
|
22
|
+
type="second-blue"
|
|
23
|
+
:d="`M 313.5 ${props.network.rectPosition} H 333.5 V ${props.networkRectBottomPosition} H 313.5`"
|
|
24
|
+
:hide="!(props.selectedNetwork === props.network.id)"
|
|
25
|
+
/>
|
|
26
|
+
</g>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
import type { UI_I_NetworkFullWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
31
|
+
|
|
32
|
+
const props = defineProps<{
|
|
33
|
+
network: UI_I_NetworkFullWithPositions
|
|
34
|
+
selectedMainLine: boolean
|
|
35
|
+
selectedNetwork: string
|
|
36
|
+
networkRectBottomPosition: number
|
|
37
|
+
isNetworkConnectedSelectedAdapter: boolean
|
|
38
|
+
isCantBeHighlighted: boolean
|
|
39
|
+
}>()
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style scoped lang="scss">
|
|
43
|
+
:root.dark-theme {
|
|
44
|
+
.panel {
|
|
45
|
+
fill: #1b2a32;
|
|
46
|
+
stroke: #adbbc4;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.panel {
|
|
51
|
+
fill: #fff;
|
|
52
|
+
stroke: #888;
|
|
53
|
+
|
|
54
|
+
margin-bottom: 20px;
|
|
55
|
+
background-color: #fff;
|
|
56
|
+
border: 1px solid transparent;
|
|
57
|
+
border-radius: 0;
|
|
58
|
+
box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g>
|
|
3
|
-
<template v-if="props.network.toggle">
|
|
4
|
-
<template v-for="port in props.network.ports" :key="port.id">
|
|
5
|
-
<common-diagram-main-port
|
|
6
|
-
:network="props.network"
|
|
7
|
-
:port="port"
|
|
8
|
-
:is-dark-mode="props.isDarkMode"
|
|
9
|
-
:selected-port="props.selectedPort"
|
|
10
|
-
:selected-adapter="props.selectedAdapter"
|
|
11
|
-
@select-port="onSelectPort"
|
|
12
|
-
@show-modal="onShowModal"
|
|
13
|
-
/>
|
|
14
|
-
</template>
|
|
15
|
-
</template>
|
|
16
|
-
</g>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script setup lang="ts">
|
|
20
|
-
import type {
|
|
21
|
-
UI_I_ModalsInitialData,
|
|
22
|
-
UI_I_NetworkFullWithPositions,
|
|
23
|
-
UI_I_SelectedAdapter,
|
|
24
|
-
UI_I_SelectedPort,
|
|
25
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
26
|
-
|
|
27
|
-
const props = defineProps<{
|
|
28
|
-
network: UI_I_NetworkFullWithPositions
|
|
29
|
-
selectedPort: UI_I_SelectedPort
|
|
30
|
-
selectedAdapter: UI_I_SelectedAdapter
|
|
31
|
-
isDarkMode: boolean
|
|
32
|
-
}>()
|
|
33
|
-
|
|
34
|
-
const emits = defineEmits<{
|
|
35
|
-
(event: 'select-port', networkId: string, portId: string): void
|
|
36
|
-
(
|
|
37
|
-
event: 'show-modal',
|
|
38
|
-
value: string,
|
|
39
|
-
properties?: UI_I_ModalsInitialData
|
|
40
|
-
): void
|
|
41
|
-
}>()
|
|
42
|
-
|
|
43
|
-
const onSelectPort = (networkId: string, portId: string) =>
|
|
44
|
-
emits('select-port', networkId, portId)
|
|
45
|
-
const onShowModal = (value: string, properties?: UI_I_ModalsInitialData) =>
|
|
46
|
-
emits('show-modal', value, properties)
|
|
47
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<g>
|
|
3
|
+
<template v-if="props.network.toggle">
|
|
4
|
+
<template v-for="port in props.network.ports" :key="port.id">
|
|
5
|
+
<common-diagram-main-port
|
|
6
|
+
:network="props.network"
|
|
7
|
+
:port="port"
|
|
8
|
+
:is-dark-mode="props.isDarkMode"
|
|
9
|
+
:selected-port="props.selectedPort"
|
|
10
|
+
:selected-adapter="props.selectedAdapter"
|
|
11
|
+
@select-port="onSelectPort"
|
|
12
|
+
@show-modal="onShowModal"
|
|
13
|
+
/>
|
|
14
|
+
</template>
|
|
15
|
+
</template>
|
|
16
|
+
</g>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import type {
|
|
21
|
+
UI_I_ModalsInitialData,
|
|
22
|
+
UI_I_NetworkFullWithPositions,
|
|
23
|
+
UI_I_SelectedAdapter,
|
|
24
|
+
UI_I_SelectedPort,
|
|
25
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
26
|
+
|
|
27
|
+
const props = defineProps<{
|
|
28
|
+
network: UI_I_NetworkFullWithPositions
|
|
29
|
+
selectedPort: UI_I_SelectedPort
|
|
30
|
+
selectedAdapter: UI_I_SelectedAdapter
|
|
31
|
+
isDarkMode: boolean
|
|
32
|
+
}>()
|
|
33
|
+
|
|
34
|
+
const emits = defineEmits<{
|
|
35
|
+
(event: 'select-port', networkId: string, portId: string): void
|
|
36
|
+
(
|
|
37
|
+
event: 'show-modal',
|
|
38
|
+
value: string,
|
|
39
|
+
properties?: UI_I_ModalsInitialData
|
|
40
|
+
): void
|
|
41
|
+
}>()
|
|
42
|
+
|
|
43
|
+
const onSelectPort = (networkId: string, portId: string) =>
|
|
44
|
+
emits('select-port', networkId, portId)
|
|
45
|
+
const onShowModal = (value: string, properties?: UI_I_ModalsInitialData) =>
|
|
46
|
+
emits('show-modal', value, properties)
|
|
47
|
+
</script>
|