bfg-common 1.6.76 → 1.6.77
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 +4213 -4474
- package/assets/localization/local_en.json +4217 -4479
- package/assets/localization/local_hy.json +4217 -4478
- package/assets/localization/local_kk.json +4216 -4477
- package/assets/localization/local_ru.json +4216 -4477
- package/assets/localization/local_zh.json +4214 -4475
- package/assets/scss/common/global.scss +0 -11
- package/assets/scss/common/normalize.scss +0 -3
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -170
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +0 -3
- package/components/common/adapterManager/AdapterManagerNew.vue +0 -86
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +0 -2
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +2 -3
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
- package/components/common/diagramMain/Diagram.vue +85 -169
- package/components/common/diagramMain/DiagramMain.vue +10 -40
- package/components/common/diagramMain/{header/HeaderOld.vue → Header.vue} +67 -78
- package/components/common/diagramMain/modals/Modals.vue +0 -4
- package/components/common/diagramMain/modals/editSettings/{confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue → ConfirmTeamingSettingsModal.vue} +5 -2
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +102 -104
- package/components/common/diagramMain/modals/editSettings/{modal/EditSettingsModalOld.vue → EditSettingsModal.vue} +51 -12
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +0 -6
- package/components/common/diagramMain/modals/editSettings/tabs/{networkProperties/NetworkPropertiesOld.vue → NetworkProperties.vue} +113 -12
- package/components/common/diagramMain/modals/editSettings/tabs/{security/SecurityOld.vue → Security.vue} +48 -25
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +164 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{teamingFailover/TeamingFailoverOld.vue → TeamingFailover.vue} +48 -11
- package/components/common/diagramMain/modals/editSettings/tabs/{trafficShaping/TrafficShapingOld.vue → TrafficShaping.vue} +134 -12
- package/components/common/diagramMain/modals/editSettings/tabs/port/{ipvFourSettings/IpvFourSettingsOld.vue → IpvFourSettings.vue} +152 -11
- package/components/common/diagramMain/modals/editSettings/tabs/port/{portProperties/PortPropertiesOld.vue → PortProperties.vue} +103 -12
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +2 -43
- package/components/common/diagramMain/modals/lib/config/index.ts +1 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +4 -34
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +30 -38
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
- package/components/common/modals/Rename.vue +1 -3
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +253 -184
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +0 -9
- package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
- package/components/common/pages/tasks/Tasks.vue +1 -4
- package/components/common/pages/tasks/table/Table.vue +23 -25
- package/components/common/readyToComplete/New.vue +0 -1
- package/components/common/split/vertical/New.vue +8 -42
- package/components/common/split/vertical/Old.vue +2 -31
- package/components/common/split/vertical/Vertical.vue +0 -4
- package/components/common/tools/Actions.vue +3 -7
- package/components/common/tools/lib/models/interfaces.ts +0 -1
- package/components/common/vm/actions/add/New.vue +6 -21
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -14
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +0 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/options/New.vue +12 -14
- package/components/common/vm/actions/common/select/options/Old.vue +15 -16
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
- package/components/common/vm/actions/confirm/Confirm.vue +0 -3
- package/components/common/vm/actions/rename/Old.vue +0 -1
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +0 -6
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +2 -13
- package/components/common/wizards/network/add/AddNew.vue +26 -22
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -6
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +1 -5
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +0 -3
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +2 -6
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -4
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +3 -13
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +0 -5
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -3
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +1 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +21 -40
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +14 -44
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +0 -4
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +2 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +7 -22
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +16 -12
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +5 -10
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +11 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +10 -17
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +0 -1
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +15 -35
- package/lib/models/store/tasks/enums.ts +0 -3
- package/lib/models/store/tasks/types.ts +6 -7
- package/package.json +1 -1
- package/plugins/directives.ts +5 -3
- package/public/spice-console/application/agent.js +17 -18
- package/store/tasks/actions.ts +8 -26
- package/store/tasks/mappers/recentTasks.ts +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
- package/components/common/diagramMain/header/Header.vue +0 -49
- package/components/common/diagramMain/header/HeaderNew.vue +0 -155
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +0 -32
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +0 -285
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +0 -254
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +0 -31
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +0 -82
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +0 -15
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +0 -177
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +0 -137
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +0 -91
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +0 -158
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +0 -262
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +0 -192
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +0 -388
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +0 -139
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +0 -286
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +0 -209
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +0 -233
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +0 -128
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +0 -235
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +0 -87
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +0 -99
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +0 -319
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +0 -173
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +0 -348
- package/components/common/diagramMain/skeleton/Header.vue +0 -31
- package/components/common/diagramMain/skeleton/Switch.vue +0 -75
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
|
@@ -1,49 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,32 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-popup
|
|
3
|
-
v-if="props.isShow"
|
|
4
|
-
test-id="unsaved-changes"
|
|
5
|
-
icon-name="circle-warning"
|
|
6
|
-
:texts="texts"
|
|
7
|
-
:title="localization.common.unsavedChanges"
|
|
8
|
-
:message="localization.common.unsavedChangesModalDescription"
|
|
9
|
-
@hide="emits('hide')"
|
|
10
|
-
@submit="emits('leave')"
|
|
11
|
-
/>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
isShow: boolean
|
|
19
|
-
}>()
|
|
20
|
-
|
|
21
|
-
const emits = defineEmits<{
|
|
22
|
-
(event: 'hide'): void
|
|
23
|
-
(event: 'leave'): void
|
|
24
|
-
}>()
|
|
25
|
-
|
|
26
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
27
|
-
|
|
28
|
-
const texts = computed(() => ({
|
|
29
|
-
button1: localization.value.common.cancel,
|
|
30
|
-
button2: localization.value.common.leave,
|
|
31
|
-
}))
|
|
32
|
-
</script>
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="edit-settings">
|
|
3
|
-
<ui-tabs-step
|
|
4
|
-
v-model="selectedTab"
|
|
5
|
-
:items="tabs"
|
|
6
|
-
:errors="tabsErrors"
|
|
7
|
-
:has-error-messages="props.hasErrorMessages"
|
|
8
|
-
@set-alert="emits('show-error-message-alert', selectedTab - 1)"
|
|
9
|
-
/>
|
|
10
|
-
|
|
11
|
-
<div class="edit-settings-content">
|
|
12
|
-
<div class="edit-settings-content-container">
|
|
13
|
-
<template v-if="props.isNetwork || props.isSwitch">
|
|
14
|
-
<common-diagram-main-modals-edit-settings-tabs-network-properties
|
|
15
|
-
v-if="props.isNetwork"
|
|
16
|
-
v-show="selectedTab === '1'"
|
|
17
|
-
:is-show-error-message-alert="props.isShowErrorMessageAlertNew"
|
|
18
|
-
:error-messages="props.errorMessages"
|
|
19
|
-
:initial-data="props.initialData"
|
|
20
|
-
:has-error-messages="props.hasErrorMessages"
|
|
21
|
-
:network-already-exists="props.networkAlreadyExists"
|
|
22
|
-
:flag-send-data="props.flagSendData"
|
|
23
|
-
@change-edit-properties-data="onChangeNetworkEditPropertiesData"
|
|
24
|
-
@change-error-messages="onChangeErrorMessages"
|
|
25
|
-
@hide-error-message-alert="emits('hide-error-message-alert', 0)"
|
|
26
|
-
/>
|
|
27
|
-
<common-diagram-main-modals-edit-settings-tabs-switch-properties
|
|
28
|
-
v-if="props.isSwitch"
|
|
29
|
-
v-show="selectedTab === '1'"
|
|
30
|
-
:is-show-error-message-alert="props.isShowErrorMessageAlertNew"
|
|
31
|
-
:error-messages="props.errorMessages"
|
|
32
|
-
:initial-data="props.initialData"
|
|
33
|
-
:has-error-messages="props.hasErrorMessages"
|
|
34
|
-
@change-edit-properties-data="onChangeSwitchEditPropertiesData"
|
|
35
|
-
@change-error-messages="onChangeErrorMessages"
|
|
36
|
-
@hide-error-message-alert="emits('hide-error-message-alert', 0)"
|
|
37
|
-
/>
|
|
38
|
-
<common-diagram-main-modals-edit-settings-tabs-security
|
|
39
|
-
v-show="selectedTab === '2'"
|
|
40
|
-
:is-switch="props.isSwitch"
|
|
41
|
-
:initial-data="props.initialData"
|
|
42
|
-
@change-edit-security-data="onChangeEditSecurityData"
|
|
43
|
-
/>
|
|
44
|
-
<common-diagram-main-modals-edit-settings-tabs-traffic-shaping
|
|
45
|
-
v-show="selectedTab === '3'"
|
|
46
|
-
:is-show-error-message-alert="props.isShowErrorMessageAlertNew"
|
|
47
|
-
:error-messages="props.errorMessages"
|
|
48
|
-
:initial-data="props.initialData"
|
|
49
|
-
:has-error-messages="props.hasErrorMessages"
|
|
50
|
-
:is-switch="props.isSwitch"
|
|
51
|
-
:flag-send-data="props.flagSendData"
|
|
52
|
-
@change-edit-traffic-shaping-data="onChangeEditTrafficShapingData"
|
|
53
|
-
@change-error-messages="onChangeErrorMessages"
|
|
54
|
-
@hide-error-message-alert="emits('hide-error-message-alert', 2)"
|
|
55
|
-
/>
|
|
56
|
-
<common-diagram-main-modals-edit-settings-tabs-teaming-failover
|
|
57
|
-
v-show="selectedTab === '4'"
|
|
58
|
-
:is-switch="props.isSwitch"
|
|
59
|
-
:adapters="props.adapters"
|
|
60
|
-
:initial-data="props.initialData"
|
|
61
|
-
:adapter-status="props.adapterStatus"
|
|
62
|
-
:is-dark-mode="props.isDarkMode"
|
|
63
|
-
@change-edit-teaming-failover-data="onChangeEditTeamingFailoverData"
|
|
64
|
-
@change-adapter-status="onChangeAdapterStatus"
|
|
65
|
-
/>
|
|
66
|
-
</template>
|
|
67
|
-
<template v-if="props.isPort">
|
|
68
|
-
<common-diagram-main-modals-edit-settings-tabs-port-port-properties
|
|
69
|
-
v-show="selectedTab === '1'"
|
|
70
|
-
:is-show-error-message-alert="props.isShowErrorMessageAlertNew"
|
|
71
|
-
:error-messages="props.errorMessages"
|
|
72
|
-
:initial-data="props.initialData"
|
|
73
|
-
:has-error-messages="props.hasErrorMessages"
|
|
74
|
-
@change-error-messages="onChangeErrorMessages"
|
|
75
|
-
@change-port-edit-properties-data="onChangePortEditPropertiesData"
|
|
76
|
-
@hide-error-message-alert="emits('hide-error-message-alert', 0)"
|
|
77
|
-
/>
|
|
78
|
-
<common-diagram-main-modals-edit-settings-tabs-port-ipv-four-settings
|
|
79
|
-
v-show="selectedTab === '2'"
|
|
80
|
-
:is-show-error-message-alert="props.isShowErrorMessageAlertNew"
|
|
81
|
-
:error-messages="props.errorMessages"
|
|
82
|
-
:initial-data="props.initialData"
|
|
83
|
-
:has-error-messages="props.hasErrorMessages"
|
|
84
|
-
:flag-send-data="props.flagSendData"
|
|
85
|
-
@change-error-messages="onChangeErrorMessages"
|
|
86
|
-
@change-port-ipv-four-data="onChangePortEditIpvFourData"
|
|
87
|
-
@hide-error-message-alert="emits('hide-error-message-alert', 1)"
|
|
88
|
-
/>
|
|
89
|
-
</template>
|
|
90
|
-
</div>
|
|
91
|
-
<div class="edit-settings-content-transparent-block"></div>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<common-diagram-main-modals-edit-settings-confirm-teaming-settings-modal
|
|
95
|
-
:is-show="props.isShowWithoutActiveAdapterModal"
|
|
96
|
-
@hide="emits('hide-without-active-adapter-modal')"
|
|
97
|
-
@submit="emits('approve-without-active-adapter-modal')"
|
|
98
|
-
/>
|
|
99
|
-
</div>
|
|
100
|
-
</template>
|
|
101
|
-
|
|
102
|
-
<script setup lang="ts">
|
|
103
|
-
import type { UI_I_ItemsWithTotalCounts } from '~/lib/models/interfaces'
|
|
104
|
-
import type {
|
|
105
|
-
UI_I_AdapterStatus,
|
|
106
|
-
UI_I_ModalsInitialData,
|
|
107
|
-
UI_I_SwitchAdapterItem,
|
|
108
|
-
UI_I_SecurityFields,
|
|
109
|
-
UI_I_TrafficShapingFields,
|
|
110
|
-
UI_I_TeamingFailoverFields,
|
|
111
|
-
UI_I_PropertiesFields,
|
|
112
|
-
UI_I_EditSettingsErrorMessage,
|
|
113
|
-
UI_I_SwitchPropertiesFields,
|
|
114
|
-
UI_I_PortPropertiesFields,
|
|
115
|
-
UI_I_IpvFourSettingsFields,
|
|
116
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
117
|
-
|
|
118
|
-
const props = defineProps<{
|
|
119
|
-
items: {
|
|
120
|
-
value: string
|
|
121
|
-
text: string
|
|
122
|
-
}[]
|
|
123
|
-
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
124
|
-
initialData: UI_I_ModalsInitialData
|
|
125
|
-
isDarkMode: boolean
|
|
126
|
-
isSwitch: boolean
|
|
127
|
-
isNetwork: boolean
|
|
128
|
-
isPort: boolean
|
|
129
|
-
hasErrorMessages: boolean
|
|
130
|
-
isShowErrorMessageAlertNew: boolean[]
|
|
131
|
-
networkAlreadyExists: boolean
|
|
132
|
-
isShowWithoutActiveAdapterModal: boolean
|
|
133
|
-
adapterStatus: UI_I_AdapterStatus
|
|
134
|
-
errorMessages: UI_I_EditSettingsErrorMessage
|
|
135
|
-
flagSendData: boolean
|
|
136
|
-
}>()
|
|
137
|
-
|
|
138
|
-
const emits = defineEmits<{
|
|
139
|
-
(event: 'show-error-message-alert', tab?: number): void
|
|
140
|
-
(event: 'hide-error-message-alert', tab?: number): void
|
|
141
|
-
(
|
|
142
|
-
event: 'change-error-messages',
|
|
143
|
-
newErrorMessage: string,
|
|
144
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
145
|
-
): void
|
|
146
|
-
(event: 'change-adapter-status', newAdapterStatus: UI_I_AdapterStatus): void
|
|
147
|
-
(
|
|
148
|
-
event: 'change-network-edit-properties-data',
|
|
149
|
-
newNetworkEditPropertiesData: UI_I_PropertiesFields
|
|
150
|
-
): void
|
|
151
|
-
(
|
|
152
|
-
event: 'change-switch-edit-properties-data',
|
|
153
|
-
newSwitchEditPropertiesData: UI_I_SwitchPropertiesFields
|
|
154
|
-
): void
|
|
155
|
-
(
|
|
156
|
-
event: 'change-port-edit-properties-data',
|
|
157
|
-
newSwitchEditPropertiesData: UI_I_SwitchPropertiesFields
|
|
158
|
-
): void
|
|
159
|
-
(
|
|
160
|
-
event: 'change-port-ipv-four-data',
|
|
161
|
-
newPortEditIpvFourData: UI_I_IpvFourSettingsFields
|
|
162
|
-
): void
|
|
163
|
-
(
|
|
164
|
-
event: 'change-edit-security-data',
|
|
165
|
-
newEditSecurityData: UI_I_SecurityFields
|
|
166
|
-
): void
|
|
167
|
-
(
|
|
168
|
-
event: 'change-edit-traffic-shaping-data',
|
|
169
|
-
newEditTrafficShapingData: UI_I_TrafficShapingFields
|
|
170
|
-
): void
|
|
171
|
-
(
|
|
172
|
-
event: 'change-edit-teaming-failover-data',
|
|
173
|
-
newEditTeamingFailoverData: UI_I_TeamingFailoverFields
|
|
174
|
-
): void
|
|
175
|
-
(event: 'hide-without-active-adapter-modal'): void
|
|
176
|
-
(event: 'approve-without-active-adapter-modal'): void
|
|
177
|
-
}>()
|
|
178
|
-
|
|
179
|
-
const selectedTab = defineModel<string>()
|
|
180
|
-
|
|
181
|
-
const tabs = computed<UI_I_TabItem[]>(() =>
|
|
182
|
-
props.items.map((item) => ({ name: item.text, value: item.value }))
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
const tabsErrors = computed<boolean[]>(() =>
|
|
186
|
-
props.isPort
|
|
187
|
-
? [
|
|
188
|
-
props.errorMessages.mtu,
|
|
189
|
-
props.errorMessages.ipFourAddress ||
|
|
190
|
-
props.errorMessages.subnetMask ||
|
|
191
|
-
props.errorMessages.defaultGateway,
|
|
192
|
-
]
|
|
193
|
-
: [
|
|
194
|
-
props.errorMessages.networkLabel ||
|
|
195
|
-
props.errorMessages.vlanId ||
|
|
196
|
-
props.errorMessages.mtu,
|
|
197
|
-
false,
|
|
198
|
-
props.errorMessages.average ||
|
|
199
|
-
props.errorMessages.peak ||
|
|
200
|
-
props.errorMessages.burstSize,
|
|
201
|
-
false,
|
|
202
|
-
]
|
|
203
|
-
)
|
|
204
|
-
|
|
205
|
-
const onChangeErrorMessages = (
|
|
206
|
-
newErrorMessage: string,
|
|
207
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
208
|
-
): void => {
|
|
209
|
-
emits('change-error-messages', newErrorMessage, fieldName)
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const onChangeAdapterStatus = (newAdapterStatus: UI_I_AdapterStatus) => {
|
|
213
|
-
emits('change-adapter-status', newAdapterStatus)
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
const onChangeNetworkEditPropertiesData = (
|
|
217
|
-
newNetworkEditPropertiesData: UI_I_PropertiesFields
|
|
218
|
-
) => {
|
|
219
|
-
emits('change-network-edit-properties-data', newNetworkEditPropertiesData)
|
|
220
|
-
}
|
|
221
|
-
const onChangeSwitchEditPropertiesData = (
|
|
222
|
-
newSwitchEditPropertiesData: UI_I_SwitchPropertiesFields
|
|
223
|
-
) => {
|
|
224
|
-
emits('change-switch-edit-properties-data', newSwitchEditPropertiesData)
|
|
225
|
-
}
|
|
226
|
-
const onChangePortEditPropertiesData = (
|
|
227
|
-
newPortEditPropertiesData: UI_I_PortPropertiesFields
|
|
228
|
-
) => {
|
|
229
|
-
emits('change-port-edit-properties-data', newPortEditPropertiesData)
|
|
230
|
-
}
|
|
231
|
-
const onChangePortEditIpvFourData = (
|
|
232
|
-
newPortEditIpvFourData: UI_I_IpvFourSettingsFields
|
|
233
|
-
) => {
|
|
234
|
-
emits('change-port-ipv-four-data', newPortEditIpvFourData)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const onChangeEditSecurityData = (newEditSecurityData: UI_I_SecurityFields) => {
|
|
238
|
-
emits('change-edit-security-data', newEditSecurityData)
|
|
239
|
-
}
|
|
240
|
-
const onChangeEditTrafficShapingData = (
|
|
241
|
-
newEditTrafficShapingData: UI_I_TrafficShapingFields
|
|
242
|
-
) => {
|
|
243
|
-
emits('change-edit-traffic-shaping-data', newEditTrafficShapingData)
|
|
244
|
-
}
|
|
245
|
-
const onChangeEditTeamingFailoverData = (
|
|
246
|
-
newEditTeamingFailoverData: UI_I_TeamingFailoverFields
|
|
247
|
-
) => {
|
|
248
|
-
emits('change-edit-teaming-failover-data', newEditTeamingFailoverData)
|
|
249
|
-
}
|
|
250
|
-
</script>
|
|
251
|
-
|
|
252
|
-
<style scoped lang="scss">
|
|
253
|
-
.edit-settings {
|
|
254
|
-
display: flex;
|
|
255
|
-
height: 100%;
|
|
256
|
-
|
|
257
|
-
&-content {
|
|
258
|
-
margin-left: 16px;
|
|
259
|
-
overflow: hidden;
|
|
260
|
-
width: 100%;
|
|
261
|
-
height: 100%;
|
|
262
|
-
position: relative;
|
|
263
|
-
|
|
264
|
-
&-container {
|
|
265
|
-
overflow-y: auto;
|
|
266
|
-
width: 100%;
|
|
267
|
-
height: 100%;
|
|
268
|
-
padding-right: 18px;
|
|
269
|
-
padding-bottom: 16px;
|
|
270
|
-
scrollbar-gutter: stable;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&-transparent-block {
|
|
274
|
-
position: absolute;
|
|
275
|
-
background: red;
|
|
276
|
-
height: 16px;
|
|
277
|
-
width: 100%;
|
|
278
|
-
bottom: 0;
|
|
279
|
-
right: 14px;
|
|
280
|
-
background: linear-gradient(rgba(250, 250, 250, 0), var(--modal-bg));
|
|
281
|
-
z-index: var(--z-modal-transparent-block);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
</style>
|