bfg-common 1.4.397 → 1.4.399

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 (123) hide show
  1. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +1 -1
  2. package/components/common/vm/actions/editSettings/EditSettingsNew.vue +1 -1
  3. package/package.json +1 -1
  4. package/components/common/vm/actions/common/_customizeHardware/CustomizeHardware.vue +0 -274
  5. package/components/common/vm/actions/common/_customizeHardware/lib/config/navItems.ts +0 -21
  6. package/components/common/vm/actions/common/_customizeHardware/lib/models/interfaces.ts +0 -7
  7. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/VirtualHardware.vue +0 -702
  8. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/browseView/BrowseView.vue +0 -203
  9. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/browseView/lib/models/interfaces.ts +0 -8
  10. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/bus/Bus.vue +0 -156
  11. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/bus/lib/config/options.ts +0 -20
  12. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +0 -270
  13. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/config/fileTypes.ts +0 -9
  14. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/config/options.ts +0 -11
  15. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/models/types.ts +0 -1
  16. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +0 -57
  17. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +0 -110
  18. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Cpu.vue +0 -403
  19. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +0 -56
  20. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CpuModel.vue +0 -225
  21. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Hv.vue +0 -99
  22. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Iommu.vue +0 -55
  23. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/MaxCpu.vue +0 -106
  24. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Pc.vue +0 -55
  25. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Sa.vue +0 -106
  26. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/lib/config/cpuOptions.ts +0 -21
  27. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/shares/Shares.vue +0 -160
  28. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +0 -28
  29. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/tooltip/Tooltip.vue +0 -59
  30. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/config/binaryOptions.ts +0 -12
  31. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/config/dropdownItems.ts +0 -66
  32. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/models/interfaces.ts +0 -118
  33. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/models/types.ts +0 -4
  34. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/limit/Limit.vue +0 -236
  35. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/limit/lib/config/options.ts +0 -28
  36. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/Memory.vue +0 -329
  37. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/MemoryHotPlug.vue +0 -54
  38. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/lib/config/memoryOptions.ts +0 -35
  39. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/DiskFile.vue +0 -24
  40. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/MaximumSize.vue +0 -27
  41. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +0 -462
  42. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +0 -81
  43. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/cache/lib/config/options.ts +0 -7
  44. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +0 -153
  45. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/limitIops/lib/config/options.ts +0 -28
  46. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/Location.vue +0 -172
  47. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +0 -52
  48. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/StorageModalNew.vue +0 -175
  49. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/lib/config/table.ts +0 -167
  50. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/mode/Mode.vue +0 -88
  51. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/mode/lib/config/options.ts +0 -18
  52. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/provisioning/Provisioning.vue +0 -88
  53. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/provisioning/lib/config/options.ts +0 -15
  54. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/sharing/Sharing.vue +0 -86
  55. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/sharing/lib/config/options.ts +0 -12
  56. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/Location.vue +0 -145
  57. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +0 -305
  58. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/adapterType/AdapterType.vue +0 -87
  59. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/adapterType/lib/config/options.ts +0 -9
  60. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +0 -148
  61. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/macAddress/lib/config/options.ts +0 -11
  62. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +0 -168
  63. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +0 -48
  64. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +0 -49
  65. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/lib/config/options.ts +0 -10
  66. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/lib/config/options.ts +0 -7
  67. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/note/Note.vue +0 -27
  68. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +0 -42
  69. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelection.vue +0 -57
  70. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +0 -82
  71. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newUsbController/lib/config/options.ts +0 -6
  72. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/other/InputDevices.vue +0 -21
  73. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/other/Other.vue +0 -32
  74. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/reservation/Reservation.vue +0 -237
  75. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/reservation/lib/config/options.ts +0 -33
  76. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/Graphics.vue +0 -50
  77. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/TotalVideoMemory.vue +0 -121
  78. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/VideoCard.vue +0 -182
  79. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/lib/config/options.ts +0 -11
  80. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/model/Model.vue +0 -59
  81. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/model/lib/config/options.ts +0 -10
  82. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +0 -83
  83. package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/numberDisplays/lib/config/options.ts +0 -14
  84. package/components/common/vm/actions/common/_customizeHardware/vmoptions/Vmoptions.vue +0 -181
  85. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/BootOptions.vue +0 -114
  86. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Menu.vue +0 -50
  87. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Secure.vue +0 -50
  88. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/delay/Delay.vue +0 -54
  89. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/delay/lib/config/config.ts +0 -14
  90. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +0 -84
  91. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/firmware/lib/config/config.ts +0 -11
  92. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/order/Order.vue +0 -201
  93. package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces.ts +0 -9
  94. package/components/common/vm/actions/common/_customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +0 -192
  95. package/components/common/vm/actions/common/_customizeHardware/vmoptions/lib/models/interfaces.ts +0 -34
  96. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +0 -52
  97. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/FileTransfer.vue +0 -52
  98. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/FolderSharing.vue +0 -51
  99. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +0 -52
  100. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +0 -50
  101. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +0 -254
  102. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +0 -85
  103. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/lib/config/config.ts +0 -14
  104. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +0 -85
  105. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/lib/config/config.ts +0 -12
  106. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +0 -56
  107. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/keymap/lib/config/config.ts +0 -6
  108. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/MouseMode.vue +0 -57
  109. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/lib/config/config.ts +0 -11
  110. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +0 -142
  111. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/lib/models/interfaces.ts +0 -5
  112. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/lib/utils.ts +0 -12
  113. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/SharePolicy.vue +0 -56
  114. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/lib/config/config.ts +0 -11
  115. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +0 -85
  116. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/lib/config/config.ts +0 -12
  117. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +0 -85
  118. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/type/lib/config/config.ts +0 -7
  119. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +0 -57
  120. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/lib/config/config.ts +0 -14
  121. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +0 -85
  122. package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/lib/config/config.ts +0 -12
  123. package/components/common/vm/actions/common/_customizeHardware/vmoptions/tools/Tools.vue +0 -72
