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
@@ -44,7 +44,7 @@
44
44
 
45
45
  <ui-stack-block :has-children="false">
46
46
  <template #stackBlockKey>
47
- {{ localization.common.machineType }}
47
+ <span class="mt-2">{{ localization.common.machineType }}</span>
48
48
  </template>
49
49
  <template #stackBlockContent>
50
50
  <ui-select
@@ -63,7 +63,7 @@
63
63
 
64
64
  <ui-stack-block :has-children="false">
65
65
  <template #stackBlockKey>
66
- {{ localization.common.guestOsFamily }}
66
+ <span class="mt-2">{{ localization.common.guestOsFamily }}</span>
67
67
  </template>
68
68
  <template #stackBlockContent>
69
69
  <ui-select
@@ -83,7 +83,7 @@
83
83
 
84
84
  <ui-stack-block :has-children="false">
85
85
  <template #stackBlockKey>
86
- {{ localization.common.guestOsVersion }}
86
+ <span class="mt-2">{{ localization.common.guestOsVersion }}</span>
87
87
  </template>
88
88
  <template #stackBlockContent>
89
89
  <ui-select
@@ -109,11 +109,16 @@ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
109
109
 
110
110
  const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
111
111
  const vmName = defineModel<string>('vmName', { required: true })
112
- const guestMachineType = defineModel<string>('guestMachineType', {
112
+ const guestMachineType = defineModel<UI_I_OptionItem | null>(
113
+ 'guestMachineType',
114
+ {
115
+ required: true,
116
+ }
117
+ )
118
+ const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
113
119
  required: true,
114
120
  })
115
- const guestOsFamily = defineModel<string>('guestOsFamily', { required: true })
116
- const guestOsVersion = defineModel<string>('guestOsVersion', {
121
+ const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
117
122
  required: true,
118
123
  })
119
124
 
