bfg-common 1.5.344 → 1.5.346

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.
@@ -2588,7 +2588,9 @@
2588
2588
  "virtualMachineAutomation": "Аўтаматызацыя віртуальных машын",
2589
2589
  "virtualMachineAutomationInfo": "Вы можаце наладзіць пераазначэнне для асобных віртуальных машын на старонцы пераазначэння віртуальных машын.",
2590
2590
  "optionS": "варыянт(ы)",
2591
- "removeOptionDialog": "Вы ўпэўненыя, што хочаце выдаліць параметр \"{optionName}\" з \"{selectedItemName}\"?"
2591
+ "removeOptionDialog": "Вы ўпэўненыя, што хочаце выдаліць параметр \"{optionName}\" з \"{selectedItemName}\"?",
2592
+ "sphereAvailability": "Даступнасць Sphere",
2593
+ "vmOverrides": "Пераазначэнні ВМ"
2592
2594
  },
2593
2595
  "datastoreWizard": {
2594
2596
  "accessMode": "Рэжым доступу",
@@ -3296,5 +3298,6 @@
3296
3298
  "clientId": "Ідэнтыфікатар кліента",
3297
3299
  "clientSecret": "Сакрэт кліента",
3298
3300
  "credentials": "Уліковыя даныя"
3299
- }
3301
+ },
3302
+ "sphereAvailability": {}
3300
3303
  }
@@ -2592,7 +2592,9 @@
2592
2592
  "virtualMachineAutomation": "Virtual Machine Automation",
2593
2593
  "virtualMachineAutomationInfo": "You can configure overrides for individual virtual machines on the VM Overrides page.",
2594
2594
  "optionS": "option(s)",
2595
- "removeOptionDialog": "Are you sure you want to delete option \"{optionName}\" from \"{selectedItemName}\"?"
2595
+ "removeOptionDialog": "Are you sure you want to delete option \"{optionName}\" from \"{selectedItemName}\"?",
2596
+ "sphereAvailability": "Sphere Availability",
2597
+ "vmOverrides": "VM Overrides"
2596
2598
  },
2597
2599
  "datastoreWizard": {
2598
2600
  "accessMode": "Access Mode",
@@ -3300,5 +3302,6 @@
3300
3302
  "clientId": "Client ID",
3301
3303
  "clientSecret": "Client Secret",
3302
3304
  "credentials": "Credentials"
3303
- }
3305
+ },
3306
+ "sphereAvailability": {}
3304
3307
  }
@@ -2592,7 +2592,9 @@
2592
2592
  "virtualMachineAutomation": "Վիրտուալ մեքենաների ավտոմատացում",
2593
2593
  "virtualMachineAutomationInfo": "Վիրտուալ մեքենաների անտեսման էջում կարող եք կարգավորել անհատական վիրտուալ մեքենաների անտեսումները:",
2594
2594
  "optionS": "տարբերակ(ներ)",
2595
- "removeOptionDialog": "Համոզված եք, որ ցանկանում եք հեռացնել \"{optionName}\" տարբերակը \"{selectedItemName}\"-ից:"
2595
+ "removeOptionDialog": "Համոզված եք, որ ցանկանում եք հեռացնել \"{optionName}\" տարբերակը \"{selectedItemName}\"-ից:",
2596
+ "sphereAvailability": "Sphere-ի հասանելիություն",
2597
+ "vmOverrides": "ՎՄ վերագրանցումներ"
2596
2598
  },
2597
2599
  "datastoreWizard": {
2598
2600
  "accessMode": "Մուտքի ռեժիմ",
@@ -3300,5 +3302,6 @@
3300
3302
  "clientId": "Հաճախորդի ID",
3301
3303
  "clientSecret": "Հաճախորդի գաղտնի բանալի",
3302
3304
  "credentials": "Հավաստագրեր"
3303
- }
3305
+ },
3306
+ "sphereAvailability": {}
3304
3307
  }
@@ -2591,7 +2591,9 @@
2591
2591
  "virtualMachineAutomation": "Виртуалды Машиналарды Автоматтандыру",
2592
2592
  "virtualMachineAutomationInfo": "ВМ Қайта Анықтау бетінде жеке виртуалды машиналар үшін қайта анықтауларды конфигурациялауға болады.",
2593
2593
  "optionS": "опция(лар)ы",
