bfg-common 1.4.799 → 1.4.800
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 +31 -14
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +6 -1
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-1.svg +30 -13
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +6 -1
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +33 -8
- package/assets/localization/local_en.json +33 -8
- package/assets/localization/local_hy.json +33 -8
- package/assets/localization/local_kk.json +34 -9
- package/assets/localization/local_ru.json +43 -18
- package/assets/localization/local_zh.json +33 -8
- package/assets/scss/clarity/local_ar.json +6 -3
- package/assets/scss/common/icons/icons-1.scss +4 -4
- package/components/atoms/autocomplete/Autocomplete.vue +68 -12
- package/components/atoms/select/TheSelect.vue +10 -1
- package/components/atoms/table/dataGrid/DataGrid.vue +12 -4
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +4 -1
- package/components/atoms/table/dataGrid/lib/utils/export.ts +13 -13
- package/components/atoms/tabs/VerticalTabs.vue +11 -6
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/chartOptionsModal/counters/timespan/form/Form.vue +544 -544
- package/components/common/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +116 -116
- package/components/common/context/Context.vue +16 -4
- package/components/common/context/recursion/Recursion.vue +2 -1
- package/components/common/context/recursion/RecursionNew.vue +57 -31
- package/components/common/context/recursion/RecursionOld.vue +33 -19
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- 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 +7 -7
- 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/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/port/Ports.vue +47 -47
- package/components/common/feedback/Buttons.vue +2 -2
- package/components/common/feedback/Message.vue +1 -0
- package/components/common/feedback/VisitPortal.vue +5 -1
- package/components/common/layout/theHeader/feedback/new/New.vue +29 -14
- package/components/common/layout/theHeader/feedback/new/additionalDetails/AdditionalDetails.vue +34 -9
- package/components/common/layout/theHeader/feedback/new/additionalDetails/Headline.vue +17 -6
- package/components/common/layout/theHeader/feedback/new/description/Description.vue +1 -0
- package/components/common/layout/theHeader/feedback/new/email/Email.vue +1 -1
- package/components/common/layout/theHeader/feedback/new/subtitle/Subtitle.vue +22 -6
- package/components/common/layout/theHeader/feedback/new/tabs/Tabs.vue +17 -15
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +1 -1
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +3 -2
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -1
- package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/Notification.vue +7 -7
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +95 -95
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +463 -456
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +389 -387
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +8 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +94 -94
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +66 -66
- package/components/common/pages/home/headline/Headline.vue +3 -2
- package/components/common/pages/home/headline/HeadlineNew.vue +1 -1
- package/components/common/pages/home/headline/HeadlineOld.vue +5 -0
- package/components/common/pages/home/widgets/vms/VmsNew.vue +1 -1
- package/components/common/pages/packages/Packages.vue +208 -0
- package/components/common/pages/packages/lib/config/actions.ts +59 -0
- package/components/common/pages/packages/lib/models/types.ts +8 -0
- package/components/common/pages/packages/tableView/TableView.vue +120 -0
- package/components/common/pages/packages/tableView/lib/config/configTable.ts +136 -0
- package/components/common/pages/packages/tableView/lib/config/tableKey.ts +14 -0
- package/components/common/pages/packages/tableView/lib/models/types.ts +12 -0
- package/components/common/pages/shortcuts/Shortcuts.vue +1 -1
- package/components/common/pages/tasks/Tasks.vue +23 -8
- package/components/common/pages/tasks/table/Table.vue +66 -16
- package/components/common/pages/tasks/table/errorInfo/ErrorInfo.vue +27 -10
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +28 -12
- package/components/common/pages/tasks/table/lib/config/config.ts +11 -11
- package/components/common/select/radio/RadioGroup.vue +3 -3
- package/components/common/selectLanguage/SelectLanguage.vue +29 -25
- package/components/common/selectLanguage/lib/config/config.ts +1 -0
- package/components/common/split/horizontal/HorizontalNew.vue +42 -24
- package/components/common/split/horizontal/HorizontalOld.vue +43 -13
- package/components/common/vm/actions/add/Add.vue +6 -1
- package/components/common/vm/actions/clone/Clone.vue +8 -3
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +6 -4
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +26 -10
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +12 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +4 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +6 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +9 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +3 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +3 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +87 -24
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +14 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +9 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +0 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +43 -12
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +50 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +5 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +64 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +60 -19
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/lib/config/options.ts +11 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +16 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +59 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +60 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionOld.vue +1 -1
- package/components/common/vm/actions/common/lib/config/capabilities.ts +1 -1
- package/components/common/vm/actions/editSettings/EditSettings.vue +4 -0
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +2 -0
- package/components/common/vm/actions/editSettings/new/New.vue +2 -0
- package/components/common/wizards/datastore/add/Add.vue +4 -4
- package/components/common/wizards/datastore/add/lib/config/steps.ts +14 -14
- package/components/common/wizards/datastore/add/lib/validations.ts +9 -9
- package/components/common/wizards/datastore/add/nfs/Nfs.vue +6 -9
- package/components/common/wizards/vm/migrate/Migrate.vue +12 -12
- package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +1 -1
- package/composables/useLocal.ts +3 -1
- package/composables/useLocalStorage.ts +1 -1
- package/lib/models/store/vm/interfaces.ts +11 -0
- package/lib/models/table/interfaces.ts +1 -0
- package/package.json +3 -3
- package/store/tasks/actions.ts +2 -1
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="wizard-content__container">
|
|
3
|
-
<div class="wizard-content">
|
|
4
|
-
<form id="teaming-failover">
|
|
5
|
-
<section class="form-block">
|
|
6
|
-
<template
|
|
7
|
-
v-for="(item, key) in teamingAndFailoverTemplate"
|
|
8
|
-
:key="item.key"
|
|
9
|
-
>
|
|
10
|
-
<div class="horizontal-flex-container">
|
|
11
|
-
<span class="flex-property-label-group large">
|
|
12
|
-
{{ localization.common[item.key] }}
|
|
13
|
-
</span>
|
|
14
|
-
|
|
15
|
-
<div class="flex-property-value-group overridable-dropdown">
|
|
16
|
-
<div class="horizontal-flex-container no-margin">
|
|
17
|
-
<div class="flex-property-value-group">
|
|
18
|
-
<div class="horizontal-flex-container">
|
|
19
|
-
<div
|
|
20
|
-
v-if="!props.isSwitch"
|
|
21
|
-
class="flex-property-label-group small checkbox-inline"
|
|
22
|
-
>
|
|
23
|
-
<input
|
|
24
|
-
:id="`teaming-failover-input-${item.key}`"
|
|
25
|
-
v-model="fieldsValues[item.key].checked"
|
|
26
|
-
:data-id="`${item.testId}-teaming-failover-input`"
|
|
27
|
-
type="checkbox"
|
|
28
|
-
/>
|
|
29
|
-
<label
|
|
30
|
-
:for="`teaming-failover-input-${item.key}`"
|
|
31
|
-
class="normal-weight"
|
|
32
|
-
>
|
|
33
|
-
{{ localization.common.override }}
|
|
34
|
-
</label>
|
|
35
|
-
</div>
|
|
36
|
-
<div class="flex-property-value-group">
|
|
37
|
-
<div class="select">
|
|
38
|
-
<select
|
|
39
|
-
:id="`teaming-failover-select-${key}`"
|
|
40
|
-
v-model="fieldsValues[item.key].selected"
|
|
41
|
-
:data-id="`${item.testId}-teaming-failover-select`"
|
|
42
|
-
:disabled="!fieldsValues[item.key].checked"
|
|
43
|
-
name="selectName"
|
|
44
|
-
>
|
|
45
|
-
<template
|
|
46
|
-
v-for="(option, index) in item.options"
|
|
47
|
-
:key="index"
|
|
48
|
-
>
|
|
49
|
-
<option :value="option.value">
|
|
50
|
-
{{ option.text }}
|
|
51
|
-
</option>
|
|
52
|
-
</template>
|
|
53
|
-
</select>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
</template>
|
|
62
|
-
</section>
|
|
63
|
-
<div class="form-block">
|
|
64
|
-
<label> {{ localization.common.failoverOrder }} </label>
|
|
65
|
-
</div>
|
|
66
|
-
</form>
|
|
67
|
-
<div v-if="!props.isSwitch" class="horizontal-flex-container">
|
|
68
|
-
<div class="flex-property-label-group small checkbox-inline">
|
|
69
|
-
<input
|
|
70
|
-
id="failover-order"
|
|
71
|
-
v-model="fieldsValues.failoverOrder.checked"
|
|
72
|
-
data-id="failover-order-input"
|
|
73
|
-
type="checkbox"
|
|
74
|
-
/>
|
|
75
|
-
<label for="failover-order" class="normal-weight">
|
|
76
|
-
{{ localization.common.override }}
|
|
77
|
-
</label>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
<common-adapter-manager
|
|
81
|
-
test-id="teaming-failover"
|
|
82
|
-
:is-active="fieldsValues.failoverOrder.checked"
|
|
83
|
-
:adapters="props.adapters"
|
|
84
|
-
:initial-data="props.initialData"
|
|
85
|
-
:adapter-status="props.adapterStatus"
|
|
86
|
-
:is-dark-mode="props.isDarkMode"
|
|
87
|
-
@change-adapter-status="onChangeAdapterStatus"
|
|
88
|
-
/>
|
|
89
|
-
<div class="select-adapter-info">
|
|
90
|
-
<span>
|
|
91
|
-
{{ localization.common.selectActiveAndStandbyAdapters }}
|
|
92
|
-
</span>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
</template>
|
|
97
|
-
|
|
98
|
-
<script setup lang="ts">
|
|
99
|
-
import type {
|
|
100
|
-
UI_I_Localization,
|
|
101
|
-
UI_I_ItemsWithTotalCounts,
|
|
102
|
-
} from '~/lib/models/interfaces'
|
|
103
|
-
import type {
|
|
104
|
-
UI_I_TeamingFailoverFields,
|
|
105
|
-
UI_I_SwitchAdapterItem,
|
|
106
|
-
UI_I_ModalsInitialData,
|
|
107
|
-
UI_I_TeamingAndFailoverTemplate,
|
|
108
|
-
UI_I_AdapterStatus,
|
|
109
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
110
|
-
import {
|
|
111
|
-
teamingFailoverFieldsInitialFunc,
|
|
112
|
-
teamingAndFailoverTemplateMakerFunc,
|
|
113
|
-
} from '~/components/common/diagramMain/modals/lib/config'
|
|
114
|
-
|
|
115
|
-
// Props from up
|
|
116
|
-
const props = withDefaults(
|
|
117
|
-
defineProps<{
|
|
118
|
-
initialData?: UI_I_ModalsInitialData
|
|
119
|
-
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
120
|
-
adapterStatus: UI_I_AdapterStatus
|
|
121
|
-
isSwitch: boolean
|
|
122
|
-
isDarkMode?: boolean
|
|
123
|
-
}>(),
|
|
124
|
-
{
|
|
125
|
-
initialData: () => ({}),
|
|
126
|
-
isSwitch: false,
|
|
127
|
-
isDarkMode: false,
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
|
|
131
|
-
// UI_I_Localization
|
|
132
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
133
|
-
|
|
134
|
-
// Making fields template
|
|
135
|
-
const teamingAndFailoverTemplate = computed<UI_I_TeamingAndFailoverTemplate[]>(
|
|
136
|
-
() => teamingAndFailoverTemplateMakerFunc(localization.value)
|
|
137
|
-
)
|
|
138
|
-
// Temporary data for this component
|
|
139
|
-
const fieldsValues = ref<UI_I_TeamingFailoverFields>(
|
|
140
|
-
teamingFailoverFieldsInitialFunc(props.isSwitch, props.initialData)
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
const emits = defineEmits<{
|
|
144
|
-
(
|
|
145
|
-
event: 'change-edit-teaming-failover-data',
|
|
146
|
-
teamingFailoverData: UI_I_TeamingFailoverFields
|
|
147
|
-
): void
|
|
148
|
-
(event: 'change-adapter-status', adapterStatus: UI_I_AdapterStatus): void
|
|
149
|
-
}>()
|
|
150
|
-
|
|
151
|
-
const onChangeData = (data: UI_I_TeamingFailoverFields) =>
|
|
152
|
-
emits('change-edit-teaming-failover-data', data)
|
|
153
|
-
|
|
154
|
-
const onChangeAdapterStatus = (adapterStatus: UI_I_AdapterStatus) =>
|
|
155
|
-
emits('change-adapter-status', adapterStatus)
|
|
156
|
-
|
|
157
|
-
watch(
|
|
158
|
-
fieldsValues,
|
|
159
|
-
(newFieldsValues: UI_I_TeamingFailoverFields) => {
|
|
160
|
-
onChangeData(newFieldsValues)
|
|
161
|
-
},
|
|
162
|
-
{ deep: true, immediate: true }
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
onMounted(() => {
|
|
166
|
-
onChangeData(fieldsValues.value)
|
|
167
|
-
})
|
|
168
|
-
</script>
|
|
169
|
-
<style lang="scss" scoped>
|
|
170
|
-
:deep(.diagram-action__edit) {
|
|
171
|
-
.table-fixed-height {
|
|
172
|
-
max-height: 227px;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="wizard-content__container">
|
|
3
|
+
<div class="wizard-content">
|
|
4
|
+
<form id="teaming-failover">
|
|
5
|
+
<section class="form-block">
|
|
6
|
+
<template
|
|
7
|
+
v-for="(item, key) in teamingAndFailoverTemplate"
|
|
8
|
+
:key="item.key"
|
|
9
|
+
>
|
|
10
|
+
<div class="horizontal-flex-container">
|
|
11
|
+
<span class="flex-property-label-group large">
|
|
12
|
+
{{ localization.common[item.key] }}
|
|
13
|
+
</span>
|
|
14
|
+
|
|
15
|
+
<div class="flex-property-value-group overridable-dropdown">
|
|
16
|
+
<div class="horizontal-flex-container no-margin">
|
|
17
|
+
<div class="flex-property-value-group">
|
|
18
|
+
<div class="horizontal-flex-container">
|
|
19
|
+
<div
|
|
20
|
+
v-if="!props.isSwitch"
|
|
21
|
+
class="flex-property-label-group small checkbox-inline"
|
|
22
|
+
>
|
|
23
|
+
<input
|
|
24
|
+
:id="`teaming-failover-input-${item.key}`"
|
|
25
|
+
v-model="fieldsValues[item.key].checked"
|
|
26
|
+
:data-id="`${item.testId}-teaming-failover-input`"
|
|
27
|
+
type="checkbox"
|
|
28
|
+
/>
|
|
29
|
+
<label
|
|
30
|
+
:for="`teaming-failover-input-${item.key}`"
|
|
31
|
+
class="normal-weight"
|
|
32
|
+
>
|
|
33
|
+
{{ localization.common.override }}
|
|
34
|
+
</label>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="flex-property-value-group">
|
|
37
|
+
<div class="select">
|
|
38
|
+
<select
|
|
39
|
+
:id="`teaming-failover-select-${key}`"
|
|
40
|
+
v-model="fieldsValues[item.key].selected"
|
|
41
|
+
:data-id="`${item.testId}-teaming-failover-select`"
|
|
42
|
+
:disabled="!fieldsValues[item.key].checked"
|
|
43
|
+
name="selectName"
|
|
44
|
+
>
|
|
45
|
+
<template
|
|
46
|
+
v-for="(option, index) in item.options"
|
|
47
|
+
:key="index"
|
|
48
|
+
>
|
|
49
|
+
<option :value="option.value">
|
|
50
|
+
{{ option.text }}
|
|
51
|
+
</option>
|
|
52
|
+
</template>
|
|
53
|
+
</select>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
</section>
|
|
63
|
+
<div class="form-block">
|
|
64
|
+
<label> {{ localization.common.failoverOrder }} </label>
|
|
65
|
+
</div>
|
|
66
|
+
</form>
|
|
67
|
+
<div v-if="!props.isSwitch" class="horizontal-flex-container">
|
|
68
|
+
<div class="flex-property-label-group small checkbox-inline">
|
|
69
|
+
<input
|
|
70
|
+
id="failover-order"
|
|
71
|
+
v-model="fieldsValues.failoverOrder.checked"
|
|
72
|
+
data-id="failover-order-input"
|
|
73
|
+
type="checkbox"
|
|
74
|
+
/>
|
|
75
|
+
<label for="failover-order" class="normal-weight">
|
|
76
|
+
{{ localization.common.override }}
|
|
77
|
+
</label>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<common-adapter-manager
|
|
81
|
+
test-id="teaming-failover"
|
|
82
|
+
:is-active="fieldsValues.failoverOrder.checked"
|
|
83
|
+
:adapters="props.adapters"
|
|
84
|
+
:initial-data="props.initialData"
|
|
85
|
+
:adapter-status="props.adapterStatus"
|
|
86
|
+
:is-dark-mode="props.isDarkMode"
|
|
87
|
+
@change-adapter-status="onChangeAdapterStatus"
|
|
88
|
+
/>
|
|
89
|
+
<div class="select-adapter-info">
|
|
90
|
+
<span>
|
|
91
|
+
{{ localization.common.selectActiveAndStandbyAdapters }}
|
|
92
|
+
</span>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<script setup lang="ts">
|
|
99
|
+
import type {
|
|
100
|
+
UI_I_Localization,
|
|
101
|
+
UI_I_ItemsWithTotalCounts,
|
|
102
|
+
} from '~/lib/models/interfaces'
|
|
103
|
+
import type {
|
|
104
|
+
UI_I_TeamingFailoverFields,
|
|
105
|
+
UI_I_SwitchAdapterItem,
|
|
106
|
+
UI_I_ModalsInitialData,
|
|
107
|
+
UI_I_TeamingAndFailoverTemplate,
|
|
108
|
+
UI_I_AdapterStatus,
|
|
109
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
110
|
+
import {
|
|
111
|
+
teamingFailoverFieldsInitialFunc,
|
|
112
|
+
teamingAndFailoverTemplateMakerFunc,
|
|
113
|
+
} from '~/components/common/diagramMain/modals/lib/config'
|
|
114
|
+
|
|
115
|
+
// Props from up
|
|
116
|
+
const props = withDefaults(
|
|
117
|
+
defineProps<{
|
|
118
|
+
initialData?: UI_I_ModalsInitialData
|
|
119
|
+
adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
|
|
120
|
+
adapterStatus: UI_I_AdapterStatus
|
|
121
|
+
isSwitch: boolean
|
|
122
|
+
isDarkMode?: boolean
|
|
123
|
+
}>(),
|
|
124
|
+
{
|
|
125
|
+
initialData: () => ({}),
|
|
126
|
+
isSwitch: false,
|
|
127
|
+
isDarkMode: false,
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
// UI_I_Localization
|
|
132
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
133
|
+
|
|
134
|
+
// Making fields template
|
|
135
|
+
const teamingAndFailoverTemplate = computed<UI_I_TeamingAndFailoverTemplate[]>(
|
|
136
|
+
() => teamingAndFailoverTemplateMakerFunc(localization.value)
|
|
137
|
+
)
|
|
138
|
+
// Temporary data for this component
|
|
139
|
+
const fieldsValues = ref<UI_I_TeamingFailoverFields>(
|
|
140
|
+
teamingFailoverFieldsInitialFunc(props.isSwitch, props.initialData)
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
const emits = defineEmits<{
|
|
144
|
+
(
|
|
145
|
+
event: 'change-edit-teaming-failover-data',
|
|
146
|
+
teamingFailoverData: UI_I_TeamingFailoverFields
|
|
147
|
+
): void
|
|
148
|
+
(event: 'change-adapter-status', adapterStatus: UI_I_AdapterStatus): void
|
|
149
|
+
}>()
|
|
150
|
+
|
|
151
|
+
const onChangeData = (data: UI_I_TeamingFailoverFields) =>
|
|
152
|
+
emits('change-edit-teaming-failover-data', data)
|
|
153
|
+
|
|
154
|
+
const onChangeAdapterStatus = (adapterStatus: UI_I_AdapterStatus) =>
|
|
155
|
+
emits('change-adapter-status', adapterStatus)
|
|
156
|
+
|
|
157
|
+
watch(
|
|
158
|
+
fieldsValues,
|
|
159
|
+
(newFieldsValues: UI_I_TeamingFailoverFields) => {
|
|
160
|
+
onChangeData(newFieldsValues)
|
|
161
|
+
},
|
|
162
|
+
{ deep: true, immediate: true }
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
onMounted(() => {
|
|
166
|
+
onChangeData(fieldsValues.value)
|
|
167
|
+
})
|
|
168
|
+
</script>
|
|
169
|
+
<style lang="scss" scoped>
|
|
170
|
+
:deep(.diagram-action__edit) {
|
|
171
|
+
.table-fixed-height {
|
|
172
|
+
max-height: 227px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
</style>
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
type="number"
|
|
92
92
|
:disabled="
|
|
93
93
|
!fieldsValues.status.checked ||
|
|
94
|
-
fieldsValues.status.selected ===
|
|
94
|
+
fieldsValues.status.selected === 0
|
|
95
95
|
"
|
|
96
96
|
data-id="average-input"
|
|
97
97
|
name="average"
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
{
|
|
101
101
|
'danger-not-valid':
|
|
102
102
|
fieldsValues.status.checked &&
|
|
103
|
-
fieldsValues.status.selected !==
|
|
103
|
+
fieldsValues.status.selected !== 0 &&
|
|
104
104
|
props.errorMessages.average,
|
|
105
105
|
},
|
|
106
106
|
]"
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
type="number"
|
|
154
154
|
:disabled="
|
|
155
155
|
!fieldsValues.status.checked ||
|
|
156
|
-
fieldsValues.status.selected ===
|
|
156
|
+
fieldsValues.status.selected === 0
|
|
157
157
|
"
|
|
158
158
|
data-id="peak-input"
|
|
159
159
|
name="peak"
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
{
|
|
163
163
|
'danger-not-valid':
|
|
164
164
|
fieldsValues.status.checked &&
|
|
165
|
-
fieldsValues.status.selected !==
|
|
165
|
+
fieldsValues.status.selected !== 0 &&
|
|
166
166
|
props.errorMessages.peak,
|
|
167
167
|
},
|
|
168
168
|
]"
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
type="number"
|
|
216
216
|
:disabled="
|
|
217
217
|
!fieldsValues.status.checked ||
|
|
218
|
-
fieldsValues.status.selected ===
|
|
218
|
+
fieldsValues.status.selected === 0
|
|
219
219
|
"
|
|
220
220
|
data-id="burst-size-input"
|
|
221
221
|
name="burst-size"
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
{
|
|
225
225
|
'danger-not-valid':
|
|
226
226
|
fieldsValues.status.checked &&
|
|
227
|
-
fieldsValues.status.selected !==
|
|
227
|
+
fieldsValues.status.selected !== 0 &&
|
|
228
228
|
props.errorMessages.burstSize,
|
|
229
229
|
},
|
|
230
230
|
]"
|
|
@@ -334,7 +334,7 @@ const setMessageOnChangedField = (
|
|
|
334
334
|
): void => {
|
|
335
335
|
if (
|
|
336
336
|
!fieldsValues.value.status.checked ||
|
|
337
|
-
fieldsValues.value.status.selected ===
|
|
337
|
+
fieldsValues.value.status.selected === 0
|
|
338
338
|
) {
|
|
339
339
|
changeErrorMessage('', 'average')
|
|
340
340
|
changeErrorMessage('', 'peak')
|