bfg-common 1.5.869 → 1.5.871

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 (53) hide show
  1. package/assets/img/icons/icons-sprite-dark-5.svg +15 -2
  2. package/assets/img/icons/icons-sprite-light-5.svg +18 -5
  3. package/assets/localization/local_be.json +4 -1
  4. package/assets/localization/local_en.json +7 -4
  5. package/assets/localization/local_hy.json +4 -1
  6. package/assets/localization/local_kk.json +4 -1
  7. package/assets/localization/local_ru.json +10 -7
  8. package/assets/localization/local_zh.json +4 -1
  9. package/components/common/adapterManager/AdapterManagerNew.vue +39 -5
  10. package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +3 -2
  11. package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +3 -3
  12. package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +1 -0
  13. package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +1 -0
  14. package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +10 -4
  15. package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +15 -0
  16. package/components/common/adapterManager/ui/table/TableNew.vue +3 -2
  17. package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +69 -36
  18. package/components/common/adapterManager/ui/table/header/HeaderNew.vue +5 -1
  19. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +218 -218
  20. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
  21. package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +17 -0
  22. package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +13 -8
  23. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +1 -1
  24. package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics.ts +6 -1
  25. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +20 -4
  26. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +2 -1
  27. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Old.vue +3 -2
  28. package/components/common/wizards/network/add/Add.vue +872 -872
  29. package/components/common/wizards/network/add/AddNew.vue +483 -476
  30. package/components/common/wizards/network/add/lib/config/initialData.ts +86 -86
  31. package/components/common/wizards/network/add/lib/config/selectSwitch.ts +237 -237
  32. package/components/common/wizards/network/add/lib/utils/utils.ts +9 -9
  33. package/components/common/wizards/network/add/mappers/mappers.ts +199 -199
  34. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettings.vue +89 -84
  35. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsNew.vue +3 -0
  36. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +126 -126
  37. package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitch.vue +81 -81
  38. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettings.vue +144 -144
  39. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +48 -9
  40. package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +196 -193
  41. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +312 -294
  42. package/components/common/wizards/network/add/steps/readyComplete/ReadyComplete.vue +24 -24
  43. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +34 -34
  44. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +187 -187
  45. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +455 -455
  46. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +63 -63
  47. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +63 -63
  48. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +63 -63
  49. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +180 -180
  50. package/components/common/wizards/network/add/validations/common.ts +30 -30
  51. package/components/common/wizards/network/add/validations/networkValidation.ts +2 -2
  52. package/components/common/wizards/network/add/validations/portProperties.ts +115 -115
  53. package/package.json +2 -2
@@ -119,6 +119,11 @@ const localization = computed<UI_I_Localization>(() => useLocal())
119
119
  height: auto;
120
120
  box-sizing: border-box;
121
121
 
