bfg-common 1.5.293 → 1.5.295

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 (27) hide show
  1. package/assets/localization/local_en.json +1 -1
  2. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +3 -3
  3. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +27 -24
  4. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +3 -3
  5. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +1 -1
  6. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +6 -0
  7. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +1 -1
  8. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +45 -40
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysNew.vue +1 -1
  10. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +152 -147
  11. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +128 -122
  12. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +111 -97
  13. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/DelayNew.vue +1 -1
  14. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +1 -1
  15. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +1 -1
  16. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +83 -77
  17. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +11 -6
  18. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +154 -143
  19. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +31 -31
  20. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +31 -31
  21. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +1 -1
  22. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +1 -1
  23. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +44 -43
  24. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +128 -128
  25. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +1 -1
  26. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +1 -1
  27. package/package.json +2 -2
@@ -3110,7 +3110,7 @@
3110
3110
  "vmWizard": {
3111
3111
  "devices": "Devices ({0})",
3112
3112
  "noAvailableNetworks": "No available networks",
3113
- "cpuMustBe": "Cpu must be between {0} and {1}.",
3113
+ "cpuMustBe": "CPU must be between {0} and {1}.",
3114
3114
  "browse": "Browse...",
3115
3115
  "eject": "Eject",
3116
3116
  "deployFromTemplate": "Deploy from template",
@@ -202,9 +202,9 @@ const onChangeCdDvdDrive = (data: string): void => {
202
202
  }
203
203
  }
