bfg-common 1.5.325 → 1.5.327

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.
@@ -10,12 +10,13 @@ export const dynamicSteps = {
10
10
  selectComputeResource: 4,
11
11
  selectStorage: 5,
12
12
  selectOptions: 6,
13
- compatibility: 7,
14
- selectGuestOSMachineType: 8,
15
- selectGuestOS: 9,
16
- customizeHardware: 10,
17
- customizeHardwareTemplate: 11,
18
- readyComplete: 12,
13
+ selectOptionsForDeployment: 7,
14
+ compatibility: 8,
15
+ selectGuestOSMachineType: 9,
16
+ selectGuestOS: 10,
17
+ customizeHardware: 11,
18
+ customizeHardwareTemplate: 12,
19
+ readyComplete: 13,
19
20
  }
20
21
 
21
22
  export const stepsFunc = (
@@ -121,6 +122,17 @@ export const stepsFunc = (
121
122
  testId: 'vm-wizard-select-clone-options',
122
123
  fields: {},
123
124
  },
125
+ {
126
+ id: dynamicSteps.selectOptionsForDeployment,
127
+ stepName: '',
128
+ title: localization.common.selectOptionsTargetVm,
129
+ subTitle:
130
+ localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
131
+ status: UI_E_WIZARD_STATUS.INACTIVE,
132
+ isValid: true,
133
+ testId: 'vm-wizard-select-clone-options',
134
+ fields: {},
135
+ },
124
136
  {
125
137
  id: dynamicSteps.compatibility,
126
138
  stepName: '',
@@ -226,7 +238,7 @@ export const stepsSchemeInitial = [
226
238
  dynamicSteps.selectTemplate,
227
239
  dynamicSteps.selectName,
228
240
  dynamicSteps.selectStorage,
229
- dynamicSteps.selectOptions,
241
+ dynamicSteps.selectOptionsForDeployment,
230
242
  dynamicSteps.readyComplete,
231
243
  ],
232
244
  // Deploy from template with Customize the operating system (Procurator)
@@ -235,7 +247,7 @@ export const stepsSchemeInitial = [
235
247
  dynamicSteps.selectTemplate,
236
248
  dynamicSteps.selectName,
237
249
  dynamicSteps.selectStorage,
238
- dynamicSteps.selectOptions,
250
+ dynamicSteps.selectOptionsForDeployment,
239
251
  dynamicSteps.selectGuestOSMachineType,
240
252
  dynamicSteps.readyComplete,
241
253
  ],
@@ -245,7 +257,7 @@ export const stepsSchemeInitial = [
245
257
  dynamicSteps.selectTemplate,
246
258
  dynamicSteps.selectName,
247
259
  dynamicSteps.selectStorage,
248
- dynamicSteps.selectOptions,
260
+ dynamicSteps.selectOptionsForDeployment,
249
261
  dynamicSteps.customizeHardwareTemplate,
250
262
  dynamicSteps.readyComplete,
251
263
  ],
@@ -255,7 +267,7 @@ export const stepsSchemeInitial = [
255
267
  dynamicSteps.selectTemplate,
256
268
  dynamicSteps.selectName,
257
269
  dynamicSteps.selectStorage,
258
- dynamicSteps.selectOptions,
270
+ dynamicSteps.selectOptionsForDeployment,
259
271
  dynamicSteps.selectGuestOSMachineType,
260
272
  dynamicSteps.customizeHardwareTemplate,
261
273
  dynamicSteps.readyComplete,
@@ -1,153 +1,155 @@
1
- import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
2
- import type { UI_I_Localization } from '~/lib/models/interfaces'
3
- import type { UI_I_DropdownTreeItem } from '~/components/atoms/dropdown/tree/lib/models/interfaces'
4
- import type { UI_I_PciDevice } from '~/lib/models/store/vm/interfaces'
5
-
6
- export const dropdownItemsFunc = (
7
- localization: UI_I_Localization,
8
- state: string | number | undefined,
9
- passthroughDevices?: UI_I_PciDevice[],
10
- mediatedDevices?: any[]
11
- ): UI_I_DropdownTreeItem[] => {
12
- const { $text } = useNuxtApp()
13
-
14
- return [
15
- {
16
- text: localization.common.disksDrivesStorage,
17
- children: [
18
- {
19
- text: $text.toCapitalizeEveryWord(localization.common.hardDisk),
20
- value: 1,
21
- testId: 'disks-drives-storage',
22
- },
23
- {
24
- text: $text.toCapitalizeEveryWord(
25
- localization.common.existingHardDisk
26
- ),
27
- value: 2,
28
- testId: 'existing-hard-disk',
29
- },
30
- // { text: 'RDM Disk', value: 2 },
31
- // { text: 'Host USB Device', value: 3 },
32
- // { text: 'NVDIMM', value: 4 },
33
- {
34
- text: localization.common.cdDvdDrive,
35
- value: 5,
36
- testId: 'cd-dvd-drive',
37
- },
38
- ],
39
- },
40
- // {
41
- // text: 'Controllers',
42
- // children: [
43
- // { text: 'NVMe Controller', value: 6 },
44
- // { text: 'SATA Controller', value: 7 },
45
- // { text: 'SCSI Controller', value: 8 },
46
- // { text: 'USB Controller', value: 9 },
47
- // ],
48
- // },
49
- {
50
- text: localization.common.otherDevices,
51
- children: [
52
- {
53
- text: localization.common.pciDevice,
54
- value: 10,
55
- disabled:
56
- state === 2 ||
57
- (!passthroughDevices?.length && !mediatedDevices?.length),
58
- testId: 'pci-device',
59
- },
60
- // { text: 'Watchdog Timer', value: 11 },
61
- // { text: 'Precision Clock', value: 12 },
62
- // { text: 'Serial Port', value: 13 },
63
- ],
64
- },
65
- {
66
- text: localization.common.network,
67
- children: [
68
- {
69
- text: $text.toCapitalizeEveryWord(localization.common.networkAdapter),
70
- value: 14,
71
- testId: 'network-adapter',
72
- },
73
- ],
74
- },
75
- ]
76
- }
77
-
78
- export const dropdownItemsNewFunc = (
79
- localization: UI_I_Localization,
80
- state: string | number | undefined,
81
- passthroughDevices?: UI_I_PciDevice[],
82
- mediatedDevices?: any
83
- ): UI_I_Dropdown[] => {
84
- const { $text } = useNuxtApp()
85
-
86
- return [
87
- {
88
- text: localization.common.disksDrivesStorage,
89
- value: -1,
90
- divider: true,
91
- items: [
92
- {
93
- text: $text.toCapitalizeEveryWord(localization.common.hardDisk),
94
- value: 1,
95
- testId: 'disks-drives-storage',
96
- },
97
- {
98
- text: $text.toCapitalizeEveryWord(
99
- localization.common.existingHardDisk
100
- ),
101
- value: 2,
102
- testId: 'existing-hard-disk',
103
- },
104
- // { text: 'RDM Disk', value: 2 },
105
- // { text: 'Host USB Device', value: 3 },
106
- // { text: 'NVDIMM', value: 4 },
107
- {
108
- text: localization.common.cdDvdDrive,
109
- value: 5,
110
- testId: 'cd-dvd-drive',
111
- },
112
- ],
113
- },
114
- // {
115
- // text: 'Controllers',
116
- // children: [
117
- // { text: 'NVMe Controller', value: 6 },
118
- // { text: 'SATA Controller', value: 7 },
119
- // { text: 'SCSI Controller', value: 8 },
120
- // { text: 'USB Controller', value: 9 },
121
- // ],
122
- // },
123
- {
124
- text: localization.common.otherDevices,
125
- value: -1,
126
- divider: true,
127
- items: [
128
- {
129
- text: localization.common.pciDevice,
130
- value: 10,
131
- disabled:
132
- state === 2 ||
133
- (!passthroughDevices?.length && !mediatedDevices?.length),
134
- testId: 'pci-device',
135
- },
136
- // { text: 'Watchdog Timer', value: 11 },
137
- // { text: 'Precision Clock', value: 12 },
138
- // { text: 'Serial Port', value: 13 },
139
- ],
140
- },
141
- {
142
- text: localization.common.network,
143
- value: -1,
144
- items: [
145
- {
146
- text: $text.toCapitalizeEveryWord(localization.common.networkAdapter),
147
- value: 14,
148
- testId: 'network-adapter',
149
- },
150
- ],
151
- },
152
- ]
153
- }
1
+ import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
2
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
3
+ import type { UI_I_DropdownTreeItem } from '~/components/atoms/dropdown/tree/lib/models/interfaces'
4
+ import type { UI_I_PciDevice } from '~/lib/models/store/vm/interfaces'
5
+
6
+ export const dropdownItemsFunc = (
7
+ localization: UI_I_Localization,
8
+ state: string | number | undefined,
9
+ passthroughDevices?: UI_I_PciDevice[],
10
+ mediatedDevices?: any[]
11
+ ): UI_I_DropdownTreeItem[] => {
12
+ const { $text } = useNuxtApp()
13
+
14
+ return [
15
+ {
16
+ text: localization.common.disksDrivesStorage,
17
+ children: [
18
+ {
19
+ text: $text.toCapitalizeEveryWord(localization.common.hardDisk),
20
+ value: 1,
21
+ testId: 'disks-drives-storage',
22
+ },
23
+ {
24
+ text: $text.toCapitalizeEveryWord(
25
+ localization.common.existingHardDisk
26
+ ),
27
+ value: 2,
28
+ testId: 'existing-hard-disk',
29
+ },
30
+ // { text: 'RDM Disk', value: 2 },
31
+ // { text: 'Host USB Device', value: 3 },
32
+ // { text: 'NVDIMM', value: 4 },
33
+ {
34
+ text: localization.common.cdDvdDrive,
35
+ value: 5,
36
+ testId: 'cd-dvd-drive',
37
+ },
38
+ ],
39
+ },
40
+ // {
41
+ // text: 'Controllers',
42
+ // children: [
43
+ // { text: 'NVMe Controller', value: 6 },
44
+ // { text: 'SATA Controller', value: 7 },
45
+ // { text: 'SCSI Controller', value: 8 },
46
+ // { text: 'USB Controller', value: 9 },
47
+ // ],
48
+ // },
49
+ // TODO 700
50
+ // {
51
+ // text: localization.common.otherDevices,
52
+ // children: [
53
+ // {
54
+ // text: localization.common.pciDevice,
55
+ // value: 10,
56
+ // disabled:
57
+ // state === 2 ||
58
+ // (!passthroughDevices?.length && !mediatedDevices?.length),
59
+ // testId: 'pci-device',
60
+ // },
61
+ // // { text: 'Watchdog Timer', value: 11 },
62
+ // // { text: 'Precision Clock', value: 12 },
63
+ // // { text: 'Serial Port', value: 13 },
64
+ // ],
65
+ // },
66
+ {
67
+ text: localization.common.network,
68
+ children: [
69
+ {
70
+ text: $text.toCapitalizeEveryWord(localization.common.networkAdapter),
71
+ value: 14,
72
+ testId: 'network-adapter',
73
+ },
74
+ ],
75
+ },
76
+ ]
77
+ }
78
+
79
+ export const dropdownItemsNewFunc = (
80
+ localization: UI_I_Localization,
81
+ state: string | number | undefined,
82
+ passthroughDevices?: UI_I_PciDevice[],
83
+ mediatedDevices?: any
84
+ ): UI_I_Dropdown[] => {
85
+ const { $text } = useNuxtApp()
86
+
87
+ return [
88
+ {
89
+ text: localization.common.disksDrivesStorage,
90
+ value: -1,
91
+ divider: true,
92
+ items: [
93
+ {
94
+ text: $text.toCapitalizeEveryWord(localization.common.hardDisk),
95
+ value: 1,
96
+ testId: 'disks-drives-storage',
97
+ },
98
+ {
99
+ text: $text.toCapitalizeEveryWord(
100
+ localization.common.existingHardDisk
101
+ ),
102
+ value: 2,
103
+ testId: 'existing-hard-disk',
104
+ },
105
+ // { text: 'RDM Disk', value: 2 },
106
+ // { text: 'Host USB Device', value: 3 },
107
+ // { text: 'NVDIMM', value: 4 },
108
+ {
109
+ text: localization.common.cdDvdDrive,
110
+ value: 5,
111
+ testId: 'cd-dvd-drive',
112
+ },
113
+ ],
114
+ },
115
+ // {
116
+ // text: 'Controllers',
117
+ // children: [
118
+ // { text: 'NVMe Controller', value: 6 },
119
+ // { text: 'SATA Controller', value: 7 },
120
+ // { text: 'SCSI Controller', value: 8 },
121
+ // { text: 'USB Controller', value: 9 },
122
+ // ],
123
+ // },
124
+ // TODO 700
125
+ // {
126
+ // text: localization.common.otherDevices,
127
+ // value: -1,
128
+ // divider: true,
129
+ // items: [
130
+ // {
131
+ // text: localization.common.pciDevice,
132
+ // value: 10,
133
+ // disabled:
134
+ // state === 2 ||
135
+ // (!passthroughDevices?.length && !mediatedDevices?.length),
136
+ // testId: 'pci-device',
137
+ // },
138
+ // // { text: 'Watchdog Timer', value: 11 },
139
+ // // { text: 'Precision Clock', value: 12 },
140
+ // // { text: 'Serial Port', value: 13 },
141
+ // ],
142
+ // },
143
+ {
144
+ text: localization.common.network,
145
+ value: -1,
146
+ items: [
147
+ {
148
+ text: $text.toCapitalizeEveryWord(localization.common.networkAdapter),
149
+ value: 14,
150
+ testId: 'network-adapter',
151
+ },
152
+ ],
153
+ },
154
+ ]
155
+ }
@@ -19,10 +19,11 @@
19
19
  @invalid="remoteConsoleOptionsInvalid = $event"
20
20
  @remove-error-by-title="emits('remove-error-by-title', $event)"
21
21
  />
22
- <common-vm-actions-common-customize-hardware-vmoptions-tools
23
- :tools="props.options?.guest_tools?.enabled"
24
- @send-data="emits('send-data-tools', $event)"
25
- />
22
+ <!-- TODO 700-->
23
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-tools-->
24
+ <!-- :tools="props.options?.guest_tools?.enabled"-->
25
+ <!-- @send-data="emits('send-data-tools', $event)"-->
26
+ <!-- />-->
26
27
  <common-vm-actions-common-customize-hardware-vmoptions-boot-options
27
28
  :error-validation-fields="props.errorValidationFields"
28
29
  :hard-disks="props.hardDisks"
@@ -101,7 +102,8 @@ const emits = defineEmits<{
101
102
  event: 'send-data-remote-console-options',
102
103
  value: UI_I_SendDataRemoteConsoleOptions
103
104
  ): void
104
- (event: 'send-data-tools', value: UI_I_SendDataTools): void
105
+ // TODO 700
106
+ // (event: 'send-data-tools', value: UI_I_SendDataTools): void
105
107
  (event: 'send-data-boot-options', value: UI_I_SendDataBootOptions): void
106
108
  (event: 'remove-error-by-title', value: string): void
107
109
  }>()
@@ -21,10 +21,11 @@
21
21
  @invalid="remoteConsoleOptionsInvalid = $event"
22
22
  @remove-error-by-title="emits('remove-error-by-title', $event)"
23
23
  />
24
- <common-vm-actions-common-customize-hardware-vmoptions-tools
25
- :tools="props.options?.guest_tools?.enabled"
26
- @send-data="emits('send-data-tools', $event)"
27
- />
24
+ <!-- TODO 700-->
25
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-tools-->
26
+ <!-- :tools="props.options?.guest_tools?.enabled"-->
27
+ <!-- @send-data="emits('send-data-tools', $event)"-->
28
+ <!-- />-->
28
29
  <common-vm-actions-common-customize-hardware-vmoptions-boot-options
29
30
  :error-validation-fields="props.errorValidationFields"
30
31
  :hard-disks="props.hardDisks"
@@ -97,7 +98,8 @@ const emits = defineEmits<{
97
98
  event: 'send-data-remote-console-options',
98
99
  value: UI_I_SendDataRemoteConsoleOptions
99
100
  ): void
100
- (event: 'send-data-tools', value: UI_I_SendDataTools): void
101
+ // TODO 700
102
+ // (event: 'send-data-tools', value: UI_I_SendDataTools): void
101
103
  (event: 'send-data-boot-options', value: UI_I_SendDataBootOptions): void
102
104
  (event: 'remove-error-by-title', value: string): void
103
105
  }>()
@@ -102,11 +102,12 @@
102
102
  v-model:usb-redirection="usbRedirection"
103
103
  :disabled="props.isDisabled"
104
104
  />
105
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing
106
- v-if="remoteConsoleType === 'spice'"
107
- v-model:folder-sharing="folderSharing"
108
- :disabled="props.isDisabled"
109
- />
105
+ <!-- TODO 700-->
106
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing-->
107
+ <!-- v-if="remoteConsoleType === 'spice'"-->
108
+ <!-- v-model:folder-sharing="folderSharing"-->
109
+ <!-- :disabled="props.isDisabled"-->
110
+ <!-- />-->
110
111
  </template>
111
112
  </ui-stack-block>
112
113
  </template>
@@ -127,7 +128,8 @@ const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
127
128
  const usbRedirection = defineModel<number>('usbRedirection', {
128
129
  required: true,
129
130
  })
130
- const folderSharing = defineModel<boolean>('folderSharing', { required: true })
131
+ // TODO 700
132
+ // const folderSharing = defineModel<boolean>('folderSharing', { required: true })
131
133
 
132
134
  const props = defineProps<{
133
135
  // TODO возможно вернем, НЕ УДАЛЯТЬ
@@ -98,11 +98,12 @@
98
98
  v-model:usb-redirection="usbRedirection"
99
99
  :disabled="props.isDisabled"
100
100
  />
101
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing
102
- v-if="remoteConsoleType === 'spice'"
103
- v-model:folder-sharing="folderSharing"
104
- :disabled="props.isDisabled"
105
- />
101
+ <!-- TODO 700-->
102
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing-->
103
+ <!-- v-if="remoteConsoleType === 'spice'"-->
104
+ <!-- v-model:folder-sharing="folderSharing"-->
105
+ <!-- :disabled="props.isDisabled"-->
106
+ <!-- />-->
106
107
  </template>
107
108
  </atoms-stack-block>
108
109
  </div>
@@ -124,7 +125,8 @@ const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
124
125
  const usbRedirection = defineModel<number>('usbRedirection', {
125
126
  required: true,
126
127
  })
127
- const folderSharing = defineModel<boolean>('folderSharing', { required: true })
128
+ // TODO 700
129
+ // const folderSharing = defineModel<boolean>('folderSharing', { required: true })
128
130
 
129
131
  const props = defineProps<{
130
132
  // TODO возможно вернем, НЕ УДАЛЯТЬ
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="select-options">
2
+ <div :class="['select-options', {disabled: props.isCreateTemplate}]">
3
3
  <div class="checkbox">
4
4
  <input
5
5
  id="customize-os"
@@ -63,6 +63,11 @@ watch(selectedOptions, (newValue) => {
63
63
  .select-options {
64
64
  padding: 12px 0 0;
65
65
 
66
+ &.disabled {
67
+ input, label {
68
+ cursor: not-allowed;
69
+ }
70
+ }
66
71
  .checkbox {
67
72
  margin: 6px 0;
68
73
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.325",
4
+ "version": "1.5.327",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",