122
+ .table-block {
123
+ display: grid;
124
+ grid-template-columns: 50% 50%;
125
+ }
126
+
122
127
  .settings-table {
123
128
  width: 100%;
124
129
  box-sizing: border-box;
@@ -128,7 +133,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
128
133
  span {
129
134
  font-size: 16px;
130
135
  font-weight: 500;
131
- line-height: 19.36px;
136
+ line-height: 20px;
132
137
  color: var(--diagram-info-text);
133
138
  }
134
139
  td {
@@ -142,19 +147,19 @@ const localization = computed<UI_I_Localization>(() => useLocal())
142
147
  td {
143
148
  &.row-name-container {
144
149
  border-right: 16px solid transparent;
145
- width: 256px;
146
- min-width: 256px;
150
+ //width: 256px;
151
+ //min-width: 256px;
147
152
  color: var(--diagram-info-second-text);
148
153
  font-size: 13px;
149
154
  font-weight: 400;
150
- line-height: 15.73px;
155
+ line-height: 16px;
151
156
  padding-bottom: 12px;
152
157
  }
153
158
  &.row-value-container {
154
159
  padding-bottom: 12px;
155
160
  }
156
161
 
157
- width: 240px;
162
+ //width: 240px;
158
163
  white-space: normal;
159
164
  padding: 0;
160
165
  line-height: 18px;
@@ -164,11 +169,11 @@ const localization = computed<UI_I_Localization>(() => useLocal())
164
169
  display: inline-block;
165
170
  table-layout: auto;
166
171
  word-break: break-word;
167
- width: 240px;
172
+ //width: 240px;
168
173
 
169
174
  font-size: 13px;
170
175
  font-weight: 400;
171
- line-height: 15.73px;
176
+ line-height: 16px;
172
177
  color: var(--diagram-info-text);
173
178
 
174
179
  &.is-status-yes {
@@ -206,7 +211,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
206
211
  }
207
212
  tr td.row-name-container,
208
213
  tr td.row-value-container {
209
- max-width: 240px;
214
+ //max-width: 240px;
210
215
  word-break: break-word;
211
216
  }
212
217
 
@@ -187,7 +187,7 @@ const onUpdateCustomTimeTo = (value: string): void => {
187
187
  }
188
188
 
189
189
  const metricsItems = computed<UI_I_VerticalTabs[]>(() =>
190
- metricsFunc(localization.value, props.type)
190
+ metricsFunc(localization.value, props.type, props.project)
191
191
  )
192
192
  const selectedMetricLocal = ref<UI_T_ChartHost | UI_T_ChartVm>(
193
193
  (props.selectedMetric || '' + metricsItems.value[0]?.value) as
@@ -1,11 +1,13 @@
1
1
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type { UI_T_Project } from '~/lib/models/types'
2
3
  import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
3
4
  import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
4
5
  import type { UI_I_OptionData } from '~/components/common/monitor/advanced/lib/models/interfaces'
5
6
 
6
7
  export const metricsFunc = (
7
8
  localization: UI_I_Localization,
8
- type: UI_T_AdvancedType
9
+ type: UI_T_AdvancedType,
10
+ project: UI_T_Project
9
11
  ): UI_I_VerticalTabs[] => {
10
12
  const metrics: UI_I_OptionData = {
11
13
  zone: [
@@ -184,5 +186,8 @@ export const metricsFunc = (
184
186
  ],
185
187
  }
186
188
 
189
+ if (project === 'sphere') {
190
+ metrics[type] = metrics[type].filter((item) => item.value !== 'datastore')
191
+ }
187
192
  return metrics[type]
188
193
  }
@@ -2,6 +2,7 @@
2
2
  <component
3
3
  :is="currentComponent"
4
4
  v-model="model"
5
+ v-model:vcpus="vcpus"
5
6
  v-model:reservation="reservation"
6
7
  v-model:reservation-type="reservationType"
7
8
  v-model:limit="limit"
@@ -56,7 +57,7 @@ const props = withDefaults(
56
57
  }>(),
57
58
  {
58
59
  state: undefined,
59
- nums: null
60
+ nums: null,
60
61
  }
61
62
  )
62
63
  const emits = defineEmits<{
@@ -74,6 +75,10 @@ const currentComponent = computed(() =>
74
75
 
75
76
  const localization = computed<UI_I_Localization>(() => useLocal())
76
77
 
78
+ const isRunning = computed<boolean>(() => {
79
+ return props.state === 2
80
+ })
81
+
77
82
  // props.state === 2 => is run
78
83
  if (props.state !== 2) {
79
84
  model.value.cpu.max_vcpus = capabilities.value.maxCpus
@@ -83,9 +88,10 @@ const isDisabled = computed<boolean>(() => {
83
88
  return props.state === 2
84
89
  })
85
90
 
86
- const cpuOptions = computed<UI_I_OptionItem[]>(() =>
87
- cpuOptionsFunc(localization.value, 1, model.value.cpu.max_vcpus)
88
- )
91
+ const minCpu = isRunning.value ? model.value.cpu.vcpus : 1
92
+ const cpuOptions = computed<UI_I_OptionItem[]>(() => {
93
+ return cpuOptionsFunc(localization.value, minCpu, model.value.cpu.max_vcpus)
94
+ })
89
95
 
90
96
  // const enableCpuHotAdd = ref<boolean>(false)
91
97
 
@@ -218,6 +224,16 @@ watch(
218
224
  { immediate: true }
219
225
  )
220
226
 
227
+ const vcpus = computed<number>({
228
+ get() {
229
+ return model.value.cpu.vcpus
230
+ },
231
+ set(newValue) {
232
+ const valueInt = +newValue
233
+ model.value.cpu.vcpus = isNaN(valueInt) ? 0 : valueInt
234
+ },
235
+ })
236
+
221
237
  const reservation = ref<string>('1')
222
238
  const reservationType = ref<string>('mhz')
223
239
  if (model.value.cpu.reservation_mhz !== 1) {
@@ -24,7 +24,7 @@
24
24
  <template #stackBlockContent>
25
25
  <div class="flex-align-center flex-space-between">
26
26
  <ui-combobox
27
- v-model.number="model.cpu.vcpus"
27
+ v-model.number="vcpus"
28
28
  :items="props.cpuOptions"
29
29
  :disabled="props.isCpuDisabled"
30
30
  :error-text="props.vcpusLocalAndApiErrorsTexts"
@@ -157,6 +157,7 @@ import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/li
157
157
 
158
158
  const model = defineModel<UI_I_CreateVmData>({ required: true })
159
159
 
160
+ const vcpus = defineModel<string>('vcpus', { required: true })
160
161
  const reservation = defineModel<string>('reservation', { required: true })
161
162
  const reservationType = defineModel<string>('reservationType', {
162
163
  required: true,
@@ -28,7 +28,7 @@
28
28
  <template #elem>
29
29
  <atoms-combobox
30
30
  id="vm-wizard-vcpus-field"
31
- v-model.number="model.cpu.vcpus"
31
+ v-model.number="vcpus"
32
32
  :items="props.cpuOptions"
33
33
  :disabled="props.isCpuDisabled"
34
34
  class="input-text-color"
@@ -136,6 +136,7 @@ import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/li
136
136
 
137
137
  const model = defineModel<UI_I_CreateVmData>({ required: true })
138
138
 
139
+ const vcpus = defineModel<string>('vcpus', { required: true })
139
140
  const reservation = defineModel<string>('reservation', { required: true })
140
141
  const reservationType = defineModel<string>('reservationType', {
141
142
  required: true,
@@ -172,7 +173,7 @@ const props = withDefaults(
172
173
  }>(),
173
174
  {
174
175
  vmCpuHelpTextSecond: undefined,
175
- nums: null
176
+ nums: null,
176
177
  }
177
178
  )
178
179
  const emits = defineEmits<{