bfg-common 1.5.607 → 1.5.608

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.
@@ -3370,7 +3370,9 @@
3370
3370
  "selectAdvancedOptionsTargetVm": "Абярыце дадатковыя параметры для мэтавай ВМ.",
3371
3371
  "profile": "Профіль",
3372
3372
  "standard": "Стандарт",
3373
- "createLinkedClone": "Стварыць Linked Clone"
3373
+ "createLinkedClone": "Стварыць Linked Clone",
3374
+ "passthroughHostCpuDescription": "Дазваляе віртуальнай машыне непасрэдна выкарыстоўваць фізічны працэсар хоста без эмуляцыі. Забяспечвае максімальную прадукцыйнасць, але абмяжоўвае магчымасць міграцыі паміж серверамі з розным абсталяваннем.",
3375
+ "hostModelCpuDescription": "Эмулюе працэсар з характарыстыкамі, аналагічнымі працэсару хоста. Захоўвае сумяшчальнасць з большасцю функцый CPU, забяспечваючы добры баланс паміж прадукцыйнасцю і магчымасцю міграцыі віртуальных машын."
3374
3376
  },
3375
3377
  "feedback": {
3376
3378
  "additionalDetailsHelp": "Даведка па дадатковых звестках",
@@ -3374,7 +3374,9 @@
3374
3374
  "selectAdvancedOptionsTargetVm": "Select advanced options for the target VM.",
3375
3375
  "profile": "Profile",
3376
3376
  "standard": "Standard",
3377
- "createLinkedClone": "Create Linked Clone"
3377
+ "createLinkedClone": "Create Linked Clone",
3378
+ "passthroughHostCpuDescription": "Allows the virtual machine to directly use the host's physical processor without emulation. Provides maximum performance but limits the ability to migrate between servers with different hardware.",
3379
+ "hostModelCpuDescription": "Emulates a processor with characteristics similar to the host processor. Maintains compatibility with most CPU features, providing a good balance between performance and virtual machine migration capability."
3378
3380
  },
3379
3381
  "feedback": {
3380
3382
  "additionalDetailsHelp": "Additional Details Help",
@@ -3374,7 +3374,9 @@
3374
3374
  "selectAdvancedOptionsTargetVm": "Ընտրեք նպատակային ՎՄ-ի լրացուցիչ կարգավորումները։",
3375
3375
  "profile": "Պրոֆիլ",
3376
3376
  "standard": "Ստանդարտ",
3377
- "createLinkedClone": "Ստեղծել Linked Clone"
3377
+ "createLinkedClone": "Ստեղծել Linked Clone",
3378
+ "passthroughHostCpuDescription": "Թույլ է տալիս վիրտուալ մեքենային ուղղակիորեն օգտագործել հոստի ֆիզիկական պրոցեսորը առանց էմուլյացիայի: Ապահովում է առավելագույն արտադրողականություն, սակայն սահմանափակում է տարբեր սարքավորումներով սերվերների միջև միգրացիայի հնարավորությունը:",
3379
+ "hostModelCpuDescription": "Էմուլյացնում է պրոցեսոր՝ հոստի պրոցեսորին նման բնութագրերով: Պահպանում է համատեղելիությունը CPU-ի մեծ մասի ֆունկցիաների հետ՝ ապահովելով լավ հավասարակշռություն արտադրողականության և վիրտուալ մեքենաների միգրացիայի հնարավորության միջև:"
3378
3380
  },
