bfg-common 1.4.656 → 1.4.658

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 (100) hide show
  1. package/components/atoms/TheIcon3.vue +50 -50
  2. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  3. package/components/atoms/stack/StackBlock.vue +185 -185
  4. package/components/atoms/table/dataGrid/DataGrid.vue +1633 -1633
  5. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
  6. package/components/common/browse/BrowseNew.vue +237 -237
  7. package/components/common/browse/BrowseOld.vue +217 -217
  8. package/components/common/browse/blocks/contents/Files.vue +37 -37
  9. package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
  10. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
  11. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  12. package/components/common/context/lib/models/interfaces.ts +30 -30
  13. package/components/common/context/recursion/Recursion.vue +86 -86
  14. package/components/common/context/recursion/RecursionNew.vue +199 -199
  15. package/components/common/context/recursion/RecursionOld.vue +213 -213
  16. package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
  17. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +105 -105
  18. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
  19. package/components/common/modals/confirmByInput/ConfirmByInput.vue +206 -206
  20. package/components/common/modals/unsavedChanges/UnsavedChanges.vue +56 -56
  21. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +1 -1
  22. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +1 -1
  23. package/components/common/spiceConsole/Drawer.vue +370 -370
  24. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  25. package/components/common/split/vertical/Vertical.vue +160 -160
  26. package/components/common/vm/actions/add/Add.vue +617 -617
  27. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  28. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +267 -267
  29. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +269 -269
  30. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
  31. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
  32. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
  33. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
  34. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  35. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
  36. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +338 -338
  37. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
  38. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
  39. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
  40. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  41. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +281 -281
  42. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  43. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  44. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  45. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  46. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  47. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  48. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  49. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
  51. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
  52. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
  53. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  54. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  55. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  56. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
  57. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
  58. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  59. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  60. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +30 -30
  61. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +107 -107
  62. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +115 -115
  63. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  64. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  65. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  66. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  67. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  68. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  69. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  70. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  71. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  72. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  73. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  74. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  75. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  76. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  77. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  78. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  79. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  80. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  81. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +102 -102
  82. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +94 -94
  83. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  84. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  85. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  86. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  87. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  88. package/components/common/vm/actions/editSettings/EditSettings.vue +232 -232
  89. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +183 -183
  90. package/components/common/vm/actions/editSettings/new/New.vue +177 -177
  91. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  92. package/composables/productNameLocal.ts +30 -30
  93. package/package.json +1 -1
  94. package/plugins/date.ts +233 -233
  95. package/plugins/recursion.ts +311 -311
  96. package/public/spice-console/lib/images/bitmap.js +203 -203
  97. package/public/spice-console/network/spicechannel.js +383 -383
  98. package/store/main/mutations.ts +7 -7
  99. package/store/main/state.ts +7 -7
  100. package/store/tasks/mappers/recentTasks.ts +64 -64
