bfg-common 1.4.59 → 1.4.61
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 +215 -215
- package/assets/localization/local_en.json +215 -215
- package/assets/localization/local_hy.json +215 -215
- package/assets/localization/local_kk.json +215 -215
- package/assets/localization/local_ru.json +215 -215
- package/assets/localization/local_zh.json +215 -215
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/common/browse/blocks/Title.vue +91 -91
- package/components/common/browse/blocks/info/Date.vue +21 -21
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +198 -198
- package/components/common/context/recursion/RecursionOld.vue +212 -212
- package/components/common/monitor/advanced/Advanced.vue +3 -4
- package/components/common/monitor/advanced/GraphView.vue +1 -1
- package/components/common/monitor/advanced/table/Table.vue +1 -3
- package/components/common/monitor/advanced/tools/Tools.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +8 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +278 -222
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +5 -5
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +12 -14
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +16 -16
- package/components/common/monitor/overview/Overview.vue +1 -1
- package/components/common/monitor/overview/filters/Filters.vue +2 -2
- package/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker.ts +5 -5
- package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +14 -13
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +5 -5
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/Table.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +5 -5
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +12 -12
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +6 -6
- package/components/common/split/horizontal/HorizontalNew.vue +321 -321
- package/components/common/vm/actions/add/Add.vue +603 -598
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +61 -57
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
- package/components/common/vm/actions/common/lib/config/capabilities.ts +1 -0
- package/components/common/vm/actions/common/lib/models/interfaces.ts +148 -139
- package/components/common/vm/actions/common/lib/utils/capabilities.ts +46 -0
- package/components/common/vm/actions/common/select/lib/models/interfaces.ts +35 -32
- package/components/common/vm/actions/common/select/os/os.vue +233 -227
- package/components/common/wizards/datastore/add/Add.vue +437 -437
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/binary.ts +4 -0
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/store/tasks/mappers/recentTasks.ts +45 -45
|
@@ -1,227 +1,233 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="select-os">
|
|
3
|
-
<p class="select-os-block">
|
|
4
|
-
{{ localization.common.identifyingGuestSystemInstallation }}
|
|
5
|
-
</p>
|
|
6
|
-
<div class="select-os-block os-select-wrap table-row">
|
|
7
|
-
<label for="machine-type-select" class="table-cell"
|
|
8
|
-
>{{ localization.common.machineType }}:</label
|
|
9
|
-
>
|
|
10
|
-
|
|
11
|
-
<atoms-tooltip-error
|
|
12
|
-
:has-error="!!apiErrorMachineType"
|
|
13
|
-
selector="#vm-wizard-machine-type-select"
|
|
14
|
-
@remove="onRemoveValidationError('machine_type')"
|
|
15
|
-
>
|
|
16
|
-
<template #elem>
|
|
17
|
-
<select
|
|
18
|
-
id="vm-wizard-machine-type-select"
|
|
19
|
-
v-model="selectedMachineType"
|
|
20
|
-
data-id="vm-wizard-machine-type-select"
|
|
21
|
-
class="table-cell"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
import type {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
import type {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
margin-top:
|
|
223
|
-
font-size:
|
|
224
|
-
color: #565656;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="select-os">
|
|
3
|
+
<p class="select-os-block">
|
|
4
|
+
{{ localization.common.identifyingGuestSystemInstallation }}
|
|
5
|
+
</p>
|
|
6
|
+
<div class="select-os-block os-select-wrap table-row">
|
|
7
|
+
<label for="machine-type-select" class="table-cell"
|
|
8
|
+
>{{ localization.common.machineType }}:</label
|
|
9
|
+
>
|
|
10
|
+
|
|
11
|
+
<atoms-tooltip-error
|
|
12
|
+
:has-error="!!apiErrorMachineType"
|
|
13
|
+
selector="#vm-wizard-machine-type-select"
|
|
14
|
+
@remove="onRemoveValidationError('machine_type')"
|
|
15
|
+
>
|
|
16
|
+
<template #elem>
|
|
17
|
+
<select
|
|
18
|
+
id="vm-wizard-machine-type-select"
|
|
19
|
+
v-model="selectedMachineType"
|
|
20
|
+
data-id="vm-wizard-machine-type-select"
|
|
21
|
+
class="table-cell"
|
|
22
|
+
@change="onSelectMachineType"
|
|
23
|
+
>
|
|
24
|
+
<option
|
|
25
|
+
v-for="item in machineTypeOptions"
|
|
26
|
+
:key="item.value"
|
|
27
|
+
:value="item"
|
|
28
|
+
>
|
|
29
|
+
{{ item.text }}
|
|
30
|
+
</option>
|
|
31
|
+
</select>
|
|
32
|
+
</template>
|
|
33
|
+
<template #content>{{ apiErrorMachineType }}</template>
|
|
34
|
+
</atoms-tooltip-error>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="select-os-block os-select-wrap table-row">
|
|
37
|
+
<label for="os-select" class="table-cell"
|
|
38
|
+
>{{ localization.common.guestOsFamily }}:</label
|
|
39
|
+
>
|
|
40
|
+
|
|
41
|
+
<atoms-tooltip-error
|
|
42
|
+
:has-error="!!apiErrorGuestOsFamily"
|
|
43
|
+
selector="#vm-wizard-os-select"
|
|
44
|
+
@remove="onRemoveValidationError('guest_os_family')"
|
|
45
|
+
>
|
|
46
|
+
<template #elem>
|
|
47
|
+
<select
|
|
48
|
+
id="vm-wizard-os-select"
|
|
49
|
+
v-model="selectedOS"
|
|
50
|
+
data-id="vm-wizard-os-select"
|
|
51
|
+
class="table-cell"
|
|
52
|
+
@change="onChangeOS"
|
|
53
|
+
>
|
|
54
|
+
<option v-for="item in osOptions" :key="item.value" :value="item">
|
|
55
|
+
{{ item.text }}
|
|
56
|
+
</option>
|
|
57
|
+
</select>
|
|
58
|
+
</template>
|
|
59
|
+
<template #content>{{ apiErrorGuestOsFamily }}</template>
|
|
60
|
+
</atoms-tooltip-error>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="select-os-block os-select-wrap table-row">
|
|
63
|
+
<label for="os-version-select" class="table-cell"
|
|
64
|
+
>{{ localization.common.guestOsVersion }}:</label
|
|
65
|
+
>
|
|
66
|
+
|
|
67
|
+
<atoms-tooltip-error
|
|
68
|
+
:has-error="!!apiErrorGuestOsVersion"
|
|
69
|
+
selector="#vm-wizard-os-version-select"
|
|
70
|
+
@remove="onRemoveValidationError('guest_os_version')"
|
|
71
|
+
>
|
|
72
|
+
<template #elem>
|
|
73
|
+
<select
|
|
74
|
+
id="vm-wizard-os-version-select"
|
|
75
|
+
v-model="selectedVersion"
|
|
76
|
+
data-id="vm-wizard-os-version-select"
|
|
77
|
+
class="table-cell"
|
|
78
|
+
>
|
|
79
|
+
<option
|
|
80
|
+
v-for="item in versionsOptions"
|
|
81
|
+
:key="item.value"
|
|
82
|
+
:value="item"
|
|
83
|
+
>
|
|
84
|
+
{{ item.text }}
|
|
85
|
+
</option>
|
|
86
|
+
</select>
|
|
87
|
+
</template>
|
|
88
|
+
<template #content>{{ apiErrorGuestOsVersion }}</template>
|
|
89
|
+
</atoms-tooltip-error>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<script setup lang="ts">
|
|
95
|
+
import type { UI_I_OsChange } from '~/components/common/vm/actions/common/select/lib/models/interfaces'
|
|
96
|
+
import type {
|
|
97
|
+
UI_I_Localization,
|
|
98
|
+
UI_I_ArbitraryObject,
|
|
99
|
+
} from '~/lib/models/interfaces'
|
|
100
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
101
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
102
|
+
import { mapCapabilitiesBus } from '~/components/common/vm/actions/common/lib/utils/capabilities'
|
|
103
|
+
|
|
104
|
+
const props = defineProps<{
|
|
105
|
+
familiesOptions: UI_I_OptionItem[]
|
|
106
|
+
machineTypesOptions: UI_I_OptionItem[]
|
|
107
|
+
versionsOptions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
|
|
108
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
109
|
+
}>()
|
|
110
|
+
const emits = defineEmits<{
|
|
111
|
+
(event: 'change', value: UI_I_OsChange): void
|
|
112
|
+
(event: 'remove-error-by-title', value: string): void
|
|
113
|
+
}>()
|
|
114
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
115
|
+
|
|
116
|
+
const machineTypeOptions = ref<UI_I_OptionItem[]>(props.machineTypesOptions)
|
|
117
|
+
const selectedMachineType = ref<UI_I_OptionItem | null>(null)
|
|
118
|
+
watch(
|
|
119
|
+
() => props.machineTypesOptions,
|
|
120
|
+
(newValue) => {
|
|
121
|
+
machineTypeOptions.value = [...newValue]
|
|
122
|
+
selectedMachineType.value = newValue[0]
|
|
123
|
+
},
|
|
124
|
+
{ immediate: true }
|
|
125
|
+
)
|
|
126
|
+
const onSelectMachineType = (): void => {
|
|
127
|
+
selectedMachineType.value &&
|
|
128
|
+
mapCapabilitiesBus(selectedMachineType.value.value)
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const osOptions = ref<UI_I_OptionItem[]>(props.familiesOptions)
|
|
132
|
+
const selectedOS = ref<UI_I_OptionItem | null>(null)
|
|
133
|
+
watch(
|
|
134
|
+
() => props.familiesOptions,
|
|
135
|
+
(newValue) => {
|
|
136
|
+
osOptions.value = [...newValue]
|
|
137
|
+
selectedOS.value = newValue[0]
|
|
138
|
+
},
|
|
139
|
+
{ immediate: true }
|
|
140
|
+
)
|
|
141
|
+
const onChangeOS = (): void => {
|
|
142
|
+
selectedVersion.value = versionsOptions.value[0]
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const versionsOptions = computed<UI_I_OptionItem[]>(() => {
|
|
146
|
+
if (!selectedOS.value) return []
|
|
147
|
+
|
|
148
|
+
return props.versionsOptions[selectedOS.value.value] || []
|
|
149
|
+
})
|
|
150
|
+
const selectedVersion = ref<UI_I_OptionItem | null>(null)
|
|
151
|
+
watch(
|
|
152
|
+
versionsOptions,
|
|
153
|
+
() => {
|
|
154
|
+
selectedVersion.value = versionsOptions.value[0]
|
|
155
|
+
},
|
|
156
|
+
{ immediate: true }
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
const windowsVirtualization = ref<boolean>(false)
|
|
160
|
+
|
|
161
|
+
// const isShowHelp = ref<boolean>(false)
|
|
162
|
+
|
|
163
|
+
watch(
|
|
164
|
+
[selectedMachineType, selectedOS, selectedVersion, windowsVirtualization],
|
|
165
|
+
() => {
|
|
166
|
+
if (!selectedOS.value) return
|
|
167
|
+
|
|
168
|
+
emits('change', {
|
|
169
|
+
selectedMachineType: selectedMachineType.value,
|
|
170
|
+
selectedOS: selectedOS.value,
|
|
171
|
+
selectedVersion: selectedVersion.value,
|
|
172
|
+
windowsVirtualization: windowsVirtualization.value,
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
{ immediate: true }
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
const apiErrorMachineType = computed<string>(() => {
|
|
179
|
+
return (
|
|
180
|
+
props.errorValidationFields?.find(
|
|
181
|
+
(message) => message.field === 'machine_type'
|
|
182
|
+
)?.error_message || ''
|
|
183
|
+
)
|
|
184
|
+
})
|
|
185
|
+
|
|
186
|
+
const apiErrorGuestOsFamily = computed<string>(() => {
|
|
187
|
+
return (
|
|
188
|
+
props.errorValidationFields?.find(
|
|
189
|
+
(message) => message.field === 'guest_os_family'
|
|
190
|
+
)?.error_message || ''
|
|
191
|
+
)
|
|
192
|
+
})
|
|
193
|
+
|
|
194
|
+
const apiErrorGuestOsVersion = computed<string>(() => {
|
|
195
|
+
return (
|
|
196
|
+
props.errorValidationFields?.find(
|
|
197
|
+
(message) => message.field === 'guest_os_version'
|
|
198
|
+
)?.error_message || ''
|
|
199
|
+
)
|
|
200
|
+
})
|
|
201
|
+
|
|
202
|
+
const onRemoveValidationError = (type: string): void => {
|
|
203
|
+
emits('remove-error-by-title', type)
|
|
204
|
+
}
|
|
205
|
+
</script>
|
|
206
|
+
|
|
207
|
+
<style scoped lang="scss">
|
|
208
|
+
.select-os {
|
|
209
|
+
.select-os-block {
|
|
210
|
+
label:not(.windows-virtualization-label) {
|
|
211
|
+
padding: 0 5px 5px 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.windows-virtualization-label {
|
|
215
|
+
padding: 0 4px;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
#os-select-help-icon {
|
|
221
|
+
h3 {
|
|
222
|
+
margin-top: 7px;
|
|
223
|
+
font-size: 22px;
|
|
224
|
+
color: #565656;
|
|
225
|
+
}
|
|
226
|
+
p {
|
|
227
|
+
width: 310px;
|
|
228
|
+
margin-top: 24px;
|
|
229
|
+
font-size: 14px;
|
|
230
|
+
color: #565656;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
</style>
|