3379
3381
  "feedback": {
3380
3382
  "additionalDetailsHelp": "Լրացուցիչ մանրամասներ Օգնություն",
@@ -3373,7 +3373,9 @@
3373
3373
  "selectAdvancedOptionsTargetVm": "Мақсатты ВМ үшін қосымша параметрлерді таңдаңыз.",
3374
3374
  "profile": "Профилі",
3375
3375
  "standard": "Стандарт",
3376
- "createLinkedClone": "Linked Clone жасау"
3376
+ "createLinkedClone": "Linked Clone жасау",
3377
+ "passthroughHostCpuDescription": "Виртуалды машинаға эмуляциясыз тікелей хосттың физикалық процессорын пайдалануға мүмкіндік береді. Максималды өнімділікті қамтамасыз етеді, бірақ әртүрлі жабдықтары бар серверлер арасындағы миграция мүмкіндігін шектейді.",
3378
+ "hostModelCpuDescription": "Хост процессорына ұқсас сипаттамалары бар процессорды эмуляциялайды. CPU функцияларының көпшілігімен үйлесімділікті сақтайды, виртуалды машиналардың миграция мүмкіндігі мен өнімділік арасында жақсы теңгерімді қамтамасыз етеді."
3377
3379
  },
3378
3380
  "feedback": {
3379
3381
  "additionalDetailsHelp": "Қосымша мәліметтер анықтамасы",
@@ -3373,7 +3373,9 @@
3373
3373
  "selectAdvancedOptionsTargetVm": "Выберите дополнительные параметры для целевой ВМ.",
3374
3374
  "profile": "Профиль",
3375
3375
  "standard": "Стандартный",
3376
- "createLinkedClone": "Создать Linked Clone"
3376
+ "createLinkedClone": "Создать Linked Clone",
3377
+ "passthroughHostCpuDescription": "Позволяет виртуальной машине напрямую использовать физический процессор хоста без эмуляции. Обеспечивает максимальную производительность, но ограничивает возможность миграции между серверами с разным аппаратным обеспечением.",
3378
+ "hostModelCpuDescription": "Эмулирует процессор с характеристиками, аналогичными процессору хоста. Сохраняет совместимость с большинством функций CPU, обеспечивая хороший баланс между производительностью и возможностью миграции виртуальных машин."
3377
3379
  },
3378
3380
  "feedback": {
3379
3381
  "additionalDetailsHelp": "Дополнительная информация Помощь",
@@ -3371,7 +3371,9 @@
3371
3371
  "selectAdvancedOptionsTargetVm": "为目标虚拟机选择高级选项。",
3372
3372
  "profile": "主机简介",
3373
3373
  "standard": "标准",
3374
- "createLinkedClone": "创建 Linked Clone"
3374
+ "createLinkedClone": "创建 Linked Clone",
3375
+ "passthroughHostCpuDescription": "允许虚拟机直接使用主机的物理处理器而无需模拟。提供最大性能,但限制在不同硬件的服务器之间迁移的能力。",
3376
+ "hostModelCpuDescription": "模拟具有与主机处理器类似特性的处理器。保持与大多数CPU功能的兼容性,在性能和虚拟机迁移能力之间提供良好的平衡。"
3375
3377
  },