204
204
  .stack-block.removed {
205
- :deep(.stack-view-key) {
206
- flex: unset;
207
- }
205
+ //:deep(.stack-view-key) {
206
+ // flex: unset;
207
+ //}
208
208
  :deep(.roll-back-icon) {
209
209
  min-width: 20px;
210
210
  }
@@ -22,51 +22,52 @@
22
22
  v-model="passthroughHostCpu"
23
23
  :disabled="props.disabled"
24
24
  :label-text="localization.common.passthroughHostCpu"
25
+ size="md"
25
26
  test-id="passthrough-host-cpu"
26
27
  @change="emits('change-passthrough-host-cpu', $event)"
27
28
  />
28
29
 
29
30
  <common-tooltip-help
30
- class="ml-2"
31
- test-id="passthrough-help"
32
- help-id="passthrough-help-icon"
33
- :dropdown-left="true"
34
- :is-disabled="true"
35
- dropdown-width="480px"
31
+ class="ml-2"
32
+ test-id="passthrough-help"
33
+ help-id="passthrough-help-icon"
34
+ :dropdown-left="true"
35
+ :is-disabled="true"
36
+ dropdown-width="480px"
36
37
  >
37
38
  <p class="help-text">
38
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
39
- A cum eius expedita, fuga mollitia perferendis quod soluta
40
- vel? Dolor, illo, nam? A consequatur, consequuntur eos
41
- impedit iusto labore sunt tempora!
39
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. A cum
40
+ eius expedita, fuga mollitia perferendis quod soluta vel? Dolor,
41
+ illo, nam? A consequatur, consequuntur eos impedit iusto labore
42
+ sunt tempora!
42
43
  </p>
43
44
  </common-tooltip-help>
44
-
45
45
  </div>
46
46
  <div class="host-model-cpu-wrap flex-align-center">
47
47
  <ui-checkbox
48
48
  v-model="hostModelCpu"
49
49
  :disabled="props.disabled"
50
50
  :label-text="localization.common.hostModelCpu"
51
+ size="md"
51
52
  test-id="host-model-cpu"
52
53
  @change="emits('change-host-model-cpu', $event)"
53
54
  />
54
55
 
55
56
  <common-tooltip-help
56
- test-id="host-model-help"
57
- help-id="host-model-help-icon"
58
- :dropdown-left="true"
59
- :is-disabled="true"
60
- dropdown-width="480px"
57
+ class="ml-2"
58
+ test-id="host-model-help"
59
+ help-id="host-model-help-icon"
60
+ :dropdown-left="true"
61
+ :is-disabled="true"
62
+ dropdown-width="480px"
61
63
  >
62
64
  <p class="help-text">
63
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
64
- A cum eius expedita, fuga mollitia perferendis quod soluta
65
- vel? Dolor, illo, nam? A consequatur, consequuntur eos
66
- impedit iusto labore sunt tempora!
65
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. A cum
66
+ eius expedita, fuga mollitia perferendis quod soluta vel? Dolor,
67
+ illo, nam? A consequatur, consequuntur eos impedit iusto labore
68
+ sunt tempora!
67
69
  </p>
68
70
  </common-tooltip-help>
69
-
70
71
  </div>
71
72
  </div>
72
73
  </template>
@@ -104,7 +105,6 @@ const onChangeCpuModel = (data: UI_T_SelectedValue): void => {
104
105
  }
105
106
  </script>
106
107
 
107
-
108
108
  <style scoped lang="scss">
109
109
  .limit-title {
110
110
  margin-right: 12px;
@@ -112,9 +112,13 @@ const onChangeCpuModel = (data: UI_T_SelectedValue): void => {
112
112
  .cpu-model-content {
113
113
  display: flex;
114
114
  flex-direction: column;
115
- width: 224px;
115
+ //width: 224px;
116
116
  gap: 12px;
117
117
 
118
+ .tooltip-main {
119
+ width: 224px;
120
+ }
121
+
118
122
  :deep(.ui-main-select-toggle) {
119
123
  width: 100%;
120
124
  }
@@ -123,5 +127,4 @@ const onChangeCpuModel = (data: UI_T_SelectedValue): void => {
123
127
  min-height: unset !important;
124
128
  }
125
129
  }
126
-
127
130
  </style>
@@ -295,9 +295,9 @@ const localization = computed<UI_I_Localization>(() => useLocal())
295
295
  }
296
296
  }
297
297
  .stack-block.removed {
298
- :deep(.stack-view-key) {
299
- flex: unset;
300
- }
298
+ //:deep(.stack-view-key) {
299
+ // flex: unset;
300
+ //}
301
301
  :deep(.roll-back-icon) {
302
302
  min-width: 20px;
303
303
  }
@@ -36,6 +36,6 @@ const props = defineProps<{
36
36
  .file-path {
37
37
  font-size: 13px;
38
38
  color: var(--vm-wizard-file-path-color);
39
- line-height: 32px;
39
+ line-height: 18px;
40
40
  }
41
41
  </style>
@@ -32,10 +32,16 @@ const props = defineProps<{
32
32
  <style scoped>
33
33
  .limit-title {
34
34
  margin-right: 12px;
35
+ height: 32px;
36
+ display: flex;
37
+ align-items: center;
35
38
  }
36
39
  .maximum-size {
37
40
  font-size: 13px;
38
41
  line-height: 15.73px;
39
42
  color: var(--vm-wizard-maximum-size-color);
43
+ height: 32px;
44
+ display: flex;
45
+ align-items: center;
40
46
  }
41
47
  </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.macAddress }}
4
+ <span class="mt-2">{{ localization.common.macAddress }}</span>
5
5
  </template>
6
6
  <template #stackBlockContent>
7
7
  <div class="mac-address-content">
@@ -1,40 +1,45 @@
1
- <template>
2
- <ui-stack-block :has-children="false">
3
- <template #stackBlockKey>
4
- {{ localization.common.inputDevices }}
5
- </template>
6
- <template #stackBlockContent>
7
- <div class="input-devices-content">
8
- <p>{{ localization.common.keyboard }}</p>
9
- <p class="dot-divider"></p>
10
- <p>{{ localization.common.pointingDevice }}</p>
11
- </div>
12
- </template>
13
- </ui-stack-block>
14
- </template>
15
-
16
- <script setup lang="ts">
17
- import type { UI_I_Localization } from '~/lib/models/interfaces'
18
-
19
- const localization = computed<UI_I_Localization>(() => useLocal())
20
- </script>
21
-
22
- <style>
23
- :root {
24
- --input-devices-content-color: #182531;
25
- --input-devices-dot-color: #d3d6da;
26
- }
27
- </style>
28
- <style scoped lang="scss">
29
- .input-devices-content {
30
- display: flex;
31
- align-items: center;
32
- gap: 8px;
33
- color: var(--input-devices-content-color);
34
-
35
- .dot-divider::before {
36
- content: '•';
37
- color: var(--input-devices-dot-color);
38
- }
39
- }
40
- </style>
1
+ <template>
2
+ <ui-stack-block :has-children="false">
3
+ <template #stackBlockKey>
4
+ <span class="mt-2">{{ localization.common.inputDevices }}</span>
5
+ </template>
6
+ <template #stackBlockContent>
7
+ <div class="input-devices-content">
8
+ <p>{{ localization.common.keyboard }}</p>
9
+ <p class="dot-divider"></p>
10
+ <p>{{ localization.common.pointingDevice }}</p>
11
+ </div>
12
+ </template>
13
+ </ui-stack-block>
14
+ </template>
15
+
16
+ <script setup lang="ts">
17
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
18
+
19
+ const localization = computed<UI_I_Localization>(() => useLocal())
20
+ </script>
21
+
22
+ <style>
23
+ :root {
24
+ --input-devices-content-color: #182531;
25
+ --input-devices-dot-color: #d3d6da;
26
+ }
27
+ :root.dark-theme {
28
+ --input-devices-content-color: #e9eaec;
29
+ --input-devices-dot-color: #4d5d69;
30
+ }
31
+ </style>
32
+ <style scoped lang="scss">
33
+ .input-devices-content {
34
+ height: 32px;
35
+ display: flex;
36
+ align-items: center;
37
+ gap: 8px;
38
+ color: var(--input-devices-content-color);
39
+
40
+ .dot-divider::before {
41
+ content: '•';
42
+ color: var(--input-devices-dot-color);
43
+ }
44
+ }
45
+ </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.numberDisplays }}
4
+ <span class="mt-2">{{ localization.common.numberDisplays }}</span>
5
5
  </template>