@@ -1,107 +1,107 @@
1
- <template>
2
- <ui-stack-block :has-children="true" test-id="video-card-stack-block">
3
- <template #stackBlockKey>
4
- <div
5
- id="vm-wizard-toggle-block-video-card"
6
- data-id="vm-wizard-toggle-block-video-card"
7
- class="flex-align-center"
8
- >
9
- <span class="title"
10
- >{{ localization.common.videoCard }}:
11
- {{ props.videoCardModelName }}</span
12
- >
13
- <ui-icon
14
- v-show="invalid"
15
- width="18px"
16
- height="18px"
17
- name="error-outline"
18
- />
19
- </div>
20
- </template>
21
- <template #stackBlockContent>
22
- <ui-select
23
- id="vm-wizard-video-card"
24
- v-model="selectedVideoCard"
25
- width="auto"
26
- :items="props.videoCardOptions"
27
- :disabled="props.isEdit && props.state !== 1"
28
- test-id="vm-wizard-video-card-select"
29
- class="vm-wizard-video-card video-card-select"
30
- :error-text="props.errorText"
31
- @click.stop
32
- />
33
- </template>
34
- <template #stackChildren>
35
- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-number-displays
36
- v-model:number-displays="numberDisplays"
37
- :disabled="props.isDisabled"
38
- :error-validation-fields="props.errorValidationFields"
39
- @remove-error-by-title="emits('remove-error-by-title', $event)"
40
- />
41
- <!-- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-total-video-memory-->
42
- <!-- v-model:total-video-memory="totalVideoMemory"-->
43
- <!-- :disabled="props.isDisabled"-->
44
- <!-- :is-edit="props.isEdit"-->
45
- <!-- :error-validation-fields="props.errorValidationFields"-->
46
- <!-- @invalid="invalid = $event"-->
47
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
48
- <!-- />-->
49
- <!-- <templates-home-vm-actions-add-customize-hardware-virtual-hardware-video-card-graphics-->
50
- <!-- v-models:graphics="graphics"-->
51
- <!-- />-->
52
- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-model
53
- v-model:video-card-model="videoCardModel"
54
- :disabled="props.isDisabled"
55
- />
56
- </template>
57
- </ui-stack-block>
58
- </template>
59
-
60
- <script setup lang="ts">
61
- import type { UI_I_Localization } from '~/lib/models/interfaces'
62
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
63
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
64
-
65
- const invalid = defineModel<boolean>('invalid', { required: true })
66
- const selectedVideoCard = defineModel<string>('selectedVideoCard', {
67
- required: true,
68
- })
69
- const numberDisplays = defineModel<string>('numberDisplays', { required: true })
70
- // const totalVideoMemory = defineModel<number>('totalVideoMemory', {
71
- // required: true,
72
- // })
73
- const videoCardModel = defineModel<string>('videoCardModel', { required: true })
74
-
75
- const props = defineProps<{
76
- isEdit: boolean
77
- errorValidationFields: UI_I_ErrorValidationField[]
78
- videoCardModelName: string
79
- errorText: string
80
- videoCardOptions: UI_I_OptionItem[]
81
- isDisabled: boolean
82
- state?: string | number
83
- }>()
84
- const emits = defineEmits<{
85
- (event: 'remove-error'): void
86
- (event: 'remove-error-by-title', value: string): void
87
- }>()
88
-
89
- const localization = computed<UI_I_Localization>(() => useLocal())
90
- </script>
91
-
92
- <style scoped lang="scss">
93
- .title {
94
- margin-right: 10px;
95
- }
96
-
97
- :deep(.video-card-select .ui-main-select-toggle) {
98
- display: flex;
99
- justify-content: space-between;
100
- width: 196px;
101
- }
102
- .light-theme {
103
- :deep(.video-card-select .ui-main-select-toggle) {
104
- background-color: #ffffff;
105
- }
106
- }
107
- </style>
1
+ <template>
2
+ <ui-stack-block :has-children="true" test-id="video-card-stack-block">
3
+ <template #stackBlockKey>
4
+ <div
5
+ id="vm-wizard-toggle-block-video-card"
6
+ data-id="vm-wizard-toggle-block-video-card"
7
+ class="flex-align-center"
8
+ >
9
+ <span class="title"
10
+ >{{ localization.common.videoCard }}:
11
+ {{ props.videoCardModelName }}</span
12
+ >
13
+ <ui-icon
14
+ v-show="invalid"
15
+ width="18px"
16
+ height="18px"
17
+ name="error-outline"
18
+ />
19
+ </div>
20
+ </template>
21
+ <template #stackBlockContent>
22
+ <ui-select
23
+ id="vm-wizard-video-card"
24
+ v-model="selectedVideoCard"
25
+ width="auto"
26
+ :items="props.videoCardOptions"
27
+ :disabled="props.isEdit && props.state !== 1"
28
+ test-id="vm-wizard-video-card-select"
29
+ class="vm-wizard-video-card video-card-select"
30
+ :error-text="props.errorText"
31
+ @click.stop
32
+ />
33
+ </template>
34
+ <template #stackChildren>
35
+ <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-number-displays
36
+ v-model:number-displays="numberDisplays"
37
+ :disabled="props.isDisabled"
38
+ :error-validation-fields="props.errorValidationFields"
39
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
40
+ />
41
+ <!-- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-total-video-memory-->
42
+ <!-- v-model:total-video-memory="totalVideoMemory"-->
43
+ <!-- :disabled="props.isDisabled"-->
44
+ <!-- :is-edit="props.isEdit"-->
45
+ <!-- :error-validation-fields="props.errorValidationFields"-->
46
+ <!-- @invalid="invalid = $event"-->
47
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
48
+ <!-- />-->
49
+ <!-- <templates-home-vm-actions-add-customize-hardware-virtual-hardware-video-card-graphics-->
50
+ <!-- v-models:graphics="graphics"-->
51
+ <!-- />-->
52
+ <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-model
53
+ v-model:video-card-model="videoCardModel"
54
+ :disabled="props.isDisabled"
55
+ />
56
+ </template>
57
+ </ui-stack-block>
58
+ </template>
59
+
60
+ <script setup lang="ts">
61
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
62
+ import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
63
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
64
+
65
+ const invalid = defineModel<boolean>('invalid', { required: true })
66
+ const selectedVideoCard = defineModel<string>('selectedVideoCard', {
67
+ required: true,
68
+ })
69
+ const numberDisplays = defineModel<string>('numberDisplays', { required: true })
70
+ // const totalVideoMemory = defineModel<number>('totalVideoMemory', {
71
+ // required: true,
72
+ // })
73
+ const videoCardModel = defineModel<string>('videoCardModel', { required: true })
74
+
75
+ const props = defineProps<{
76
+ isEdit: boolean
77
+ errorValidationFields: UI_I_ErrorValidationField[]
78
+ videoCardModelName: string
79
+ errorText: string
80
+ videoCardOptions: UI_I_OptionItem[]
81
+ isDisabled: boolean
82
+ state?: string | number
83
+ }>()
84
+ const emits = defineEmits<{
85
+ (event: 'remove-error'): void
86
+ (event: 'remove-error-by-title', value: string): void
87
+ }>()
88
+
89
+ const localization = computed<UI_I_Localization>(() => useLocal())
90
+ </script>
91
+
92
+ <style scoped lang="scss">
93
+ .title {
94
+ margin-right: 10px;
95
+ }
96
+
97
+ :deep(.video-card-select .ui-main-select-toggle) {
98
+ display: flex;
99
+ justify-content: space-between;
100
+ width: 196px;
101
+ }
102
+ .light-theme {
103
+ :deep(.video-card-select .ui-main-select-toggle) {
104
+ background-color: #ffffff;
105
+ }
106
+ }
107
+ </style>
@@ -1,115 +1,115 @@
1
- <template>
2
- <div class="hardware-video-card">
3
- <atoms-stack-block :has-children="true" test-id="video-card-stack-block">
4
- <template #stackBlockKey>
5
- <div
6
- id="vm-wizard-toggle-block-video-card"
7
- data-id="vm-wizard-toggle-block-video-card"
8
- class="flex-align-center"
9
- >
10
- <span
11
- >{{ localization.common.videoCard }}:
12
- {{ props.videoCardModelName }}</span
13
- >
14
- <atoms-the-icon
15
- v-show="invalid"
16
- width="24px"
17
- height="24px"
18
- class="is-error tooltip-trigger"
19
- name="info"
20
- />
21
- </div>
22
- </template>
23
- <template #stackBlockContent>
24
- <atoms-tooltip-error
25
- :has-error="!!props.errorText"
26
- selector=".vm-wizard-video-card"
27
- @remove="emits('remove-error')"
28
- >
29
- <template #elem>
30
- <div class="select">
31
- <select
32
- id="vm-wizard-video-card"
33
- v-model="selectedVideoCard"
34
- data-id="vm-wizard-video-card-select"
35
- class="vm-wizard-video-card input-text-color"
36
- :disabled="props.isEdit && props.state !== 1"
37
- @click.stop
38
- >
39
- <option
40
- v-for="(item, key) in props.videoCardOptions"
41
- :key="key"
42
- :value="item.value"
43
- >
44
- {{ item.text }}
45
- </option>
46
- </select>
47
- </div>
48
- </template>
49
- <template #content>{{ props.errorText }}</template>
50
- </atoms-tooltip-error>
51
- </template>
52
- <template #stackChildren>
53
- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-number-displays
54
- v-model:number-displays="numberDisplays"
55
- :disabled="props.isDisabled"
56
- :error-validation-fields="props.errorValidationFields"
57
- @remove-error-by-title="emits('remove-error-by-title', $event)"
58
- />
59
- <!-- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-total-video-memory-->
60
- <!-- v-model:total-video-memory="totalVideoMemory"-->
61
- <!-- :disabled="props.isDisabled"-->
62
- <!-- :is-edit="props.isEdit"-->
63
- <!-- :error-validation-fields="props.errorValidationFields"-->
64
- <!-- @invalid="invalid = $event"-->
65
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
66
- <!-- />-->
67
- <!-- <templates-home-vm-actions-add-customize-hardware-virtual-hardware-video-card-graphics-->
68
- <!-- v-models:graphics="graphics"-->
69
- <!-- />-->
70
- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-model
71
- v-model:video-card-model="videoCardModel"
72
- :disabled="props.isDisabled"
73
- />
74
- </template>
75
- </atoms-stack-block>
76
- </div>
77
- </template>
78
-
79
- <script setup lang="ts">
80
- import type { UI_I_Localization } from '~/lib/models/interfaces'
81
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
82
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
83
-
84
- const invalid = defineModel<boolean>('invalid', { required: true })
85
- const selectedVideoCard = defineModel<string>('selectedVideoCard', {
86
- required: true,
87
- })
88
- const numberDisplays = defineModel<string>('numberDisplays', { required: true })
89
- // const totalVideoMemory = defineModel<number>('totalVideoMemory', {
90
- // required: true,
91
- // })
92
- const videoCardModel = defineModel<string>('videoCardModel', { required: true })
93
-
94
- const props = defineProps<{
95
- isEdit: boolean
96
- errorValidationFields: UI_I_ErrorValidationField[]
97
- videoCardModelName: string
98
- errorText: string
99
- videoCardOptions: UI_I_OptionItem[]
100
- isDisabled: boolean
101
- state?: string | number
102
- }>()
103
- const emits = defineEmits<{
104
- (event: 'remove-error'): void
105
- (event: 'remove-error-by-title', value: string): void
106
- }>()
107
-
108
- const localization = computed<UI_I_Localization>(() => useLocal())
109
- </script>
110
-
111
- <style scoped lang="scss">
112
- #network-connect {
113
- margin-right: 4px;
114
- }
115
- </style>
1
+ <template>
2
+ <div class="hardware-video-card">
3
+ <atoms-stack-block :has-children="true" test-id="video-card-stack-block">
4
+ <template #stackBlockKey>
5
+ <div
6
+ id="vm-wizard-toggle-block-video-card"
7
+ data-id="vm-wizard-toggle-block-video-card"
8
+ class="flex-align-center"
9
+ >
10
+ <span
11
+ >{{ localization.common.videoCard }}:
12
+ {{ props.videoCardModelName }}</span
13
+ >
14
+ <atoms-the-icon
15
+ v-show="invalid"
16
+ width="24px"
17
+ height="24px"
18
+ class="is-error tooltip-trigger"
19
+ name="info"
20
+ />
21
+ </div>
22
+ </template>
23
+ <template #stackBlockContent>
24
+ <atoms-tooltip-error
25
+ :has-error="!!props.errorText"
26
+ selector=".vm-wizard-video-card"
27
+ @remove="emits('remove-error')"
28
+ >
29
+ <template #elem>
30
+ <div class="select">
31
+ <select
32
+ id="vm-wizard-video-card"
33
+ v-model="selectedVideoCard"
34
+ data-id="vm-wizard-video-card-select"
35
+ class="vm-wizard-video-card input-text-color"
36
+ :disabled="props.isEdit && props.state !== 1"
37
+ @click.stop
38
+ >
39
+ <option
40
+ v-for="(item, key) in props.videoCardOptions"
41
+ :key="key"
42
+ :value="item.value"
43
+ >
44
+ {{ item.text }}
45
+ </option>
46
+ </select>
47
+ </div>
48
+ </template>
49
+ <template #content>{{ props.errorText }}</template>
50
+ </atoms-tooltip-error>
51
+ </template>
52
+ <template #stackChildren>
53
+ <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-number-displays
54
+ v-model:number-displays="numberDisplays"
55
+ :disabled="props.isDisabled"
56
+ :error-validation-fields="props.errorValidationFields"
57
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
58
+ />
59
+ <!-- <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-total-video-memory-->
60
+ <!-- v-model:total-video-memory="totalVideoMemory"-->
61
+ <!-- :disabled="props.isDisabled"-->
62
+ <!-- :is-edit="props.isEdit"-->
63
+ <!-- :error-validation-fields="props.errorValidationFields"-->
64
+ <!-- @invalid="invalid = $event"-->
65
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
66
+ <!-- />-->
67
+ <!-- <templates-home-vm-actions-add-customize-hardware-virtual-hardware-video-card-graphics-->
68
+ <!-- v-models:graphics="graphics"-->
69
+ <!-- />-->
70
+ <common-vm-actions-common-customize-hardware-virtual-hardware-video-card-model
71
+ v-model:video-card-model="videoCardModel"
72
+ :disabled="props.isDisabled"
73
+ />
74
+ </template>
75
+ </atoms-stack-block>
76
+ </div>
77
+ </template>
78
+
79
+ <script setup lang="ts">
80
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
81
+ import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
82
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
83
+
84
+ const invalid = defineModel<boolean>('invalid', { required: true })
85
+ const selectedVideoCard = defineModel<string>('selectedVideoCard', {
86
+ required: true,
87
+ })
88
+ const numberDisplays = defineModel<string>('numberDisplays', { required: true })
89
+ // const totalVideoMemory = defineModel<number>('totalVideoMemory', {
90
+ // required: true,
91
+ // })
92
+ const videoCardModel = defineModel<string>('videoCardModel', { required: true })
93
+
94
+ const props = defineProps<{
95
+ isEdit: boolean
96
+ errorValidationFields: UI_I_ErrorValidationField[]
97
+ videoCardModelName: string
98
+ errorText: string
99
+ videoCardOptions: UI_I_OptionItem[]
100
+ isDisabled: boolean
101
+ state?: string | number
102
+ }>()
103
+ const emits = defineEmits<{
104
+ (event: 'remove-error'): void
105
+ (event: 'remove-error-by-title', value: string): void
106
+ }>()
107
+
108
+ const localization = computed<UI_I_Localization>(() => useLocal())
109
+ </script>
110
+
111
+ <style scoped lang="scss">
112
+ #network-connect {
113
+ margin-right: 4px;
114
+ }
115
+ </style>
@@ -1,54 +1,54 @@
1
- <template>
2
- <ui-stack-block :has-children="false">
3
- <template #stackBlockKey>
4
- {{ localization.common.totalVideoMemory }}
5
- </template>
6
- <template #stackBlockContent>
7
- <div class="total-video-memory-content flex-align-center">
8
- <div v-show="props.disabled">
9
- {{ localization.common.automatic }}
10
- </div>
11
- <div v-show="!props.disabled">
12
- <ui-input-with-tooltip
13
- id="vm-wizard-video-card-memory-field"
14
- v-model="totalVideoMemory"
15
- test-id="vm-wizard-video-card-memory-input"
16
- type="text"
17
- size="sm"
18
- :error-text="props.errorText"
19
- />
20
- </div>
21
- <span class="unit-text">{{ localization.common.mb }}</span>
22
- </div>
23
- </template>
24
- </ui-stack-block>
25
- </template>
26
-
27
- <script setup lang="ts">
28
- import type { UI_I_Localization } from '~/lib/models/interfaces'
29
-
30
- const totalVideoMemory = defineModel<number>('totalVideoMemory', {
31
- required: true,
32
- })
33
-
34
- const props = defineProps<{
35
- disabled: boolean
36
- errorText: string
37
- totalVideoMemoryLocalErrorText: string
38
- }>()
39
- // const emits = defineEmits<{
40
- // (event: 'remove-error'): void
41
- // }>()
42
-
43
- const localization = computed<UI_I_Localization>(() => useLocal())
44
- </script>
45
-
46
- <style scoped lang="scss">
47
- .unit-text {
48
- margin-left: 10px;
49
- }
50
-
51
- :deep(.ui-main.ui-main-sm .ui-main-input) {
52
- height: 26px;
53
- }
54
- </style>
1
+ <template>
2
+ <ui-stack-block :has-children="false">
3
+ <template #stackBlockKey>
4
+ {{ localization.common.totalVideoMemory }}
5
+ </template>
6
+ <template #stackBlockContent>
7
+ <div class="total-video-memory-content flex-align-center">
8
+ <div v-show="props.disabled">
9
+ {{ localization.common.automatic }}
10
+ </div>
11
+ <div v-show="!props.disabled">
12
+ <ui-input-with-tooltip
13
+ id="vm-wizard-video-card-memory-field"
14
+ v-model="totalVideoMemory"
15
+ test-id="vm-wizard-video-card-memory-input"
16
+ type="text"
17
+ size="sm"
18
+ :error-text="props.errorText"
19
+ />
20
+ </div>
21
+ <span class="unit-text">{{ localization.common.mb }}</span>
22
+ </div>
23
+ </template>
24
+ </ui-stack-block>
25
+ </template>
26
+
27
+ <script setup lang="ts">
28
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
29
+
30
+ const totalVideoMemory = defineModel<number>('totalVideoMemory', {
31
+ required: true,
32
+ })
33
+
34
+ const props = defineProps<{
35
+ disabled: boolean
36
+ errorText: string
37
+ totalVideoMemoryLocalErrorText: string
38
+ }>()
39
+ // const emits = defineEmits<{
40
+ // (event: 'remove-error'): void
41
+ // }>()
42
+
43
+ const localization = computed<UI_I_Localization>(() => useLocal())
44
+ </script>
45
+
46
+ <style scoped lang="scss">
47
+ .unit-text {
48
+ margin-left: 10px;
49
+ }
50
+
51
+ :deep(.ui-main.ui-main-sm .ui-main-input) {
52
+ height: 26px;
53
+ }
54
+ </style>