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