3376
3378
  "feedback": {
3377
3379
  "additionalDetailsHelp": "其他详细信息帮助",
@@ -1,133 +1,124 @@
1
- <template>
2
- <ui-stack-block
3
- :has-children="false"
4
- test-id="cpu-model-stack-block"
5
- >
6
- <template #stackBlockKey>
7
- <span class="limit-title mt-2">
8
- {{ localization.common.cpuModel }}
9
- </span>
10
- </template>
11
- <template #stackBlockContent>
12
- <div class="cpu-model-content">
13
- <ui-select
14
- v-model="cpuModel"
15
- :items="props.cpuModelOptions"
16
- :disabled="props.disabled"
17
- :error-text="props.errorText"
18
- test-id="vm-wizard-cpu-model-field"
19
- size="sm"
20
- @change="onChangeCpuModel"
21
- />
22
-
23
- <div class="passthrough-host-cpu-wrap flex-align-center">
24
- <ui-checkbox
25
- v-model="passthroughHostCpu"
26
- :disabled="props.disabled"
27
- :label-text="localization.common.passthroughHostCpu"
28
- size="md"
29
- test-id="passthrough-host-cpu"
30
- @change="emits('change-passthrough-host-cpu', $event)"
31
- />
32
-
33
- <common-tooltip-help
34
- class="ml-2"
35
- test-id="passthrough-help"
36
- help-id="passthrough-help-icon"
37
- dropdown-width="480px"
38
- dropdown-left
39
- is-disabled
40
- >
41
- <p class="help-text">
42
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. A cum
43
- eius expedita, fuga mollitia perferendis quod soluta vel? Dolor,
44
- illo, nam? A consequatur, consequuntur eos impedit iusto labore
45
- sunt tempora!
46
- </p>
47
- </common-tooltip-help>
48
- </div>
49
- <div class="host-model-cpu-wrap flex-align-center">
50
- <ui-checkbox
51
- v-model="hostModelCpu"
52
- :disabled="props.disabled"
53
- :label-text="localization.common.hostModelCpu"
54
- size="md"
55
- test-id="host-model-cpu"
56
- @change="emits('change-host-model-cpu', $event)"
57
- />
58
-
59
- <common-tooltip-help
60
- class="ml-2"
61
- test-id="host-model-help"
62
- help-id="host-model-help-icon"
63
- dropdown-width="480px"
64
- dropdown-left
65
- is-disabled
66
- >
67
- <p class="help-text">
68
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. A cum
69
- eius expedita, fuga mollitia perferendis quod soluta vel? Dolor,
70
- illo, nam? A consequatur, consequuntur eos impedit iusto labore
71
- sunt tempora!
72
- </p>
73
- </common-tooltip-help>
74
- </div>
75
- </div>
76
- </template>
77
- </ui-stack-block>
78
- </template>
79
-
80
- <script setup lang="ts">
81
- import type { UI_T_SelectedValue } from '~/node_modules/bfg-uikit/components/ui/select/models/types'
82
- import type {
83
- UI_I_Localization,
84
- UI_I_HTMLSelectElement,
85
- } from '~/lib/models/interfaces'
86
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
87
-
88
- const cpuModel = defineModel<string>('cpuModel')
89
- const passthroughHostCpu = defineModel<boolean>('passthroughHostCpu')
90
- const hostModelCpu = defineModel<boolean>('hostModelCpu')
91
-
92
- const props = defineProps<{
93
- cpuModelOptions: UI_I_OptionItem[]
94
- disabled: boolean
95
- errorText: string
96
- }>()
97
- const emits = defineEmits<{
98
- (event: 'change-cpu-model', value: UI_I_HTMLSelectElement): void
99
- (event: 'change-passthrough-host-cpu', value: Event): void
100
- (event: 'change-host-model-cpu', value: Event): void
101
- (event: 'remove-error'): void
102
- }>()
103
-
104
- const localization = computed<UI_I_Localization>(() => useLocal())
105
-
106
- const onChangeCpuModel = (data: UI_T_SelectedValue): void => {
107
- emits('change-cpu-model', { target: { value: data } })
108
- }
109
- </script>
110
-
111
- <style scoped lang="scss">
112
- .limit-title {
113
- margin-right: 12px;
114
- }
115
- .cpu-model-content {
116
- display: flex;
117
- flex-direction: column;
118
- //width: 224px;
119
- gap: 12px;
120
-
121
- .tooltip-main {
122
- width: 224px;
123
- }
124
-
125
- :deep(.ui-main-select-toggle) {
126
- width: 100%;
127
- }
128
- .passthrough-host-cpu-wrap :deep(.ui-checkbox-label),
129
- .host-model-cpu-wrap :deep(.ui-checkbox-label) {
130
- min-height: unset !important;
131
- }
132
- }
133
- </style>
1
+ <template>
2
+ <ui-stack-block :has-children="false" test-id="cpu-model-stack-block">
3
+ <template #stackBlockKey>
4
+ <span class="limit-title mt-2">
5
+ {{ localization.common.cpuModel }}
6
+ </span>
7
+ </template>
8
+ <template #stackBlockContent>
9
+ <div class="cpu-model-content">
10
+ <ui-select
11
+ v-model="cpuModel"
12
+ :items="props.cpuModelOptions"
13
+ :disabled="props.disabled"
14
+ :error-text="props.errorText"
15
+ test-id="vm-wizard-cpu-model-field"
16
+ size="sm"
17
+ @change="onChangeCpuModel"
18
+ />
19
+
20
+ <div class="passthrough-host-cpu-wrap flex-align-center">
21
+ <ui-checkbox
22
+ v-model="passthroughHostCpu"
23
+ :disabled="props.disabled"
24
+ :label-text="localization.common.passthroughHostCpu"
25
+ size="md"
26
+ test-id="passthrough-host-cpu"
27
+ @change="emits('change-passthrough-host-cpu', $event)"
28
+ />
29
+
30
+ <common-tooltip-help
31
+ class="ml-2"
32
+ test-id="passthrough-help"
33
+ help-id="passthrough-help-icon"
34
+ dropdown-width="480px"
35
+ dropdown-left
36
+ is-disabled
37
+ >
38
+ <p class="help-text">
39
+ {{ localization.vmWizard.passthroughHostCpuDescription }}
40
+ </p>
41
+ </common-tooltip-help>
42
+ </div>
43
+ <div class="host-model-cpu-wrap flex-align-center">
44
+ <ui-checkbox
45
+ v-model="hostModelCpu"
46
+ :disabled="props.disabled"
47
+ :label-text="localization.common.hostModelCpu"
48
+ size="md"
49
+ test-id="host-model-cpu"
50
+ @change="emits('change-host-model-cpu', $event)"
51
+ />
52
+
53
+ <common-tooltip-help
54
+ class="ml-2"
55
+ test-id="host-model-help"
56
+ help-id="host-model-help-icon"
57
+ dropdown-width="480px"
58
+ dropdown-left
59
+ is-disabled
60
+ >
61
+ <p class="help-text">
62
+ {{localization.vmWizard.hostModelCpuDescription}}
63
+ </p>
64
+ </common-tooltip-help>
65
+ </div>
66
+ </div>
67
+ </template>
68
+ </ui-stack-block>
69
+ </template>
70
+
71
+ <script setup lang="ts">
72
+ import type { UI_T_SelectedValue } from '~/node_modules/bfg-uikit/components/ui/select/models/types'
73
+ import type {
74
+ UI_I_Localization,
75
+ UI_I_HTMLSelectElement,
76
+ } from '~/lib/models/interfaces'
77
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
78
+
79
+ const cpuModel = defineModel<string>('cpuModel')
80
+ const passthroughHostCpu = defineModel<boolean>('passthroughHostCpu')
81
+ const hostModelCpu = defineModel<boolean>('hostModelCpu')
82
+
83
+ const props = defineProps<{
84
+ cpuModelOptions: UI_I_OptionItem[]
85
+ disabled: boolean
86
+ errorText: string
87
+ }>()
88
+ const emits = defineEmits<{
89
+ (event: 'change-cpu-model', value: UI_I_HTMLSelectElement): void
90
+ (event: 'change-passthrough-host-cpu', value: Event): void
91
+ (event: 'change-host-model-cpu', value: Event): void
92
+ (event: 'remove-error'): void
93
+ }>()
94
+
95
+ const localization = computed<UI_I_Localization>(() => useLocal())
96
+
97
+ const onChangeCpuModel = (data: UI_T_SelectedValue): void => {
98
+ emits('change-cpu-model', { target: { value: data } })
99
+ }
100
+ </script>
101
+
102
+ <style scoped lang="scss">
103
+ .limit-title {
104
+ margin-right: 12px;
105
+ }
106
+ .cpu-model-content {
107
+ display: flex;
108
+ flex-direction: column;
109
+ //width: 224px;
110
+ gap: 12px;
111
+
112
+ .tooltip-main {
113
+ width: 224px;
114
+ }
115
+
116
+ :deep(.ui-main-select-toggle) {
117
+ width: 100%;
118
+ }
119
+ .passthrough-host-cpu-wrap :deep(.ui-checkbox-label),
120
+ .host-model-cpu-wrap :deep(.ui-checkbox-label) {
121
+ min-height: unset !important;
122
+ }
123
+ }
124
+ </style>
@@ -1,171 +1,165 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block
4
- :has-children="false"
5
- test-id="cpu-model-stack-block"
6
- >
7
- <template #stackBlockKey>
8
- {{ localization.common.cpuModel }}
9
- </template>
10
- <template #stackBlockContent>
11
- <div>
12
- <atoms-tooltip-error
13
- :has-error="!!props.errorText"
14
- selector="#vm-wizard-cpu-model-field"
15
- @remove="emits('remove-error')"
16
- >
17
- <template #elem>
18
- <div class="select">
19
- <select
20
- id="vm-wizard-cpu-model-field"
21
- :value="props.cpuModel"
22
- :disabled="props.disabled"
23
- data-id="vm-wizard-cpu-model-field"
24
- @change="emits('change-cpu-model', $event)"
25
- >
26
- <option
27
- v-for="(item, key) in props.cpuModelOptions"
28
- :key="key"
29
- :value="item.value"
30
- >
31
- {{ item.text }}
32
- </option>
33
- </select>
34
- </div>
35
- </template>
36
- <template #content>{{ errorText }}</template>
37
- </atoms-tooltip-error>
38
-
39
- <div class="flex align-start flex-col cpu-model-checkbox">
40
- <div class="passthrough-host-cpu-wrap flex-align-center">
41
- <input
42
- id="passthrough-host-cpu"
43
- v-model="passthroughHostCpu"
44
- :disabled="props.disabled"
45
- data-id="passthrough-host-cpu"
46
- type="checkbox"
47
- @change="emits('change-passthrough-host-cpu', $event)"
48
- />
49
- <label for="passthrough-host-cpu" class="label-text-normal">{{
50
- localization.common.passthroughHostCpu
51
- }}</label>
52
- <div
53
- id="passthrough-help-icon"
54
- class="flex-align-center relative"
55
- >
56
- <atoms-the-icon
57
- data-id="show-passthrough-help-icon"
58
- fill="#0072a3"
59
- width="24px"
60
- height="24px"
61
- name="info-circle"
62
- class="cursor-pointer"
63
- @click.stop="selectedTooltip = selectedTooltip === 'passthroughHostCpu' ? '' : 'passthroughHostCpu'"
64
- />
65
- <Teleport to="body">
66
- <atoms-tooltip-signpost
67
- v-if="selectedTooltip === 'passthroughHostCpu'"
68
- elem-id="passthrough-help-icon"
69
- @hide="selectedTooltip = ''"
70
- >
71
- <h3 class="passthrough-help-title">
72
- {{ localization.mainNavigation.help }}
73
- </h3>
74
-
75
- <p class="passthrough-help-text">
76
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
77
- A cum eius expedita, fuga mollitia perferendis quod soluta
78
- vel? Dolor, illo, nam? A consequatur, consequuntur eos
79
- impedit iusto labore sunt tempora!
80
- </p>
81
- </atoms-tooltip-signpost>
82
- </Teleport>
83
- </div>
84
- </div>
85
- <div class="flex-align-center">
86
- <input
87
- id="host-model-cpu"
88
- v-model="hostModelCpu"
89
- :disabled="props.disabled"
90
- data-id="host-model-cpu-input"
91
- type="checkbox"
92
- @change="emits('change-host-model-cpu', $event)"
93
- />
94
- <label for="host-model-cpu" class="label-text-normal">{{
95
- localization.common.hostModelCpu
96
- }}</label>
97
- <div id="host-model-help-icon" class="flex-align-center relative">
98
- <atoms-the-icon
99
- fill="#0072a3"
100
- width="24px"
101
- height="24px"
102
- name="info-circle"
103
- class="cursor-pointer"
104
- data-id="show-host-model-help-icon"
105
- @click.stop="selectedTooltip = selectedTooltip === 'hostModel' ? '' : 'hostModel'"
106
- />
107
- <Teleport to="body">
108
- <atoms-tooltip-signpost
109
- v-if="selectedTooltip === 'hostModel'"
110
- elem-id="host-model-help-icon"
111
- @hide="selectedTooltip = ''"
112
- >
113
- <h3 class="host-model-help-title">
114
- {{ localization.mainNavigation.help }}
115
- </h3>
116
-
117
- <p class="host-model-help-text">
118
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
119
- A cum eius expedita, fuga mollitia perferendis quod soluta
120
- vel? Dolor, illo, nam? A consequatur, consequuntur eos
121
- impedit iusto labore sunt tempora!
122
- </p>
123
- </atoms-tooltip-signpost>
124
- </Teleport>
125
- </div>
126
- </div>
127
- </div>
128
- </div>
129
- </template>
130
- </atoms-stack-block>
131
- </div>
132
- </template>
133
-
134
- <script setup lang="ts">
135
- import type {
136
- UI_I_Localization,
137
- UI_I_HTMLSelectElement,
138
- } from '~/lib/models/interfaces'
139
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
140
-
141
- const selectedTooltip = defineModel<string>('selectedTooltip', { required: true })
142
- const passthroughHostCpu = defineModel<boolean>('passthroughHostCpu')
143
- const hostModelCpu = defineModel<boolean>('hostModelCpu')
144
-
145
- const props = defineProps<{
146
- cpuModel: string
147
- cpuModelOptions: UI_I_OptionItem[]
148
- disabled: boolean
149
- errorText: string
150
- }>()
151
- const emits = defineEmits<{
152
- (event: 'change-cpu-model', value: UI_I_HTMLSelectElement): void
153
- (event: 'change-passthrough-host-cpu', value: Event): void
154
- (event: 'change-host-model-cpu', value: Event): void
155
- (event: 'remove-error'): void
156
- }>()
157
-
158
- const localization = computed<UI_I_Localization>(() => useLocal())
159
-
160
- </script>
161
-
162
- <style scoped lang="scss">
163
- .cpu-model-checkbox {
164
- margin-top: 4px;
165
- }
166
-
167
- #passthrough-host-cpu,
168
- #host-model-cpu {
169
- margin: 0 4px 0 0;
170
- }
171
- </style>
1
+ <template>
2
+ <div class="">
3
+ <atoms-stack-block
4
+ :has-children="false"
5
+ test-id="cpu-model-stack-block"
6
+ >
7
+ <template #stackBlockKey>
8
+ {{ localization.common.cpuModel }}
9
+ </template>
10
+ <template #stackBlockContent>
11
+ <div>
12
+ <atoms-tooltip-error
13
+ :has-error="!!props.errorText"
14
+ selector="#vm-wizard-cpu-model-field"
15
+ @remove="emits('remove-error')"
16
+ >
17
+ <template #elem>
18
+ <div class="select">
19
+ <select
20
+ id="vm-wizard-cpu-model-field"
21
+ :value="props.cpuModel"
22
+ :disabled="props.disabled"
23
+ data-id="vm-wizard-cpu-model-field"
24
+ @change="emits('change-cpu-model', $event)"
25
+ >
26
+ <option
27
+ v-for="(item, key) in props.cpuModelOptions"
28
+ :key="key"
29
+ :value="item.value"
30
+ >
31
+ {{ item.text }}
32
+ </option>
33
+ </select>
34
+ </div>
35
+ </template>
36
+ <template #content>{{ errorText }}</template>
37
+ </atoms-tooltip-error>
38
+
39
+ <div class="flex align-start flex-col cpu-model-checkbox">
40
+ <div class="passthrough-host-cpu-wrap flex-align-center">
41
+ <input
42
+ id="passthrough-host-cpu"
43
+ v-model="passthroughHostCpu"
44
+ :disabled="props.disabled"
45
+ data-id="passthrough-host-cpu"
46
+ type="checkbox"
47
+ @change="emits('change-passthrough-host-cpu', $event)"
48
+ />
49
+ <label for="passthrough-host-cpu" class="label-text-normal">{{
50
+ localization.common.passthroughHostCpu
51
+ }}</label>
52
+ <div
53
+ id="passthrough-help-icon"
54
+ class="flex-align-center relative"
55
+ >
56
+ <atoms-the-icon
57
+ data-id="show-passthrough-help-icon"
58
+ fill="#0072a3"
59
+ width="24px"
60
+ height="24px"
61
+ name="info-circle"
62
+ class="cursor-pointer"
63
+ @click.stop="selectedTooltip = selectedTooltip === 'passthroughHostCpu' ? '' : 'passthroughHostCpu'"
64
+ />
65
+ <Teleport to="body">
66
+ <atoms-tooltip-signpost
67
+ v-if="selectedTooltip === 'passthroughHostCpu'"
68
+ elem-id="passthrough-help-icon"
69
+ @hide="selectedTooltip = ''"
70
+ >
71
+ <h3 class="passthrough-help-title">
72
+ {{ localization.mainNavigation.help }}
73
+ </h3>
74
+
75
+ <p class="passthrough-help-text">
76
+ {{localization.vmWizard.passthroughHostCpuDescription}}
77
+ </p>
78
+ </atoms-tooltip-signpost>
79
+ </Teleport>
80
+ </div>
81
+ </div>
82
+ <div class="flex-align-center">
83
+ <input
84
+ id="host-model-cpu"
85
+ v-model="hostModelCpu"
86
+ :disabled="props.disabled"
87
+ data-id="host-model-cpu-input"
88
+ type="checkbox"
89
+ @change="emits('change-host-model-cpu', $event)"
90
+ />
91
+ <label for="host-model-cpu" class="label-text-normal">{{
92
+ localization.common.hostModelCpu
93
+ }}</label>
94
+ <div id="host-model-help-icon" class="flex-align-center relative">
95
+ <atoms-the-icon
96
+ fill="#0072a3"
97
+ width="24px"
98
+ height="24px"
99
+ name="info-circle"
100
+ class="cursor-pointer"
101
+ data-id="show-host-model-help-icon"
102
+ @click.stop="selectedTooltip = selectedTooltip === 'hostModel' ? '' : 'hostModel'"
103
+ />
104
+ <Teleport to="body">
105
+ <atoms-tooltip-signpost
106
+ v-if="selectedTooltip === 'hostModel'"
107
+ elem-id="host-model-help-icon"
108
+ @hide="selectedTooltip = ''"
109
+ >
110
+ <h3 class="host-model-help-title">
111
+ {{ localization.mainNavigation.help }}
112
+ </h3>
113
+
114
+ <p class="host-model-help-text">
115
+ {{localization.vmWizard.hostModelCpuDescription}}
116
+ </p>
117
+ </atoms-tooltip-signpost>
118
+ </Teleport>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </template>
124
+ </atoms-stack-block>
125
+ </div>
126
+ </template>
127
+
128
+ <script setup lang="ts">
129
+ import type {
130
+ UI_I_Localization,
131
+ UI_I_HTMLSelectElement,
132
+ } from '~/lib/models/interfaces'
133
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
134
+
135
+ const selectedTooltip = defineModel<string>('selectedTooltip', { required: true })
136
+ const passthroughHostCpu = defineModel<boolean>('passthroughHostCpu')
137
+ const hostModelCpu = defineModel<boolean>('hostModelCpu')
138
+
139
+ const props = defineProps<{
140
+ cpuModel: string
141
+ cpuModelOptions: UI_I_OptionItem[]
142
+ disabled: boolean
143
+ errorText: string
144
+ }>()
145
+ const emits = defineEmits<{
146
+ (event: 'change-cpu-model', value: UI_I_HTMLSelectElement): void
147
+ (event: 'change-passthrough-host-cpu', value: Event): void
148
+ (event: 'change-host-model-cpu', value: Event): void
149
+ (event: 'remove-error'): void
150
+ }>()
151
+
152
+ const localization = computed<UI_I_Localization>(() => useLocal())
153
+
154
+ </script>
155
+
156
+ <style scoped lang="scss">
157
+ .cpu-model-checkbox {
158
+ margin-top: 4px;
159
+ }
160
+
161
+ #passthrough-host-cpu,
162
+ #host-model-cpu {
163
+ margin: 0 4px 0 0;
164
+ }
165
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.607",
4
+ "version": "1.5.608",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",