@@ -1,143 +1,154 @@
1
- <template>
2
- <div class="general-options">
3
- <atoms-stack-block
4
- :has-children="true"
5
- test-id="general-options-stack-block"
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">
19
- {{ localization.common.vmName }}: {{ vmName }}
20
- </div>
21
- </template>
22
- <template #stackChildren>
23
- <atoms-stack-block :has-children="false">
24
- <template #stackBlockKey>
25
- {{ localization.common.vmName }}
26
- </template>
27
- <template #stackBlockContent>
28
- <span>{{ vmName }}</span>
29
- <!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
30
- <!-- <input-->
31
- <!-- v-else-->
32
- <!-- id="general-option-vm-name"-->
33
- <!-- v-models="vmName"-->
34
- <!-- type="text"-->
35
- <!-- />-->
36
- </template>
37
- </atoms-stack-block>
38
-
39
- <atoms-stack-block :has-children="false">
40
- <template #stackBlockKey>
41
- {{ localization.common.machineType }}
42
- </template>
43
- <template #stackBlockContent>
44
- <select
45
- v-if="guestMachineType"
46
- id="guest-machine-type-select"
47
- v-model="guestMachineType"
48
- :disabled="props.isDisabled"
49
- data-id="guest-machine-type-select"
50
- >
51
- <option
52
- v-for="item in props.machineTypeOptions"
53
- :key="item.value"
54
- :value="item"
55
- >
56
- {{ item.text }}
57
- </option>
58
- </select>
59
- </template>
60
- </atoms-stack-block>
61
-
62
- <atoms-stack-block :has-children="false">
63
- <template #stackBlockKey>
64
- {{ localization.common.guestOsFamily }}
65
- </template>
66
- <template #stackBlockContent>
67
- <select
68
- v-if="guestOsFamily"
69
- id="guest-os-family-select"
70
- v-model="guestOsFamily"
71
- :disabled="props.isDisabled"
72
- data-id="guest-os-family-select"
73
- @change="emits('change-os')"
74
- >
75
- <option
76
- v-for="item in props.osOptions"
77
- :key="item.value"
78
- :value="item"
79
- >
80
- {{ item.text }}
81
- </option>
82
- </select>
83
- </template>
84
- </atoms-stack-block>
85
-
86
- <atoms-stack-block :has-children="false">
87
- <template #stackBlockKey>
88
- {{ localization.common.guestOsVersion }}
89
- </template>
90
- <template #stackBlockContent>
91
- <select
92
- v-if="guestOsVersion"
93
- id="guest-os-version-select"
94
- v-model="guestOsVersion"
95
- :disabled="props.isDisabled"
96
- data-id="guest-os-version-select"
97
- >
98
- <option
99
- v-for="item in props.versionsOptions"
100
- :key="item.value"
101
- :value="item"
102
- >
103
- {{ item.text }}
104
- </option>
105
- </select>
106
- </template>
107
- </atoms-stack-block>
108
- </template>
109
- </atoms-stack-block>
110
- </div>
111
- </template>
112
-
113
- <script setup lang="ts">
114
- import type { UI_I_Localization } from '~/lib/models/interfaces'
115
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
116
-
117
- const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
118
- const vmName = defineModel<string>('vmName', { required: true })
119
- const guestMachineType = defineModel<string>('guestMachineType', {
120
- required: true,
121
- })
122
- const guestOsFamily = defineModel<string>('guestOsFamily', { required: true })
123
- const guestOsVersion = defineModel<string>('guestOsVersion', {
124
- required: true,
125
- })
126
-
127
- const props = defineProps<{
128
- isEdit: boolean
129
- isClone: boolean
130
- state?: string | number
131
- isDisabled: boolean
132
- machineTypeOptions: UI_I_OptionItem[]
133
- osOptions: UI_I_OptionItem[]
134
- versionsOptions: UI_I_OptionItem[]
135
- }>()
136
- const emits = defineEmits<{
137
- (event: 'change-os'): void
138
- }>()
139
-
140
- const localization = computed<UI_I_Localization>(() => useLocal())
141
- </script>
142
-
143
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <div class="general-options">
3
+ <atoms-stack-block
4
+ :has-children="true"
5
+ test-id="general-options-stack-block"
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">
19
+ {{ localization.common.vmName }}: {{ vmName }}
20
+ </div>
21
+ </template>
22
+ <template #stackChildren>
23
+ <atoms-stack-block :has-children="false">
24
+ <template #stackBlockKey>
25
+ {{ localization.common.vmName }}
26
+ </template>
27
+ <template #stackBlockContent>
28
+ <span>{{ vmName }}</span>
29
+ <!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
30
+ <!-- <input-->
31
+ <!-- v-else-->
32
+ <!-- id="general-option-vm-name"-->
33
+ <!-- v-models="vmName"-->
34
+ <!-- type="text"-->
35
+ <!-- />-->
36
+ </template>
37
+ </atoms-stack-block>
38
+
39
+ <atoms-stack-block :has-children="false">
40
+ <template #stackBlockKey>
41
+ {{ localization.common.machineType }}
42
+ </template>
43
+ <template #stackBlockContent>
44
+ <select
45
+ v-if="guestMachineType"
46
+ id="guest-machine-type-select"
47
+ v-model="guestMachineType"
48
+ :disabled="props.isDisabled"
49
+ :data-value="guestMachineType?.value"
50
+ data-id="guest-machine-type-select"
51
+ >
52
+ <option
53
+ v-for="item in props.machineTypeOptions"
54
+ :key="item.value"
55
+ :value="item"
56
+ :data-value="item.value"
57
+ >
58
+ {{ item.text }}
59
+ </option>
60
+ </select>
61
+ </template>
62
+ </atoms-stack-block>
63
+
64
+ <atoms-stack-block :has-children="false">
65
+ <template #stackBlockKey>
66
+ {{ localization.common.guestOsFamily }}
67
+ </template>
68
+ <template #stackBlockContent>
69
+ <select
70
+ v-if="guestOsFamily"
71
+ id="guest-os-family-select"
72
+ v-model="guestOsFamily"
73
+ :disabled="props.isDisabled"
74
+ :data-value="guestOsFamily?.value"
75
+ data-id="guest-os-family-select"
76
+ @change="emits('change-os')"
77
+ >
78
+ <option
79
+ v-for="item in props.osOptions"
80
+ :key="item.value"
81
+ :value="item"
82
+ :data-value="item.value"
83
+ >
84
+ {{ item.text }}
85
+ </option>
86
+ </select>
87
+ </template>
88
+ </atoms-stack-block>
89
+
90
+ <atoms-stack-block :has-children="false">
91
+ <template #stackBlockKey>
92
+ {{ localization.common.guestOsVersion }}
93
+ </template>
94
+ <template #stackBlockContent>
95
+ <select
96
+ v-if="guestOsVersion"
97
+ id="guest-os-version-select"
98
+ v-model="guestOsVersion"
99
+ :disabled="props.isDisabled"
100
+ :data-value="guestOsVersion?.value"
101
+ data-id="guest-os-version-select"
102
+ >
103
+ <option
104
+ v-for="item in props.versionsOptions"
105
+ :key="item.value"
106
+ :value="item"
107
+ :data-value="item.value"
108
+ >
109
+ {{ item.text }}
110
+ </option>
111
+ </select>
112
+ </template>
113
+ </atoms-stack-block>
114
+ </template>
115
+ </atoms-stack-block>
116
+ </div>
117
+ </template>
118
+
119
+ <script setup lang="ts">
120
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
121
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
122
+
123
+ const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
124
+ const vmName = defineModel<string>('vmName', { required: true })
125
+ const guestMachineType = defineModel<UI_I_OptionItem | null>(
126
+ 'guestMachineType',
127
+ {
128
+ required: true,
129
+ }
130
+ )
131
+ const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
132
+ required: true,
133
+ })
134
+ const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
135
+ required: true,
136
+ })
137
+
138
+ const props = defineProps<{
139
+ isEdit: boolean
140
+ isClone: boolean
141
+ state?: string | number
142
+ isDisabled: boolean
143
+ machineTypeOptions: UI_I_OptionItem[]
144
+ osOptions: UI_I_OptionItem[]
145
+ versionsOptions: UI_I_OptionItem[]
146
+ }>()
147
+ const emits = defineEmits<{
148
+ (event: 'change-os'): void
149
+ }>()
150
+
151
+ const localization = computed<UI_I_Localization>(() => useLocal())
152
+ </script>
153
+
154
+ <style scoped lang="scss"></style>
@@ -1,31 +1,31 @@
1
- <template>
2
- <ui-stack-block :has-children="false">
3
- <template #stackBlockKey>
4
- {{ localization.common.copyPaste }}
5
- </template>
6
- <template #stackBlockContent>
7
- <ui-checkbox
8
- id="copy-paste"
9
- v-model="copyPaste"
10
- test-id="copy-paste-checkbox"
11
- :disabled="props.disabled"
12
- :label-text="localization.common.enable"
13
- size="md"
14
- />
15
- </template>
16
- </ui-stack-block>
17
- </template>
18
-
19
- <script setup lang="ts">
20
- import type { UI_I_Localization } from '~/lib/models/interfaces'
21
-
22
- const copyPaste = defineModel<boolean>('copyPaste')
23
-
24
- const props = defineProps<{
25
- disabled: boolean
26
- }>()
27
-
28
- const localization = computed<UI_I_Localization>(() => useLocal())
29
- </script>
30
-
31
- <style scoped></style>
1
+ <template>
2
+ <ui-stack-block :has-children="false">
3
+ <template #stackBlockKey>
4
+ <span class="mt-2">{{ localization.common.copyPaste }}</span>
5
+ </template>
6
+ <template #stackBlockContent>
7
+ <ui-checkbox
8
+ id="copy-paste"
9
+ v-model="copyPaste"
10
+ test-id="copy-paste-checkbox"
11
+ :disabled="props.disabled"
12
+ :label-text="localization.common.enable"
13
+ size="md"
14
+ />
15
+ </template>
16
+ </ui-stack-block>
17
+ </template>
18
+
19
+ <script setup lang="ts">
20
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
21
+
22
+ const copyPaste = defineModel<boolean>('copyPaste')
23
+
24
+ const props = defineProps<{
25
+ disabled: boolean
26
+ }>()
27
+
28
+ const localization = computed<UI_I_Localization>(() => useLocal())
29
+ </script>
30
+
31
+ <style scoped></style>
@@ -1,31 +1,31 @@
1
- <template>
2
- <ui-stack-block :has-children="false">
3
- <template #stackBlockKey>
4
- {{ localization.common.fileTransfer }}
5
- </template>
6
- <template #stackBlockContent>
7
- <ui-checkbox
8
- id="file-transfer"
9
- v-model="fileTransfer"
10
- test-id="file-transfer-checkbox"
11
- :disabled="props.disabled"
12
- :label-text="localization.common.enable"
13
- size="md"
14
- />
15
- </template>
16
- </ui-stack-block>
17
- </template>
18
-
19
- <script setup lang="ts">
20
- import type { UI_I_Localization } from '~/lib/models/interfaces'
21
-
22
- const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
23
-
24
- const props = defineProps<{
25
- disabled: boolean
26
- }>()
27
-
28
- const localization = computed<UI_I_Localization>(() => useLocal())
29
- </script>
30
-
31
- <style scoped></style>
1
+ <template>
2
+ <ui-stack-block :has-children="false">
3
+ <template #stackBlockKey>
4
+ <span class="mt-2">{{ localization.common.fileTransfer }}</span>
5
+ </template>
6
+ <template #stackBlockContent>
7
+ <ui-checkbox
8
+ id="file-transfer"
9
+ v-model="fileTransfer"
10
+ test-id="file-transfer-checkbox"
11
+ :disabled="props.disabled"
12
+ :label-text="localization.common.enable"
13
+ size="md"
14
+ />
15
+ </template>
16
+ </ui-stack-block>
17
+ </template>
18
+
19
+ <script setup lang="ts">
20
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
21
+
22
+ const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
23
+
24
+ const props = defineProps<{
25
+ disabled: boolean
26
+ }>()
27
+
28
+ const localization = computed<UI_I_Localization>(() => useLocal())
29
+ </script>
30
+
31
+ <style scoped></style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.folderSharing }}
4
+ <span class="mt-2">{{ localization.common.folderSharing }}</span>
5
5
  </template>