6
6
  <template #stackBlockContent>
7
7
  <ui-select
@@ -1,147 +1,152 @@
1
- <template>
2
- <common-vm-actions-common-customize-hardware-vmoptions-new
3
- v-if="isNewView"
4
- v-model:vm-name="vmName"
5
- v-model:guest-machine-type="guestMachineType"
6
- v-model:guest-os-family="guestOsFamily"
7
- v-model:guest-os-version="guestOsVersion"
8
- v-model:remote-console-options-invalid="remoteConsoleOptionsInvalid"
9
- :hard-disks="props.hardDisks"
10
- :cd-dvd-drives="props.cdDvdDrives"
11
- :networks="props.networks"
12
- :is-edit="props.isEdit"
13
- :is-clone="props.isClone"
14
- :error-validation-fields="props.errorValidationFields"
15
- :options="props.options"
16
- :state="props.state"
17
- :compatibility-info="props.compatibilityInfo"
18
- @change-boot-order="emits('change-boot-order', $event)"
19
- @send-data-remote-console-options="sendDataRemoteConsoleOptionsMethod"
20
- @send-data-tools="sendDataToolsMethod"
21
- @send-data-boot-options="sendDataBootOptionsMethod"
22
- @remove-error-by-title="emits('remove-error-by-title', $event)"
23
- />
24
- <common-vm-actions-common-customize-hardware-vmoptions-old
25
- v-else
26
- v-model:vm-name="vmName"
27
- v-model:guest-machine-type="guestMachineType"
28
- v-model:guest-os-family="guestOsFamily"
29
- v-model:guest-os-version="guestOsVersion"
30
- v-model:remote-console-options-invalid="remoteConsoleOptionsInvalid"
31
- :hard-disks="props.hardDisks"
32
- :cd-dvd-drives="props.cdDvdDrives"
33
- :networks="props.networks"
34
- :is-edit="props.isEdit"
35
- :is-clone="props.isClone"
36
- :error-validation-fields="props.errorValidationFields"
37
- :options="props.options"
38
- :state="props.state"
39
- @change-boot-order="emits('change-boot-order', $event)"
40
- @send-data-remote-console-options="sendDataRemoteConsoleOptionsMethod"
41
- @send-data-tools="sendDataToolsMethod"
42
- @send-data-boot-options="sendDataBootOptionsMethod"
43
- @remove-error-by-title="emits('remove-error-by-title', $event)"
44
- />
45
- </template>
46
-
47
- <script setup lang="ts">
48
- import type {
49
- UI_I_SendDataRemoteConsoleOptions,
50
- UI_I_SendDataTools,
51
- UI_I_SendDataBootOptions,
52
- UI_I_SendDataVmoptions,
53
- } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
54
- import type {
55
- UI_I_SendDataNewCdDvdDrive,
56
- UI_I_SendDataNewHardDisk,
57
- UI_I_SendDataNewNetwork,
58
- } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
59
- import type { UI_I_Localization } from '~/lib/models/interfaces'
60
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
61
-
62
- const vmName = defineModel<string>('vmName', { required: true })
63
- const guestMachineType = defineModel<string>('guestMachineType', {
64
- required: true,
65
- })
66
- const guestOsFamily = defineModel<string>('guestOsFamily', { required: true })
67
- const guestOsVersion = defineModel<string>('guestOsVersion', {
68
- required: true,
69
- })
70
- const remoteConsoleOptionsInvalid = defineModel<boolean>(
71
- 'remoteConsoleOptionsInvalid',
72
- { required: true }
73
- )
74
-
75
- const props = defineProps<{
76
- hardDisks: UI_I_SendDataNewHardDisk[] | null
77
- cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
78
- networks: UI_I_SendDataNewNetwork[] | null
79
- isEdit: boolean
80
- isClone: boolean
81
- errorValidationFields: UI_I_ErrorValidationField[]
82
- options?: UI_I_SendDataVmoptions
83
- state?: string | number
84
- compatibilityInfo?: string
85
- }>()
86
- const emits = defineEmits<{
87
- (
88
- event: 'change-boot-order',
89
- value: [
90
- UI_I_SendDataNewHardDisk[],
91
- UI_I_SendDataNewCdDvdDrive[],
92
- UI_I_SendDataNewNetwork[]
93
- ]
94
- ): void
95
- (event: 'send-data', value: UI_I_SendDataVmoptions): void
96
- (event: 'invalid', value: string[]): void
97
- (event: 'remove-error-by-title', value: string): void
98
- }>()
99
-
100
- const { $store }: any = useNuxtApp()
101
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
102
-
103
- const localization = computed<UI_I_Localization>(() => useLocal())
104
-
105
- const sendDataRemoteConsoleOptions =
106
- ref<UI_I_SendDataRemoteConsoleOptions | null>(null)
107
- const sendDataRemoteConsoleOptionsMethod = (
108
- data: UI_I_SendDataRemoteConsoleOptions
109
- ): void => {
110
- sendDataRemoteConsoleOptions.value = data
111
- sendData()
112
- }
113
-
114
- const sendDataTools = ref<UI_I_SendDataTools | null>(null)
115
- const sendDataToolsMethod = (data: UI_I_SendDataTools): void => {
116
- sendDataTools.value = data
117
- sendData()
118
- }
119
-
120
- const sendDataBootOptions = ref<UI_I_SendDataBootOptions | null>(null)
121
- const sendDataBootOptionsMethod = (data: UI_I_SendDataBootOptions): void => {
122
- sendDataBootOptions.value = data
123
- sendData()
124
- }
125
-
126
- const sendData = (): void => {
127
- emits('send-data', {
128
- remote_console: sendDataRemoteConsoleOptions.value,
129
- guest_tools: sendDataTools.value,
130
- boot_options: sendDataBootOptions.value,
131
- })
132
- }
133
-
134
- watch(
135
- remoteConsoleOptionsInvalid,
136
- (newValue) => {
137
- const remoteConsoleOptions = newValue
138
- ? localization.value.common.remoteConsoleOptions
139
- : ''
140
- emits('invalid', [remoteConsoleOptions])
141
- },
142
- { immediate: true }
143
- )
144
- </script>
145
-
146
- <style scoped lang="scss">
147
- </style>
1
+ <template>
2
+ <common-vm-actions-common-customize-hardware-vmoptions-new
3
+ v-if="isNewView"
4
+ v-model:vm-name="vmName"
5
+ v-model:guest-machine-type="guestMachineType"
6
+ v-model:guest-os-family="guestOsFamily"
7
+ v-model:guest-os-version="guestOsVersion"
8
+ v-model:remote-console-options-invalid="remoteConsoleOptionsInvalid"
9
+ :hard-disks="props.hardDisks"
10
+ :cd-dvd-drives="props.cdDvdDrives"
11
+ :networks="props.networks"
12
+ :is-edit="props.isEdit"
13
+ :is-clone="props.isClone"
14
+ :error-validation-fields="props.errorValidationFields"
15
+ :options="props.options"
16
+ :state="props.state"
17
+ :compatibility-info="props.compatibilityInfo"
18
+ @change-boot-order="emits('change-boot-order', $event)"
19
+ @send-data-remote-console-options="sendDataRemoteConsoleOptionsMethod"
20
+ @send-data-tools="sendDataToolsMethod"
21
+ @send-data-boot-options="sendDataBootOptionsMethod"
22
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
23
+ />
24
+ <common-vm-actions-common-customize-hardware-vmoptions-old
25
+ v-else
26
+ v-model:vm-name="vmName"
27
+ v-model:guest-machine-type="guestMachineType"
28
+ v-model:guest-os-family="guestOsFamily"
29
+ v-model:guest-os-version="guestOsVersion"
30
+ v-model:remote-console-options-invalid="remoteConsoleOptionsInvalid"
31
+ :hard-disks="props.hardDisks"
32
+ :cd-dvd-drives="props.cdDvdDrives"
33
+ :networks="props.networks"
34
+ :is-edit="props.isEdit"
35
+ :is-clone="props.isClone"
36
+ :error-validation-fields="props.errorValidationFields"
37
+ :options="props.options"
38
+ :state="props.state"
39
+ @change-boot-order="emits('change-boot-order', $event)"
40
+ @send-data-remote-console-options="sendDataRemoteConsoleOptionsMethod"
41
+ @send-data-tools="sendDataToolsMethod"
42
+ @send-data-boot-options="sendDataBootOptionsMethod"
43
+ @remove-error-by-title="emits('remove-error-by-title', $event)"
44
+ />
45
+ </template>
46
+
47
+ <script setup lang="ts">
48
+ import type {
49
+ UI_I_SendDataRemoteConsoleOptions,
50
+ UI_I_SendDataTools,
51
+ UI_I_SendDataBootOptions,
52
+ UI_I_SendDataVmoptions,
53
+ } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
54
+ import type {
55
+ UI_I_SendDataNewCdDvdDrive,
56
+ UI_I_SendDataNewHardDisk,
57
+ UI_I_SendDataNewNetwork,
58
+ } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
59
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
60
+ import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
61
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
62
+
63
+ const vmName = defineModel<string>('vmName', { required: true })
64
+ const guestMachineType = defineModel<UI_I_OptionItem | null>(
65
+ 'guestMachineType',
66
+ {
67
+ required: true,
68
+ }
69
+ )
70
+ const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
71
+ required: true,
72
+ })
73
+ const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
74
+ required: true,
75
+ })
76
+ const remoteConsoleOptionsInvalid = defineModel<boolean>(
77
+ 'remoteConsoleOptionsInvalid',
78
+ { required: true }
79
+ )
80
+
81
+ const props = defineProps<{
82
+ hardDisks: UI_I_SendDataNewHardDisk[] | null
83
+ cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
84
+ networks: UI_I_SendDataNewNetwork[] | null
85
+ isEdit: boolean
86
+ isClone: boolean
87
+ errorValidationFields: UI_I_ErrorValidationField[]
88
+ options?: UI_I_SendDataVmoptions
89
+ state?: string | number
90
+ compatibilityInfo?: string
91
+ }>()
92
+ const emits = defineEmits<{
93
+ (
94
+ event: 'change-boot-order',
95
+ value: [
96
+ UI_I_SendDataNewHardDisk[],
97
+ UI_I_SendDataNewCdDvdDrive[],
98
+ UI_I_SendDataNewNetwork[]
99
+ ]
100
+ ): void
101
+ (event: 'send-data', value: UI_I_SendDataVmoptions): void
102
+ (event: 'invalid', value: string[]): void
103
+ (event: 'remove-error-by-title', value: string): void
104
+ }>()
105
+
106
+ const { $store }: any = useNuxtApp()
107
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
108
+
109
+ const localization = computed<UI_I_Localization>(() => useLocal())
110
+
111
+ const sendDataRemoteConsoleOptions =
112
+ ref<UI_I_SendDataRemoteConsoleOptions | null>(null)
113
+ const sendDataRemoteConsoleOptionsMethod = (
114
+ data: UI_I_SendDataRemoteConsoleOptions
115
+ ): void => {
116
+ sendDataRemoteConsoleOptions.value = data
117
+ sendData()
118
+ }
119
+
120
+ const sendDataTools = ref<UI_I_SendDataTools | null>(null)
121
+ const sendDataToolsMethod = (data: UI_I_SendDataTools): void => {
122
+ sendDataTools.value = data
123
+ sendData()
124
+ }
125
+
126
+ const sendDataBootOptions = ref<UI_I_SendDataBootOptions | null>(null)
127
+ const sendDataBootOptionsMethod = (data: UI_I_SendDataBootOptions): void => {
128
+ sendDataBootOptions.value = data
129
+ sendData()
130
+ }
131
+
132
+ const sendData = (): void => {
133
+ emits('send-data', {
134
+ remote_console: sendDataRemoteConsoleOptions.value,
135
+ guest_tools: sendDataTools.value,
136
+ boot_options: sendDataBootOptions.value,
137
+ })
138
+ }
139
+
140
+ watch(
141
+ remoteConsoleOptionsInvalid,
142
+ (newValue) => {
143
+ const remoteConsoleOptions = newValue
144
+ ? localization.value.common.remoteConsoleOptions
145
+ : ''
146
+ emits('invalid', [remoteConsoleOptions])
147
+ },
148
+ { immediate: true }
149
+ )
150
+ </script>
151
+
152
+ <style scoped lang="scss"></style>