bfg-common 1.5.239 → 1.5.241

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 (32) hide show
  1. package/assets/scss/common/theme.scss +6 -0
  2. package/components/atoms/table/dataGrid/DataGrid.vue +1 -1
  3. package/components/common/browse/BrowseNew.vue +8 -2
  4. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +5 -2
  5. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +7 -7
  6. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +2 -2
  7. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +4 -0
  8. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +194 -190
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +246 -237
  10. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +6 -1
  11. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +158 -154
  12. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +8 -2
  13. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +4 -0
  14. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +8 -3
  15. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +8 -4
  16. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +6 -1
  17. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +6 -1
  18. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +1 -1
  19. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +4 -3
  20. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +1 -0
  21. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +1 -0
  22. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +36 -30
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +5 -2
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +5 -2
  25. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +85 -81
  26. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +71 -67
  27. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +150 -149
  28. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +146 -140
  29. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +5 -1
  30. package/components/common/vm/actions/common/select/storage/new/New.vue +5 -1
  31. package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +2 -1
  32. package/package.json +2 -2
@@ -1,81 +1,85 @@
1
- <template>
2
- <ui-stack-block :has-children="true" test-id="boot-options-stack-block">
3
- <template #stackBlockKey>
4
- <div
5
- id="vm-wizard-toggle-block-boot-option"
6
- data-id="vm-wizard-toggle-block-boot-option"
7
- class="flex-align-center"
8
- >
9
- <span>{{ localization.common.bootOptions }}</span>
10
- </div>
11
- </template>
12
- <template #stackChildren>
13
- <common-vm-actions-common-customize-hardware-vmoptions-boot-options-firmware
14
- v-model:firmware="firmware"
15
- :error-validation-fields="props.errorValidationFields"
16
- :is-edit="props.isEdit"
17
- :is-disabled="isDisabled"
18
- @remove-error-by-title="emits('remove-error-by-title', $event)"
19
- />
20
- <common-vm-actions-common-customize-hardware-vmoptions-boot-options-secure
21
- v-if="firmware === 'uefi'"
22
- v-model:secure-boot="secureBoot"
23
- :is-disabled="isDisabled"
24
- />
25
- <common-vm-actions-common-customize-hardware-vmoptions-boot-options-menu
26
- v-model:boot-menu="bootMenu"
27
- :is-disabled="isDisabled"
28
- />
29
- <common-vm-actions-common-customize-hardware-vmoptions-boot-options-delay
30
- v-model:boot-delay="bootDelay"
31
- :is-disabled="isDisabled"
32
- />
33
- <common-vm-actions-common-customize-hardware-vmoptions-boot-options-order
34
- :hard-disks="props.hardDisks"
35
- :cd-dvd-drives="props.cdDvdDrives"
36
- :networks="props.networks"
37
- :is-disabled="isDisabled"
38
- @change="emits('change-boot-order', $event)"
39
- />
40
- </template>
41
- </ui-stack-block>
42
- </template>
43
-
44
- <script setup lang="ts">
45
- import type {
46
- UI_I_SendDataNewCdDvdDrive,
47
- UI_I_SendDataNewHardDisk,
48
- UI_I_SendDataNewNetwork,
49
- } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
50
- import type { UI_I_Localization } from '~/lib/models/interfaces'
51
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
52
-
53
- const firmware = defineModel<string>('firmware', { required: true })
54
- const secureBoot = defineModel<boolean>('secureBoot', { required: true })
55
- const bootMenu = defineModel<boolean>('bootMenu', { required: true })
56
- const bootDelay = defineModel<number>('bootDelay', { required: true })
57
-
58
- const props = defineProps<{
59
- errorValidationFields: UI_I_ErrorValidationField[]
60
- hardDisks: UI_I_SendDataNewHardDisk[] | null
61
- cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
62
- networks: UI_I_SendDataNewNetwork[] | null
63
- isEdit: boolean
64
- isDisabled: boolean
65
- }>()
66
- const emits = defineEmits<{
67
- (
68
- event: 'change-boot-order',
69
- value: [
70
- UI_I_SendDataNewHardDisk[],
71
- UI_I_SendDataNewCdDvdDrive[],
72
- UI_I_SendDataNewNetwork[]
73
- ]
74
- ): void
75
- (event: 'remove-error-by-title', value: string): void
76
- }>()
77
-
78
- const localization = computed<UI_I_Localization>(() => useLocal())
79
- </script>
80
-
81
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="boot-options-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
7
+ <template #stackBlockKey>
8
+ <div
9
+ id="vm-wizard-toggle-block-boot-option"
10
+ data-id="vm-wizard-toggle-block-boot-option"
11
+ class="flex-align-center"
12
+ >
13
+ <span>{{ localization.common.bootOptions }}</span>
14
+ </div>
15
+ </template>
16
+ <template #stackChildren>
17
+ <common-vm-actions-common-customize-hardware-vmoptions-boot-options-firmware
18
+ v-model:firmware="firmware"
19
+ :error-validation-fields="props.errorValidationFields"
20
+ :is-edit="props.isEdit"
21
+ :is-disabled="isDisabled"
22
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
23
+ />
24
+ <common-vm-actions-common-customize-hardware-vmoptions-boot-options-secure
25
+ v-if="firmware === 'uefi'"
26
+ v-model:secure-boot="secureBoot"
27
+ :is-disabled="isDisabled"
28
+ />
29
+ <common-vm-actions-common-customize-hardware-vmoptions-boot-options-menu
30
+ v-model:boot-menu="bootMenu"
31
+ :is-disabled="isDisabled"
32
+ />
33
+ <common-vm-actions-common-customize-hardware-vmoptions-boot-options-delay
34
+ v-model:boot-delay="bootDelay"
35
+ :is-disabled="isDisabled"
36
+ />
37
+ <common-vm-actions-common-customize-hardware-vmoptions-boot-options-order
38
+ :hard-disks="props.hardDisks"
39
+ :cd-dvd-drives="props.cdDvdDrives"
40
+ :networks="props.networks"
41
+ :is-disabled="isDisabled"
42
+ @change="emits('change-boot-order', $event)"
43
+ />
44
+ </template>
45
+ </ui-stack-block>
46
+ </template>
47
+
48
+ <script setup lang="ts">
49
+ import type {
50
+ UI_I_SendDataNewCdDvdDrive,
51
+ UI_I_SendDataNewHardDisk,
52
+ UI_I_SendDataNewNetwork,
53
+ } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
54
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
55
+ import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
56
+
57
+ const firmware = defineModel<string>('firmware', { required: true })
58
+ const secureBoot = defineModel<boolean>('secureBoot', { required: true })
59
+ const bootMenu = defineModel<boolean>('bootMenu', { required: true })
60
+ const bootDelay = defineModel<number>('bootDelay', { required: true })
61
+
62
+ const props = defineProps<{
63
+ errorValidationFields: UI_I_ErrorValidationField[]
64
+ hardDisks: UI_I_SendDataNewHardDisk[] | null
65
+ cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
66
+ networks: UI_I_SendDataNewNetwork[] | null
67
+ isEdit: boolean
68
+ isDisabled: boolean
69
+ }>()
70
+ const emits = defineEmits<{
71
+ (
72
+ event: 'change-boot-order',
73
+ value: [
74
+ UI_I_SendDataNewHardDisk[],
75
+ UI_I_SendDataNewCdDvdDrive[],
76
+ UI_I_SendDataNewNetwork[]
77
+ ]
78
+ ): void
79
+ (event: 'remove-error-by-title', value: string): void
80
+ }>()
81
+
82
+ const localization = computed<UI_I_Localization>(() => useLocal())
83
+ </script>
84
+
85
+ <style scoped lang="scss"></style>
@@ -1,67 +1,71 @@
1
- <template>
2
- <ui-stack-block :has-children="false">
3
- <template #stackBlockKey>
4
- {{ localization.common.bootOrder }}
5
- </template>
6
- <template #stackBlockContent>
7
- <ui-drag-drop-list
8
- :items="props.bootList"
9
- grab-item-key="text"
10
- :disabled="props.isDisabled"
11
- @drop="emits('change-order', $event)"
12
- @grab="onGrab"
13
- >
14
- <template
15
- v-for="(item, index) in props.bootList"
16
- :key="index"
17
- #[`leftSide${index}`]
18
- >
19
- <ui-checkbox
20
- v-model="item.isChecked"
21
- :test-id="item.testId"
22
- size="md"
23
- :disabled="props.isDisabled"
24
- />
25
- </template>
26
- <template
27
- v-for="(item, index) in props.bootList"
28
- :key="props.bootList.length + index"
29
- #[`rightSide${index}`]
30
- >
31
- <div :class="['device-icon', item.iconClassName]" />
32
- <span class="device-name">{{ item.text }}</span>
33
- </template>
34
- <template #icon v-if="grabedItem">
35
- <div :class="['device-icon', grabedItem.iconClassName]" />
36
- </template>
37
- </ui-drag-drop-list>
38
- </template>
39
- </ui-stack-block>
40
- </template>
41
-
42
- <script setup lang="ts">
43
- import type { UI_I_BootItem } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces'
44
- import type { UI_I_Localization } from '~/lib/models/interfaces'
45
- import type { UI_I_DropEvent } from '~/components/atoms/list/dragDropList/lib/config/events'
46
-
47
- const localization = computed<UI_I_Localization>(() => useLocal())
48
-
49
- const props = defineProps<{
50
- bootList: UI_I_BootItem[]
51
- isDisabled: boolean
52
- }>()
53
- const emits = defineEmits<{
54
- (event: 'change-order', value: UI_I_DropEvent): void
55
- }>()
56
-
57
- const grabedItem = ref<any>(null)
58
- const onGrab = (item: any): void => {
59
- grabedItem.value = item
60
- }
61
- </script>
62
-
63
- <style scoped lang="scss">
64
- .device-name {
65
- margin-left: -4px;
66
- }
67
- </style>
1
+ <template>
2
+ <ui-stack-block :has-children="false">
3
+ <template #stackBlockKey>
4
+ {{ localization.common.bootOrder }}
5
+ </template>
6
+ <template #stackBlockContent>
7
+ <ui-drag-drop-list
8
+ :items="props.bootList"
9
+ grab-item-key="text"
10
+ :disabled="props.isDisabled"
11
+ @drop="emits('change-order', $event)"
12
+ @grab="onGrab"
13
+ >
14
+ <template
15
+ v-for="(item, index) in props.bootList"
16
+ :key="index"
17
+ #[`leftSide${index}`]
18
+ >
19
+ <ui-checkbox
20
+ v-model="item.isChecked"
21
+ :test-id="item.testId"
22
+ size="md"
23
+ :disabled="props.isDisabled"
24
+ />
25
+ </template>
26
+ <template
27
+ v-for="(item, index) in props.bootList"
28
+ :key="props.bootList.length + index"
29
+ #[`rightSide${index}`]
30
+ >
31
+ <div :class="['device-icon', item.iconClassName]" />
32
+ <span class="device-name">{{ item.text }}</span>
33
+ </template>
34
+ <template #icon v-if="grabedItem">
35
+ <div :class="['device-icon', grabedItem.iconClassName]" />
36
+ </template>
37
+ </ui-drag-drop-list>
38
+ </template>
39
+ </ui-stack-block>
40
+ </template>
41
+
42
+ <script setup lang="ts">
43
+ import type { UI_I_BootItem } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces'
44
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
45
+ import type { UI_I_DropEvent } from '~/components/atoms/list/dragDropList/lib/config/events'
46
+
47
+ const localization = computed<UI_I_Localization>(() => useLocal())
48
+
49
+ const props = defineProps<{
50
+ bootList: UI_I_BootItem[]
51
+ isDisabled: boolean
52
+ }>()
53
+ const emits = defineEmits<{
54
+ (event: 'change-order', value: UI_I_DropEvent): void
55
+ }>()
56
+
57
+ const grabedItem = ref<any>(null)
58
+ const onGrab = (item: any): void => {
59
+ grabedItem.value = item
60
+ }
61
+ </script>
62
+
63
+ <style scoped lang="scss">
64
+ .device-icon {
65
+ width: 20px;
66
+ height: 20px;
67
+ }
68
+ .device-name {
69
+ margin-left: -4px;
70
+ }
71
+ </style>
@@ -1,149 +1,150 @@
1
- <template>
2
- <ui-stack-block
3
- :has-children="true"
4
- test-id="general-options-stack-block"
5
- @toggle="blockIsOpen = $event"
6
- >
7
- <template #stackBlockKey>
8
- <div
9
- id="vm-wizard-toggle-block-general-options"
10
- data-id="vm-wizard-toggle-block-general-options"
11
- class="flex-align-center"
12
- >
13
- <span>{{ localization.common.generalOptions }}</span>
14
- </div>
15
- </template>
16
- <template #stackBlockContent>
17
- <div v-show="!blockIsOpen" class="vm-name-wrap">
18
- <span class="vsphere-icon-vm"></span>
19
- <span>{{ vmName }}</span>
20
- </div>
21
- </template>
22
- <template #stackChildren>
23
- <ui-stack-block :has-children="false">
24
- <template #stackBlockKey>
25
- {{ localization.common.vmName }}
26
- </template>
27
- <template #stackBlockContent>
28
- <div class="vm-name-wrap">
29
- <span class="vsphere-icon-vm"></span>
30
- <span>{{ vmName }}</span>
31
- </div>
32
- <!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
33
- <!-- <input-->
34
- <!-- v-else-->
35
- <!-- id="general-option-vm-name"-->
36
- <!-- v-models="vmName"-->
37
- <!-- type="text"-->
38
- <!-- />-->
39
- </template>
40
- </ui-stack-block>
41
-
42
- <ui-stack-block :has-children="false">
43
- <template #stackBlockKey>
44
- {{ localization.common.machineType }}
45
- </template>
46
- <template #stackBlockContent>
47
- <ui-select
48
- v-if="guestMachineType"
49
- id="guest-machine-type-select"
50
- v-model="guestMachineType"
51
- :items="props.machineTypeOptions"
52
- :disabled="props.isDisabled"
53
- width="auto"
54
- test-id="guest-machine-type-select"
55
- class="guest-machine-type-select"
56
- size="sm"
57
- />
58
- </template>
59
- </ui-stack-block>
60
-
61
- <ui-stack-block :has-children="false">
62
- <template #stackBlockKey>
63
- {{ localization.common.guestOsFamily }}
64
- </template>
65
- <template #stackBlockContent>
66
- <ui-select
67
- v-if="guestOsFamily"
68
- id="guest-os-family-select"
69
- v-model="guestOsFamily"
70
- :items="props.osOptions"
71
- :disabled="props.isDisabled"
72
- width="auto"
73
- test-id="guest-os-family-select"
74
- class="guest-os-family-select"
75
- size="sm"
76
- @change="emits('change-os')"
77
- />
78
- </template>
79
- </ui-stack-block>
80
-
81
- <ui-stack-block :has-children="false">
82
- <template #stackBlockKey>
83
- {{ localization.common.guestOsVersion }}
84
- </template>
85
- <template #stackBlockContent>
86
- <ui-select
87
- v-if="guestOsVersion"
88
- id="guest-os-version-select"
89
- v-model="guestOsVersion"
90
- :items="props.versionsOptions"
91
- :disabled="props.isDisabled"
92
- width="auto"
93
- test-id="guest-os-version-select"
94
- class="guest-os-version-select"
95
- size="sm"
96
- />
97
- </template>
98
- </ui-stack-block>
99
- </template>
100
- </ui-stack-block>
101
- </template>
102
-
103
- <script setup lang="ts">
104
- import type { UI_I_Localization } from '~/lib/models/interfaces'
105
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
106
-
107
- const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
108
- const vmName = defineModel<string>('vmName', { required: true })
109
- const guestMachineType = defineModel<string>('guestMachineType', {
110
- required: true,
111
- })
112
- const guestOsFamily = defineModel<string>('guestOsFamily', { required: true })
113
- const guestOsVersion = defineModel<string>('guestOsVersion', {
114
- required: true,
115
- })
116
-
117
- const props = defineProps<{
118
- isDisabled: boolean
119
- machineTypeOptions: UI_I_OptionItem[]
120
- osOptions: UI_I_OptionItem[]
121
- versionsOptions: UI_I_OptionItem[]
122
- }>()
123
- const emits = defineEmits<{
124
- (event: 'change-os'): void
125
- }>()
126
-
127
- const localization = computed<UI_I_Localization>(() => useLocal())
128
- </script>
129
-
130
- <style scoped lang="scss">
131
- .vm-name-wrap {
132
- display: flex;
133
- align-items: center;
134
- gap: 4px;
135
- }
136
-
137
- .vsphere-icon-vm {
138
- width: 20px;
139
- height: 20px;
140
- }
141
-
142
- :deep(.guest-os-family-select .ui-main-select-toggle),
143
- :deep(.guest-machine-type-select .ui-main-select-toggle) {
144
- width: 108px;
145
- }
146
- :deep(.guest-os-version-select .ui-main-select-toggle) {
147
- width: 196px;
148
- }
149
- </style>
1
+ <template>
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="general-options-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ @toggle="blockIsOpen = $event"
7
+ >
8
+ <template #stackBlockKey>
9
+ <div
10
+ id="vm-wizard-toggle-block-general-options"
11
+ data-id="vm-wizard-toggle-block-general-options"
12
+ class="flex-align-center"
13
+ >
14
+ <span>{{ localization.common.generalOptions }}</span>
15
+ </div>
16
+ </template>
17
+ <template #stackBlockContent>
18
+ <div v-show="!blockIsOpen" class="vm-name-wrap">
19
+ <span class="vsphere-icon-vm"></span>
20
+ <span>{{ vmName }}</span>
21
+ </div>
22
+ </template>
23
+ <template #stackChildren>
24
+ <ui-stack-block :has-children="false">
25
+ <template #stackBlockKey>
26
+ {{ localization.common.vmName }}
27
+ </template>
28
+ <template #stackBlockContent>
29
+ <div class="vm-name-wrap">
30
+ <span class="vsphere-icon-vm"></span>
31
+ <span>{{ vmName }}</span>
32
+ </div>
33
+ <!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
34
+ <!-- <input-->
35
+ <!-- v-else-->
36
+ <!-- id="general-option-vm-name"-->
37
+ <!-- v-models="vmName"-->
38
+ <!-- type="text"-->
39
+ <!-- />-->
40
+ </template>
41
+ </ui-stack-block>
42
+
43
+ <ui-stack-block :has-children="false">
44
+ <template #stackBlockKey>
45
+ {{ localization.common.machineType }}
46
+ </template>
47
+ <template #stackBlockContent>
48
+ <ui-select
49
+ v-if="guestMachineType"
50
+ id="guest-machine-type-select"
51
+ v-model="guestMachineType"
52
+ :items="props.machineTypeOptions"
53
+ :disabled="props.isDisabled"
54
+ width="auto"
55
+ test-id="guest-machine-type-select"
56
+ class="guest-machine-type-select"
57
+ size="sm"
58
+ />
59
+ </template>
60
+ </ui-stack-block>
61
+
62
+ <ui-stack-block :has-children="false">
63
+ <template #stackBlockKey>
64
+ {{ localization.common.guestOsFamily }}
65
+ </template>
66
+ <template #stackBlockContent>
67
+ <ui-select
68
+ v-if="guestOsFamily"
69
+ id="guest-os-family-select"
70
+ v-model="guestOsFamily"
71
+ :items="props.osOptions"
72
+ :disabled="props.isDisabled"
73
+ width="auto"
74
+ test-id="guest-os-family-select"
75
+ class="guest-os-family-select"
76
+ size="sm"
77
+ @change="emits('change-os')"
78
+ />
79
+ </template>
80
+ </ui-stack-block>
81
+
82
+ <ui-stack-block :has-children="false">
83
+ <template #stackBlockKey>
84
+ {{ localization.common.guestOsVersion }}
85
+ </template>
86
+ <template #stackBlockContent>
87
+ <ui-select
88
+ v-if="guestOsVersion"
89
+ id="guest-os-version-select"
90
+ v-model="guestOsVersion"
91
+ :items="props.versionsOptions"
92
+ :disabled="props.isDisabled"
93
+ width="auto"
94
+ test-id="guest-os-version-select"
95
+ class="guest-os-version-select"
96
+ size="sm"
97
+ />
98
+ </template>
99
+ </ui-stack-block>
100
+ </template>
101
+ </ui-stack-block>
102
+ </template>
103
+
104
+ <script setup lang="ts">
105
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
106
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
107
+
108
+ const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
109
+ const vmName = defineModel<string>('vmName', { required: true })
110
+ const guestMachineType = defineModel<string>('guestMachineType', {
111
+ required: true,
112
+ })
113
+ const guestOsFamily = defineModel<string>('guestOsFamily', { required: true })
114
+ const guestOsVersion = defineModel<string>('guestOsVersion', {
115
+ required: true,
116
+ })
117
+
118
+ const props = defineProps<{
119
+ isDisabled: boolean
120
+ machineTypeOptions: UI_I_OptionItem[]
121
+ osOptions: UI_I_OptionItem[]
122
+ versionsOptions: UI_I_OptionItem[]
123
+ }>()
124
+ const emits = defineEmits<{
125
+ (event: 'change-os'): void
126
+ }>()
127
+
128
+ const localization = computed<UI_I_Localization>(() => useLocal())
129
+ </script>
130
+
131
+ <style scoped lang="scss">
132
+ .vm-name-wrap {
133
+ display: flex;
134
+ align-items: center;
135
+ gap: 4px;
136
+ }
137
+
138
+ .vsphere-icon-vm {
139
+ width: 20px;
140
+ height: 20px;
141
+ }
142
+
143
+ :deep(.guest-os-family-select .ui-main-select-toggle),
144
+ :deep(.guest-machine-type-select .ui-main-select-toggle) {
145
+ width: 108px;
146
+ }
147
+ :deep(.guest-os-version-select .ui-main-select-toggle) {
148
+ width: 196px;
149
+ }
150
+ </style>