6
6
  <template #stackBlockContent>
7
7
  <ui-checkbox
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ui-stack-block :has-children="false">
3
3
  <template #stackBlockKey>
4
- {{ localization.common.keymap }}
4
+ <span class="mt-2">{{ localization.common.keymap }}</span>
5
5
  </template>
6
6
  <template #stackBlockContent>
7
7
  <ui-select
@@ -1,43 +1,44 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.keymap }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="select">
9
- <select
10
- id="keymap-select"
11
- v-model="keymap"
12
- :disabled="props.disabled"
13
- data-id="keymap-select"
14
- >
15
- <option
16
- v-for="(item, key) in props.keymapOptions"
17
- :key="key"
18
- :value="item.value"
19
- >
20
- {{ item.text }}
21
- </option>
22
- </select>
23
- </div>
24
- </template>
25
- </atoms-stack-block>
26
- </div>
27
- </template>
28
-
29
- <script setup lang="ts">
30
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
31
- import type { UI_I_Localization } from '~/lib/models/interfaces'
32
-
33
- const keymap = defineModel<string>('keymap', { required: true })
34
-
35
- const props = defineProps<{
36
- disabled: boolean
37
- keymapOptions: UI_I_OptionItem[]
38
- }>()
39
-
40
- const localization = computed<UI_I_Localization>(() => useLocal())
41
- </script>
42
-
43
- <style scoped></style>
1
+ <template>
2
+ <div class="">
3
+ <atoms-stack-block :has-children="false">
4
+ <template #stackBlockKey>
5
+ {{ localization.common.keymap }}
6
+ </template>
7
+ <template #stackBlockContent>
8
+ <div class="select">
9
+ <select
10
+ id="keymap-select"
11
+ v-model="keymap"
12
+ :disabled="props.disabled"
13
+ :data-value="keymap"
14
+ data-id="keymap-select"
15
+ >
16
+ <option
17
+ v-for="(item, key) in props.keymapOptions"
18
+ :key="key"
19
+ :value="item.value"
20
+ >
21
+ {{ item.text }}
22
+ </option>
23
+ </select>
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
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
33
+
34
+ const keymap = defineModel<string>('keymap', { required: true })
35
+
36
+ const props = defineProps<{
37
+ disabled: boolean
38
+ keymapOptions: UI_I_OptionItem[]
39
+ }>()
40
+
41
+ const localization = computed<UI_I_Localization>(() => useLocal())
42
+ </script>
43
+
44
+ <style scoped></style>