2594
- "removeOptionDialog": "\"{selectedItemName}\" ішінен \"{optionName}\" опциясын жойғыңыз келетініне сенімдісіз бе?"
2594
+ "removeOptionDialog": "\"{selectedItemName}\" ішінен \"{optionName}\" опциясын жойғыңыз келетініне сенімдісіз бе?",
2595
+ "sphereAvailability": "Sphere қолжетімділігі",
2596
+ "vmOverrides": "VM қайта анықтаулары"
2595
2597
  },
2596
2598
  "datastoreWizard": {
2597
2599
  "accessMode": "Қол жеткізу режимі",
@@ -3299,5 +3301,6 @@
3299
3301
  "clientId": "Клиент идентификаторы",
3300
3302
  "clientSecret": "Клиент құпиясы",
3301
3303
  "credentials": "Тіркелгі деректері"
3302
- }
3304
+ },
3305
+ "sphereAvailability": {}
3303
3306
  }
@@ -2591,7 +2591,9 @@
2591
2591
  "virtualMachineAutomation": "Автоматизация виртуальных машин",
2592
2592
  "virtualMachineAutomationInfo": "Вы можете настроить переопределения для отдельных виртуальных машин на странице Переопределения виртуальных машин.",
2593
2593
  "optionS": "вариант(ы)",
2594
- "removeOptionDialog": "Вы уверены, что хотите удалить параметр “{optionName}” из “{selectedItemName}”?"
2594
+ "removeOptionDialog": "Вы уверены, что хотите удалить параметр “{optionName}” из “{selectedItemName}”?",
2595
+ "sphereAvailability": "Доступность Sphere",
2596
+ "vmOverrides": "Переопределения ВМ"
2595
2597
  },
2596
2598
  "datastoreWizard": {
2597
2599
  "accessMode": "Режим доступа",
@@ -3299,5 +3301,6 @@
3299
3301
  "clientId": "ID клиента",
3300
3302
  "clientSecret": "Секрет клиента",
3301
3303
  "credentials": "Учетные данные"
3302
- }
3304
+ },
3305
+ "sphereAvailability": {}
3303
3306
  }
@@ -2589,7 +2589,9 @@
2589
2589
  "virtualMachineAutomation": "虚拟机自动化",
2590
2590
  "virtualMachineAutomationInfo": "您可以在VM复盖页面上为单个虚拟机配置复盖。",
2591
2591
  "optionS": "选项",
2592
- "removeOptionDialog": "您确定要从\"{selectedItemName}\"中删除选项\"{optionName}\"吗?"
2592
+ "removeOptionDialog": "您确定要从\"{selectedItemName}\"中删除选项\"{optionName}\"吗?",
2593
+ "sphereAvailability": "Sphere 可用性",
2594
+ "vmOverrides": "虚拟机覆盖设置"
2593
2595
  },
2594
2596
  "datastoreWizard": {
2595
2597
  "accessMode": "访问方式",
@@ -3297,5 +3299,6 @@
3297
3299
  "clientId": "客户端 ID",
3298
3300
  "clientSecret": "客户端密钥",
3299
3301
  "credentials": "凭证"
3300
- }
3302
+ },
3303
+ "sphereAvailability": {}
3301
3304
  }
@@ -274,7 +274,7 @@ watch(
274
274
  wizard.changeScheme(isSphere.value ? 1 : 0)
275
275
  break
276
276
  case '1':
277
- wizard.changeScheme(2)
277
+ wizard.changeScheme(isSphere.value ? 6 : 2)
278
278
  }
279
279
  },
280
280
  { immediate: true }
@@ -777,13 +777,13 @@ const onChangeSelectOptions = (options: string[]) => {
777
777
  options.includes('customize-os') &&
778
778
  options.includes('customize-hardware')
779
779
  ) {
780
- wizard.changeScheme(5)
780
+ wizard.changeScheme(isSphere.value ? 9 : 5)
781
781
  } else if (options.includes('customize-os')) {
782
- wizard.changeScheme(3)
782
+ wizard.changeScheme(isSphere.value ? 7 : 3)
783
783
  } else if (options.includes('customize-hardware')) {
784
- wizard.changeScheme(4)
784
+ wizard.changeScheme(isSphere.value ? 8 : 4)
785
785
  } else {
786
- wizard.changeScheme(2)
786
+ wizard.changeScheme(isSphere.value ? 6 : 2)
787
787
  }
788
788
 
789
789
  isPowerOnByDefault.value = options.includes('power-on')
@@ -210,9 +210,7 @@
210
210
  </div>
211
211
  </template>
212
212
  <template #content>
