bfg-common 1.5.136 → 1.5.138

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 (22) hide show
  1. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  2. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  3. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  5. package/assets/localization/local_be.json +3093 -3093
  6. package/assets/localization/local_en.json +3097 -3097
  7. package/assets/localization/local_hy.json +3097 -3097
  8. package/assets/localization/local_kk.json +3096 -3096
  9. package/assets/localization/local_ru.json +3098 -3098
  10. package/assets/localization/local_zh.json +3094 -3094
  11. package/components/atoms/table/compact/Compact.vue +4 -1
  12. package/components/atoms/table/dataGrid/DataGrid.vue +1 -1
  13. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1040 -1040
  14. package/components/common/vm/actions/add/Add.vue +785 -785
  15. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +8 -3
  16. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/Model.vue +8 -3
  17. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/lib/config/options.ts +11 -8
  18. package/components/common/vm/actions/common/lib/config/capabilities.ts +363 -362
  19. package/components/common/vm/actions/common/select/compatibility/Compatibility.vue +1 -4
  20. package/components/common/wizards/vm/migrate/select/storage/configure/batch/Batch.vue +1 -1
  21. package/components/common/wizards/vm/migrate/select/storage/configure/batch/config/virtualDiskFormat.ts +6 -5
  22. package/package.json +1 -1
@@ -34,8 +34,11 @@
34
34
  <script setup lang="ts">
35
35
  import type { UI_I_SendDataVideoCard } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
36
36
  import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
37
+ import type {UI_I_Localization} from "~/lib/models/interfaces";
37
38
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
38
- import { videoCardModelOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/lib/config/options'
39
+ import {
40
+ videoCardModelOptionsConfigFunc
41
+ } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/lib/config/options'
39
42
 
40
43
  const props = defineProps<{
41
44
  isEdit: boolean
@@ -49,6 +52,8 @@ const emits = defineEmits<{
49
52
  (event: 'remove-error-by-title', value: string): void
50
53
  }>()
51
54
 
55
+ const localization = computed<UI_I_Localization>(() => useLocal())
56
+
52
57
  const { $store }: any = useNuxtApp()
53
58
  const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
54
59
 
@@ -77,8 +82,8 @@ watch(
77
82
  // const graphics = ref(false)
78
83
 
79
84
  const videoCardModel = ref<string>('qxl')
80
- const videoCardModelOptions = ref<UI_I_OptionItem[]>(
81
- videoCardModelOptionsConfig
85
+ const videoCardModelOptions = computed<UI_I_OptionItem[]>(() =>
86
+ videoCardModelOptionsConfigFunc(localization.value)
82
87
  )
83
88
  const videoCardModelName = computed<string>(
84
89
  () =>
@@ -15,7 +15,10 @@
15
15
 
16
16
  <script setup lang="ts">
17
17
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
18
- import { videoCardModelOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/lib/config/options'
18
+ import {
19
+ videoCardModelOptionsConfigFunc
20
+ } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/lib/config/options'
21
+ import type {UI_I_Localization} from "~/lib/models/interfaces";
19
22
 
20
23
  const videoCardModel = defineModel<string>('videoCardModel')
21
24
 
@@ -23,11 +26,13 @@ const props = defineProps<{
23
26
  disabled: boolean
24
27
  }>()
25
28
 
29
+ const localization = computed<UI_I_Localization>(() => useLocal())
30
+
26
31
  const { $store }: any = useNuxtApp()
27
32
  const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
28
33
 
29
- const videoCardModelOptions = ref<UI_I_OptionItem[]>(
30
- videoCardModelOptionsConfig
34
+ const videoCardModelOptions = computed<UI_I_OptionItem[]>(() =>
35
+ videoCardModelOptionsConfigFunc(localization.value)
31
36
  )
32
37
  </script>
33
38
 
@@ -1,10 +1,13 @@
1
1
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
2
+ import type {UI_I_Localization} from "~/lib/models/interfaces";
2
3
 
3
- export const videoCardModelOptionsConfig: UI_I_OptionItem[] = [
4
- // { text: 'VGA', value: 'vga', disabled: true },
5
- // { text: 'CIRRUS', value: 'cirrus' },
6
- // { text: 'VMVGA', value: 'vmvga', disabled: true },
7
- { text: 'QXL', value: 'qxl' },
8
- // { text: 'virtio', value: 'virtio' },
9
- { text: 'none', value: 'none' },
10
- ]
4
+ export const videoCardModelOptionsConfigFunc = (localization: UI_I_Localization):UI_I_OptionItem[] => {
5
+ return [
6
+ // { text: 'VGA', value: 'vga', disabled: true },
7
+ // { text: 'CIRRUS', value: 'cirrus' },
8
+ // { text: 'VMVGA', value: 'vmvga', disabled: true },
9
+ { text: 'QXL', value: 'qxl' },
10
+ // { text: 'virtio', value: 'virtio' },
11
+ { text: localization.common.none, value: 'none' },
12
+ ]
13
+ }