@@ -1,87 +0,0 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.adapterType }}
6
- </template>
7
- <template #stackBlockContent>
8
- <atoms-tooltip-error
9
- :has-error="!!apiError"
10
- :selector="`.vm-wizard-network-model-field-${props.index}`"
11
- @remove="onRemoveValidationError"
12
- >
13
- <template #elem>
14
- <div class="select">
15
- <select
16
- :id="`vm-wizard-network-model-field-${props.index}`"
17
- v-model="adapterTypeLocal"
18
- :data-id="`vm-wizard-network-model-field-${props.index}`"
19
- :class="`vm-wizard-network-model-field-${props.index}`"
20
- :disabled="props.disabled"
21
- >
22
- <option
23
- v-for="(item, key) in adapterTypeOptions"
24
- :key="key"
25
- :value="item.value"
26
- :disabled="item.disabled"
27
- >
28
- {{ item.text }}
29
- </option>
30
- </select>
31
- </div>
32
- </template>
33
- <template #content>{{ apiError }}</template>
34
- </atoms-tooltip-error>
35
- </template>
36
- </atoms-stack-block>
37
- </div>
38
- </template>
39
-
40
- <script setup lang="ts">
41
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
42
- import type { UI_I_Localization } from '~/lib/models/interfaces'
43
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
44
- import { adapterTypeOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/adapterType/lib/config/options'
45
-
46
- const localization = computed<UI_I_Localization>(() => useLocal())
47
-
48
- const props = defineProps<{
49
- adapterType: string
50
- index: number
51
- disabled: boolean
52
- errorValidationFields: UI_I_ErrorValidationField[]
53
- }>()
54
- const emits = defineEmits<{
55
- (event: 'update:adapter-type', value: string): void
56
- (event: 'remove-error-by-title', value: string): void
57
- }>()
58
-
59
- const adapterTypeOptions = ref<UI_I_OptionItem[]>(adapterTypeOptionsConfig)
60
-
61
- const adapterTypeLocal = computed<string>({
62
- get() {
63
- return props.adapterType
64
- },
65
- set(newValue) {
66
- emits('update:adapter-type', newValue)
67
- },
68
- })
69
-
70
- const typeError = computed<string>(
71
- () => `network_devices[${props.index}].model`
72
- )
73
-
74
- const apiError = computed<string>(() => {
75
- return (
76
- props.errorValidationFields?.find(
77
- (message) => message.field === typeError.value
78
- )?.error_message || ''
79
- )
80
- })
81
-
82
- const onRemoveValidationError = (): void => {
83
- emits('remove-error-by-title', typeError.value)
84
- }
85
- </script>
86
-
87
- <style scoped></style>
@@ -1,9 +0,0 @@
1
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
2
-
3
- export const adapterTypeOptionsConfig: UI_I_OptionItem[] = [
4
- { text: 'Paravirtual', value: 'virtio' },
5
- { text: 'E1000', value: 'e1000' },
6
- { text: 'RTL8139', value: 'rtl8139' },
7
- { text: 'VMXNET 3', value: 'vmxnet3' },
8
- { text: 'SR-IOV passthrough', value: '', disabled: true },
9
- ]
@@ -1,148 +0,0 @@
1
- <template>
2
- <div>
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.macAddress }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-align-center">
9
- <atoms-tooltip-error
10
- :has-error="!!macAddressLocalAndApiErrorsTexts"
11
- :selector="`.vm-wizard-network-mac-address-field-${props.index}`"
12
- @remove="onRemoveValidationError"
13
- >
14
- <template #elem>
15
- <input
16
- :id="`vm-wizard-network-mac-address-field-${props.index}`"
17
- type="text"
18
- :value="props.macAddress"
19
- :data-id="`vm-wizard-network-mac-address-field-${props.index}`"
20
- :disabled="
21
- props.macAddressType === 'automatic' || props.disabled
22
- "
23
- :class="[
24
- `vm-wizard-network-mac-address-field-${props.index}`,
25
- { 'has-error': macAddressLocalErrorText },
26
- ]"
27
- @input="onChangeMacAddress"
28
- />
29
- </template>
30
- <template #content>
31
- {{ macAddressLocalAndApiErrorsTexts }}
32
- </template>
33
- </atoms-tooltip-error>
34
-
35
- <div class="select">
36
- <select
37
- :id="`mac-address-select-${props.index}`"
38
- :value="props.macAddressType"
39
- :data-id="`mac-address-select-${props.index}`"
40
- :disabled="props.disabled"
41
- @change="onChangeMacAddressType"
42
- >
43
- <option
44
- v-for="(item, key) in macAddressOptions"
45
- :key="key"
46
- :value="item.value"
47
- >
48
- {{ item.text }}
49
- </option>
50
- </select>
51
- </div>
52
- </div>
53
- </template>
54
- </atoms-stack-block>
55
- </div>
56
- </template>
57
-
58
- <script setup lang="ts">
59
- import type {
60
- UI_I_Localization,
61
- UI_I_HTMLSelectElement,
62
- } from '~/lib/models/interfaces'
63
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
64
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
65
- import { macAddressOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/lib/config/options'
66
-
67
- const localization = computed<UI_I_Localization>(() => useLocal())
68
-
69
- const props = defineProps<{
70
- macAddressType: string
71
- macAddress: string
72
- index: number
73
- disabled: boolean
74
- errorValidationFields: UI_I_ErrorValidationField[]
75
- }>()
76
- const emits = defineEmits<{
77
- (event: 'update:mac-address', value: string): void
78
- (event: 'update:mac-address-type', value: string): void
79
- (event: 'invalid', value: boolean): void
80
- (event: 'remove-error-by-title', value: string): void
81
- }>()
82
-
83
- const macAddressOptions = ref<UI_I_OptionItem[]>(
84
- macAddressOptionsFunc(localization.value)
85
- )
86
-
87
- const onChangeMacAddressType = (event: UI_I_HTMLSelectElement): void => {
88
- emits('update:mac-address-type', event.target.value)
89
- emits(
90
- 'update:mac-address',
91
- event.target.value === 'manual' ? '00:50:56:' : ''
92
- )
93
- }
94
- const onChangeMacAddress = (event: Event): void => {
95
- const target = event.target as HTMLInputElement
96
- emits('update:mac-address', target.value)
97
- }
98
-
99
- const macAddressLocalErrorText = computed<string>(() => {
100
- /* eslint-disable no-useless-escape */
101
- const isValidMacAddress =
102
- /^[0-9a-f]{1,2}([\.:-])(?:[0-9a-f]{1,2}\1){4}[0-9a-f]{1,2}$/.test(
103
- props.macAddress
104
- )
105
-
106
- return props.macAddressType === 'manual' && !isValidMacAddress
107
- ? localization.value.common.invalidMacAddress
108
- : ''
109
- })
110
- watch(macAddressLocalErrorText, (text) => {
111
- emits('invalid', !!text.length)
112
- })
113
-
114
- const typeError = computed<string>(
115
- () => `network_devices[${props.index}].mac_address`
116
- )
117
-
118
- const apiErrorLocal = computed<string>(() => {
119
- return (
120
- props.errorValidationFields?.find(
121
- (message) => message.field === typeError.value
122
- )?.error_message || ''
123
- )
124
- })
125
-
126
- const macAddressLocalAndApiErrorsTexts = computed<string>(() => {
127
- const localError = macAddressLocalErrorText.value
128
- const apiError = apiErrorLocal.value
129
-
130
- let result = ''
131
- if (localError && !apiError) result = localError
132
- if (!localError && apiError) result = apiError
133
- if (localError && apiError) result = localError + ', ' + apiError
134
- if (!localError && apiError) result = apiError
135
-
136
- return result
137
- })
138
-
139
- const onRemoveValidationError = (): void => {
140
- emits('remove-error-by-title', typeError.value)
141
- }
142
- </script>
143
-
144
- <style scoped lang="scss">
145
- .has-error {
146
- border: 1px solid #db2100;
147
- }
148
- </style>
@@ -1,11 +0,0 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
3
-
4
- export const macAddressOptionsFunc = (
5
- localization: UI_I_Localization
6
- ): UI_I_OptionItem[] => {
7
- return [
8
- { text: localization.common.manual, value: 'manual' },
9
- { text: localization.common.automatic, value: 'automatic' },
10
- ]
11
- }
@@ -1,168 +0,0 @@
1
- <template>
2
- <div class="hardware-pci-device">
3
- <atoms-stack-block
4
- :has-children="true"
5
- :removable="isRemovable"
6
- test-id="pci-device-stack-block"
7
- @remove="onRemovePciDevice"
8
- >
9
- <template #stackBlockKey>
10
- <div
11
- :id="`vm-wizard-toggle-block-pci-device-${props.index}`"
12
- :data-id="`vm-wizard-toggle-block-pci-device-${props.index}`"
13
- class="flex-align-center"
14
- >
15
- <span>{{ label }}</span>
16
- </div>
17
- </template>
18
- <template #stackBlockContent>
19
- <span class="main-label">
20
- {{ selectedLabel }}
21
- </span>
22
- </template>
23
- <template #stackChildren>
24
- <template v-if="props.type === 'new'">
25
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-pci-device-type-selection
26
- v-model="selectedType"
27
- :options="pciDeviceTypeOptions"
28
- :pci-device-index="props.index"
29
- />
30
-
31
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-pci-device-direct-path-io
32
- v-show="selectedType.value === 'direct_path_io'"
33
- v-model="directPathIo"
34
- :pci-device-index="props.index"
35
- :passthrough-devices="props.passthroughDevices"
36
- />
37
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-pci-device-dynamic-direct-path-io
38
- v-show="selectedType.value === 'dynamic_direct_path_io'"
39
- v-model="dynamicDirectPathIo"
40
- :pci-device-index="props.index"
41
- :passthrough-devices="props.passthroughDevices"
42
- />
43
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-pci-device-nvidia-grid
44
- v-show="selectedType.value === 'nvidia_grid'"
45
- v-model="nvidiaGridProfile"
46
- :pci-device-index="props.index"
47
- />
48
- </template>
49
-
50
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-pci-device-note />
51
- </template>
52
- </atoms-stack-block>
53
- </div>
54
- </template>
55
-
56
- <script setup lang="ts">
57
- import type { UI_I_Localization } from '~/lib/models/interfaces'
58
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
59
- import type { UI_I_SendDataNewPciDevice } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
60
- import type { UI_T_PciDeviceType } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/types'
61
- import type { UI_I_PciDevice } from '~/lib/models/store/vm/interfaces'
62
- import { pciDeviceTypeOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/lib/config/options'
63
-
64
- const props = defineProps<{
65
- index: number
66
- pciDevice: UI_I_SendDataNewPciDevice
67
- passthroughDevices: UI_I_PciDevice[]
68
- type: UI_T_PciDeviceType
69
- isEdit: boolean
70
- state?: string | number
71
- // errorValidationFields: UI_I_ErrorValidationField<string>[]
72
- }>()
73
- const emits = defineEmits<{
74
- (event: 'send-data', value: UI_I_SendDataNewPciDevice): void
75
- (event: 'remove'): void
76
- }>()
77
-
78
- const localization = computed<UI_I_Localization>(() => useLocal())
79
-
80
- const isRunning = computed<boolean>(() => {
81
- return props.state === 2
82
- })
83
-
84
- const isRemovable = computed<boolean>(() => {
85
- return !props.isEdit || !isRunning.value
86
- })
87
-
88
- const label = computed<string>(() => {
89
- if (props.type === 'edit')
90
- return `${localization.value.common.newPciDevice} ${props.index + 1}`
91
-
92
- return `${localization.value.common.pciDevice} *`
93
- })
94
-
95
- const selectedLabel = computed<string>(() => {
96
- switch (selectedType.value.value) {
97
- case 'direct_path_io':
98
- return `${directPathIo.value.address}|${directPathIo.value.device_name}`
99
- case 'dynamic_direct_path_io':
100
- return dynamicDirectPathIo.value
101
- default:
102
- return nvidiaGridProfile.value
103
- }
104
- })
105
-
106
- const pciDeviceTypeOptions = ref<UI_I_OptionItem[]>(pciDeviceTypeOptionsConfig)
107
- const selectedType = ref<UI_I_OptionItem>(pciDeviceTypeOptionsConfig[0])
108
-
109
- const directPathIo = ref<UI_I_PciDevice>(props.passthroughDevices[0])
110
- const dynamicDirectPathIo = ref<string>('')
111
- const nvidiaGridProfile = ref<string>('')
112
-
113
- watch(
114
- props.pciDevice,
115
- (newValue) => {
116
- // const passthroughDevice = props.passthroughDevices.find(
117
- // (item) => item.address === newValue.address
118
- // )
119
- // passthroughDevice && (directPathIo.value = passthroughDevice) // Todo change
120
- newValue && (directPathIo.value = newValue)
121
- },
122
- { immediate: true }
123
- )
124
-
125
- const sendData = computed<UI_I_SendDataNewPciDevice>(() => {
126
- switch (selectedType.value.value) {
127
- case 'direct_path_io':
128
- return {
129
- address: directPathIo.value.address,
130
- vendor_name: directPathIo.value.vendor_name,
131
- class_name: directPathIo.value.class_name,
132
- device_name: directPathIo.value.device_name,
133
- }
134
- case 'dynamic_direct_path_io':
135
- return {
136
- address: '',
137
- vendor_name: '',
138
- class_name: '',
139
- device_name: '',
140
- }
141
- default:
142
- return {
143
- address: '',
144
- vendor_name: '',
145
- class_name: '',
146
- device_name: '',
147
- }
148
- }
149
- })
150
-
151
- watch(
152
- sendData,
153
- (newValue) => {
154
- emits('send-data', newValue)
155
- },
156
- { immediate: true }
157
- )
158
-
159
- const onRemovePciDevice = (): void => {
160
- emits('remove')
161
- }
162
- </script>
163
-
164
- <style scoped lang="scss">
165
- #network-connect {
166
- margin-right: 4px;
167
- }
168
- </style>
@@ -1,48 +0,0 @@
1
- <template>
2
- <atoms-stack-block :has-children="false">
3
- <template #stackBlockContent>
4
- <div class="select">
5
- <select
6
- id="direct-path-io"
7
- v-model="valueLocal"
8
- data-id="direct-path-io-select"
9
- >
10
- <option
11
- v-for="item in props.passthroughDevices"
12
- :key="item.id"
13
- :value="item"
14
- >
15
- {{ item.address }} | {{ item.device_name }}
16
- </option>
17
- </select>
18
- </div>
19
- </template>
20
- </atoms-stack-block>
21
- </template>
22
-
23
- <script lang="ts" setup>
24
- import {
25
- UI_I_ConfigureAllPciDevicesItem,
26
- UI_I_ConfigurePciDevicesTable,
27
- } from '~/lib/models/store/host/interfaces'
28
-
29
- const props = defineProps<{
30
- modelValue: UI_I_ConfigureAllPciDevicesItem
31
- pciDeviceIndex: number
32
- passthroughDevices: UI_I_ConfigurePciDevicesTable
33
- }>()
34
- const emits = defineEmits<{
35
- (event: 'update:model-value', value: UI_I_ConfigureAllPciDevicesItem): void
36
- }>()
37
-
38
- const valueLocal = computed<UI_I_ConfigureAllPciDevicesItem>({
39
- get() {
40
- return props.modelValue
41
- },
42
- set(newValue: UI_I_ConfigureAllPciDevicesItem) {
43
- emits('update:model-value', newValue)
44
- },
45
- })
46
- </script>
47
-
48
- <style lang="scss" scoped></style>
@@ -1,49 +0,0 @@
1
- <template>
2
- <div>
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.pciDevice }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div>{{ localization.common.connectAnyFollowing }}:</div>
9
- <atoms-select-the-select
10
- v-model="localValue"
11
- :options="options"
12
- test-id="dynamic-direct-path-io-select"
13
- >
14
- <span class="text-uppercase">{{ localization.common.selectHardware }}</span>
15
- </atoms-select-the-select>
16
- </template>
17
- </atoms-stack-block>
18
- </div>
19
- </template>
20
-
21
- <script lang="ts" setup>
22
- import type { UI_I_Localization } from '~/lib/models/interfaces'
23
- import type { UI_I_Option } from '~/components/atoms/select/lib/models/interfaces'
24
- import { optionsConfig } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/lib/config/options'
25
-
26
- const props = defineProps<{
27
- modelValue: string
28
- pciDeviceIndex: number
29
- }>()
30
- const emits = defineEmits<{
31
- (event: 'update:model-value', value: string): void
32
- }>()
33
-
34
- const localValue = computed<string>({
35
- get() {
36
- return props.modelValue
37
- },
38
- set(newValue) {
39
- emits('update:model-value', newValue)
40
- },
41
- })
42
-
43
- const localization = computed<UI_I_Localization>(() => useLocal())
44
-
45
- const options = ref<UI_I_Option[]>(optionsConfig)
46
- localValue.value = '' + options.value[0].value
47
- </script>
48
-
49
- <style lang="scss" scoped></style>
@@ -1,10 +0,0 @@
1
- export const optionsConfig = [
2
- {
3
- text: 'NetXtreme BCM5719 Gigabit Ethernet',
4
- value: 'net_xtreme_BCM5719_gigabit_ethernet',
5
- },
6
- {
7
- text: 'NetXtreme BCM5719 Gigabit Ethernet (NEWNETPCI)',
8
- value: 'net_xtreme_BCM5719_gigabit_ethernet_NEWNETPCI',
9
- },
10
- ]
@@ -1,7 +0,0 @@
1
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
2
-
3
- export const pciDeviceTypeOptionsConfig: UI_I_OptionItem[] = [
4
- { text: 'DP I/O', value: 'direct_path_io' },
5
- { text: 'Dynamic DP I/O', value: 'dynamic_direct_path_io' },
6
- { text: 'GRID vGPU', value: 'nvidia_grid' },
7
- ]
@@ -1,27 +0,0 @@
1
- <template>
2
- <atoms-stack-block :has-children="false">
3
- <template #stackBlockContent>
4
- <span>
5
- <atoms-the-icon
6
- name="warning"
7
- width="16px"
8
- heigth="16px"
9
- class="note-icon"
10
- />
11
- </span>
12
- <span>{{ localization.common.note }}: {{ localization.common.pciDeviceNote }}</span>
13
- </template>
14
- </atoms-stack-block>
15
- </template>
16
-
17
- <script lang="ts" setup>
18
- import type { UI_I_Localization } from '~/lib/models/interfaces'
19
-
20
- const localization = computed<UI_I_Localization>(() => useLocal())
21
- </script>
22
-
23
- <style lang="scss" scoped>
24
- .note-icon {
25
- margin-bottom: -4px;
26
- }
27
- </style>
@@ -1,42 +0,0 @@
1
- <template>
2
- <div>
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.nvidiaGridGpuProfile }}
6
- </template>
7
- <template #stackBlockContent>
8
- <input
9
- :id="`nvidia-grid-${props.pciDeviceIndex}`"
10
- v-model="profile"
11
- :data-id="`nvidia-grid-${props.pciDeviceIndex}-input`"
12
- type="text"
13
- />
14
- </template>
15
- </atoms-stack-block>
16
- </div>
17
- </template>
18
-
19
- <script lang="ts" setup>
20
- import type { UI_I_Localization } from '~/lib/models/interfaces'
21
-
22
- const props = defineProps<{
23
- modelValue: string
24
- pciDeviceIndex: number
25
- }>()
26
- const emits = defineEmits<{
27
- (event: 'update:model-value', value: string): void
28
- }>()
29
-
30
- const profile = computed<string>({
31
- get() {
32
- return props.modelValue
33
- },
34
- set(newValue) {
35
- emits('update:model-value', newValue)
36
- },
37
- })
38
-
39
- const localization = computed<UI_I_Localization>(() => useLocal())
40
- </script>
41
-
42
- <style lang="scss" scoped></style>
@@ -1,57 +0,0 @@
1
- <template>
2
- <div>
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockContent>
5
- <div class="flex-align-center">
6
- <div
7
- v-for="(item, index) in options"
8
- :key="item"
9
- class="flex-align-center"
10
- >
11
- <input
12
- :id="`pci-device-radio-input-${props.pciDeviceIndex}-${index}`"
13
- v-model="selectedType"
14
- type="radio"
15
- :value="item"
16
- :disabled="!!index"
17
- :data-id="`pci-device-radio-input-${props.pciDeviceIndex}-${index}`"
18
- />
19
- <label
20
- :for="`pci-device-radio-input-${props.pciDeviceIndex}-${index}`"
21
- >{{ item.text }}</label
22
- >
23
- </div>
24
- </div>
25
- </template>
26
- </atoms-stack-block>
27
- </div>
28
- </template>
29
-
30
- <script setup lang="ts">
31
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
32
-
33
- const props = defineProps<{
34
- modelValue: UI_I_OptionItem
35
- options: UI_I_OptionItem[]
36
- pciDeviceIndex: number
37
- }>()
38
- const emits = defineEmits<{
39
- (event: 'update:model-value', value: UI_I_OptionItem): void
40
- }>()
41
-
42
- const selectedType = computed<UI_I_OptionItem>({
43
- get() {
44
- return props.modelValue
45
- },
46
- set(newValue: UI_I_OptionItem) {
47
- emits('update:model-value', newValue)
48
- },
49
- })
50
- </script>
51
-
52
- <style scoped lang="scss">
53
- input,
54
- label {
55
- margin-right: 4px;
56
- }
57
- </style>