213
- <div
214
- class="select-block-wrap overflow-auto h-full flex flex-col pb-4"
215
- >
213
+ <div class="select-block-wrap overflow-auto pb-4">
216
214
  <common-vm-actions-common-select-os
217
215
  v-model:machine-type="vmForm.guestMachineType"
218
216
  v-model:guest-os-family="vmForm.guestOsFamily"
@@ -223,7 +221,7 @@
223
221
  :error-validation-fields="props.errorValidationFields"
224
222
  @remove-error-by-title="emits('remove-error-by-title', $event)"
225
223
  />
226
- <div class="vm-hardware-version-wrap justify-end flex flex-1 mt-4">
224
+ <div class="vm-hardware-version-wrap justify-end flex flex-1 mt-7">
227
225
  <span class="vm-hardware-version">{{
228
226
  props.compatibilityInfo
229
227
  }}</span>
@@ -605,7 +603,7 @@ const isCompatibilityAlertWrapperEmpty = ref<boolean>(false)
605
603
  &.customize-hardware {
606
604
  height: inherit;
607
605
  max-height: 100%;
608
- padding-bottom: 40px;
606
+ padding-bottom: 16px;
609
607
 
610
608
  :deep(.tabs-wrapper) {
611
609
  overflow-y: auto;
@@ -211,7 +211,7 @@ export const stepsFunc = (
211
211
  }
212
212
 
213
213
  export const stepsSchemeInitial = [
214
- // Procurator
214
+ // 0 Procurator
215
215
  [
216
216
  dynamicSteps.creationType,
217
217
  dynamicSteps.selectName,
@@ -221,7 +221,7 @@ export const stepsSchemeInitial = [
221
221
  dynamicSteps.customizeHardware,
222
222
  dynamicSteps.readyComplete,
223
223
  ],
224
- // Sphere
224
+ // 1 Sphere
225
225
  [
226
226
  dynamicSteps.creationType,
227
227
  dynamicSteps.selectNameFolder,
@@ -232,7 +232,7 @@ export const stepsSchemeInitial = [
232
232
  dynamicSteps.customizeHardware,
233
233
  dynamicSteps.readyComplete,
234
234
  ],
235
- // Deploy from template (Procurator)
235
+ // 2 Deploy from template (Procurator)
236
236
  [
237
237
  dynamicSteps.creationType,
238
238
  dynamicSteps.selectTemplate,
@@ -241,7 +241,7 @@ export const stepsSchemeInitial = [
241
241
  dynamicSteps.selectOptionsForDeployment,
242
242
  dynamicSteps.readyComplete,
243
243
  ],
244
- // Deploy from template with Customize the operating system (Procurator)
244
+ // 3 Deploy from template with Customize the operating system (Procurator)
245
245
  [
246
246
  dynamicSteps.creationType,
247
247
  dynamicSteps.selectTemplate,
@@ -251,7 +251,7 @@ export const stepsSchemeInitial = [
251
251
  dynamicSteps.selectGuestOSMachineType,
252
252
  dynamicSteps.readyComplete,
253
253
  ],
254
- // Deploy from template with Customize this virtual machine's hardware (Procurator)
254
+ // 4 Deploy from template with Customize this virtual machine's hardware (Procurator)
255
255
  [
256
256
  dynamicSteps.creationType,
257
257
  dynamicSteps.selectTemplate,
@@ -261,7 +261,7 @@ export const stepsSchemeInitial = [
261
261
  dynamicSteps.customizeHardwareTemplate,
262
262
  dynamicSteps.readyComplete,
263
263
  ],
264
- // Deploy from template with Customize the operating system and this virtual machine's hardware (Procurator)
264
+ // 5 Deploy from template with Customize the operating system and this virtual machine's hardware (Procurator)
265
265
  [
266
266
  dynamicSteps.creationType,
267
267
  dynamicSteps.selectTemplate,
@@ -272,4 +272,48 @@ export const stepsSchemeInitial = [
272
272
  dynamicSteps.customizeHardwareTemplate,
273
273
  dynamicSteps.readyComplete,
274
274
  ],
275
+ // 6 Deploy from template (Sphere)
276
+ [
277
+ dynamicSteps.creationType,
278
+ dynamicSteps.selectTemplate,
279
+ dynamicSteps.selectNameFolder,
280
+ dynamicSteps.selectComputeResource,
281
+ dynamicSteps.selectStorage,
282
+ dynamicSteps.selectOptionsForDeployment,
283
+ dynamicSteps.readyComplete,
284
+ ],
285
+ // 7 Deploy from template with Customize the operating system (Sphere)
286
+ [
287
+ dynamicSteps.creationType,
288
+ dynamicSteps.selectTemplate,
289
+ dynamicSteps.selectNameFolder,
290
+ dynamicSteps.selectComputeResource,
291
+ dynamicSteps.selectStorage,
292
+ dynamicSteps.selectOptionsForDeployment,
293
+ dynamicSteps.selectGuestOSMachineType,
294
+ dynamicSteps.readyComplete,
295
+ ],
296
+ // 8 Deploy from template with Customize this virtual machine's hardware (Sphere)
297
+ [
298
+ dynamicSteps.creationType,
299
+ dynamicSteps.selectTemplate,
300
+ dynamicSteps.selectNameFolder,
301
+ dynamicSteps.selectComputeResource,
302
+ dynamicSteps.selectStorage,
303
+ dynamicSteps.selectOptionsForDeployment,
304
+ dynamicSteps.customizeHardwareTemplate,
305
+ dynamicSteps.readyComplete,
306
+ ],
307
+ // 9 Deploy from template with Customize the operating system and this virtual machine's hardware (Sphere)
308
+ [
309
+ dynamicSteps.creationType,
310
+ dynamicSteps.selectTemplate,
311
+ dynamicSteps.selectNameFolder,
312
+ dynamicSteps.selectComputeResource,
313
+ dynamicSteps.selectStorage,
314
+ dynamicSteps.selectOptionsForDeployment,
315
+ dynamicSteps.selectGuestOSMachineType,
316
+ dynamicSteps.customizeHardwareTemplate,
317
+ dynamicSteps.readyComplete,
318
+ ],
275
319
  ]
@@ -219,6 +219,7 @@ const onSelectRow = (selectedData: UI_I_DataTable): void => {
219
219
  :deep(.column-manager-button) {
220
220
  span {
221
221
  font-size: 12px;
222
+ font-weight: 500;
222
223
  }
223
224
  &:not(.active):hover {
224
225
  background-color: var(
@@ -44,7 +44,7 @@ watch(
44
44
  )
45
45
 
46
46
  const submit = async (cb: Function): Promise<void> => {
47
- if (!selectedNode.value || selectedNode.value.type !== 'vmt') {
47
+ if (!selectedNode.value || selectedNode.value.type !== 'vmt' && selectedNode.value.type !== 'vm_template') {
48
48
  errors.value = [localization.value.vmWizard.selectValidTemplate]
49
49
  cb(false)
50
50
  return
@@ -34,7 +34,7 @@ watch(
34
34
  (newValue) => {
35
35
  nodes.value = useDeepCopy(newValue)
36
36
  },
37
- { deep: true }
37
+ { deep: true, immediate: true }
38
38
  )
39
39
 
40
40
  const loading = ref<boolean>(false)
@@ -54,6 +54,7 @@ export interface UI_I_Localization {
54
54
  vmt: UI_I_ArbitraryObject<string>
55
55
  passwordRule: UI_I_ArbitraryObject<string>
56
56
  identityProvider: UI_I_ArbitraryObject<string>
57
+ sphereAvailability: UI_I_ArbitraryObject<string>
57
58
  }
58
59
  export interface UI_I_SendTaskParams {
59
60
  method: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.344",
4
+ "version": "1.5.346",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -236,6 +236,37 @@ export default defineNuxtPlugin(() => {
236
236
  return res
237
237
  }
238
238
 
239
+
240
+ self.filtrationTreeByExpectedType = (
241
+ arr: any,
242
+ itemsProp: string,
243
+ expectedType: string[]
244
+ ): any[] => {
245
+ const result = []
246
+
247
+ for (let i = 0; i < arr.length; i++) {
248
+ const item = { ...arr[i] }
249
+
250
+ if (item[itemsProp]?.length) {
251
+ item.nodes = self.filtrationTreeByExpectedType(
252
+ item[itemsProp],
253
+ itemsProp,
254
+ expectedType
255
+ )
256
+ }
257
+ if (
258
+ expectedType.includes(item.type) || item.nodes.length
259
+ ) {
260
+ result.push(item)
261
+ } else {
262
+ item.nodes = []
263
+ }
264
+ }
265
+
266
+ return result
267
+ }
268
+
269
+ // TODO удалить и использовать filtrationTreeByExpectedType
239
270
  // TODO изменить nodes и сделать динамичной
240
271
  self.filtrationTreeByExpectedTypeRecursion = (
241
272
  node: any,