bfg-common 1.5.239 → 1.5.241

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 (32) hide show
  1. package/assets/scss/common/theme.scss +6 -0
  2. package/components/atoms/table/dataGrid/DataGrid.vue +1 -1
  3. package/components/common/browse/BrowseNew.vue +8 -2
  4. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +5 -2
  5. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +7 -7
  6. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +2 -2
  7. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +4 -0
  8. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +194 -190
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +246 -237
  10. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +6 -1
  11. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +158 -154
  12. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +8 -2
  13. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +4 -0
  14. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +8 -3
  15. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +8 -4
  16. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +6 -1
  17. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +6 -1
  18. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +1 -1
  19. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +4 -3
  20. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +1 -0
  21. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +1 -0
  22. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +36 -30
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +5 -2
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +5 -2
  25. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +85 -81
  26. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +71 -67
  27. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +150 -149
  28. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +146 -140
  29. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +5 -1
  30. package/components/common/vm/actions/common/select/storage/new/New.vue +5 -1
  31. package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +2 -1
  32. package/package.json +2 -2
@@ -1,140 +1,146 @@
1
- <template>
2
- <ui-stack-block :has-children="true" test-id="remote-console-stack-block">
3
- <template #stackBlockKey>
4
- <div
5
- id="vm-wizard-toggle-block-remote-console"
6
- data-id="vm-wizard-toggle-block-remote-console"
7
- class="flex-align-center"
8
- >
9
- <span class="title">{{ localization.common.remoteConsoleOptions }}</span>
10
- <ui-icon
11
- v-show="props.remoteConsoleOptionsInvalid"
12
- width="18px"
13
- height="18px"
14
- name="error-outline"
15
- />
16
- </div>
17
- </template>
18
- <template #stackChildren>
19
- <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
20
-
21
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-type-->
22
- <!-- v-models:remote-console-type="remoteConsoleType"-->
23
- <!-- :error-validation-fields="props.errorValidationFields"-->
24
- <!-- :disabled="isDisabled"-->
25
- <!-- @input="changeRemoteConsoleType"-->
26
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
27
- <!-- />-->
28
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap
29
- v-model:keymap="keymap"
30
- :disabled="props.isDisabled"
31
- />
32
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-password
33
- v-model:password="password"
34
- :disabled="props.isDisabled"
35
- @valid="passwordIsValid = $event"
36
- />
37
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-power-control-->
38
- <!-- v-if="remoteConsoleType === 'vnc'"-->
39
- <!-- v-models:power-control="powerControl"-->
40
- <!-- />-->
41
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-share-policy-->
42
- <!-- v-if="remoteConsoleType === 'vnc'"-->
43
- <!-- v-models:share-policy="sharePolicy"-->
44
- <!-- />-->
45
- <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
46
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-img-compression-->
47
- <!-- v-if="remoteConsoleType === 'spice'"-->
48
- <!-- v-models:img-compression="imgCompression"-->
49
- <!-- :error-validation-fields="props.errorValidationFields"-->
50
- <!-- :disabled="isDisabled"-->
51
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
52
- <!-- />-->
53
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-jpeg-compression-->
54
- <!-- v-if="remoteConsoleType === 'spice'"-->
55
- <!-- v-models:jpeg-compression="jpegCompression"-->
56
- <!-- :error-validation-fields="props.errorValidationFields"-->
57
- <!-- :disabled="isDisabled"-->
58
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
59
- <!-- />-->
60
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-zlib-compression-->
61
- <!-- v-if="remoteConsoleType === 'spice'"-->
62
- <!-- v-models:zlib-compression="zlibCompression"-->
63
- <!-- :error-validation-fields="props.errorValidationFields"-->
64
- <!-- :disabled="isDisabled"-->
65
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
66
- <!-- />-->
67
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-playback-compression-->
68
- <!-- v-if="remoteConsoleType === 'spice'"-->
69
- <!-- :disabled="isDisabled"-->
70
- <!-- v-models:playback-compression="playbackCompression"-->
71
- <!-- />-->
72
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-streaming-mode-->
73
- <!-- v-if="remoteConsoleType === 'spice'"-->
74
- <!-- v-models:streaming-mode="streamingMode"-->
75
- <!-- :error-validation-fields="props.errorValidationFields"-->
76
- <!-- :disabled="isDisabled"-->
77
- <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
78
- <!-- />-->
79
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-copy-paste
80
- v-if="remoteConsoleType === 'spice'"
81
- v-model:copy-paste="copyPaste"
82
- :disabled="props.isDisabled"
83
- />
84
- <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
85
- <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-mouse-mode-->
86
- <!-- v-if="remoteConsoleType === 'spice'"-->
87
- <!-- v-models:mouse-mode="mouseMode"-->
88
- <!-- />-->
89
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-file-transfer
90
- v-if="remoteConsoleType === 'spice'"
91
- v-model:file-transfer="fileTransfer"
92
- :disabled="props.isDisabled"
93
- />
94
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-usb-redirection
95
- v-if="remoteConsoleType === 'spice'"
96
- v-model:usb-redirection="usbRedirection"
97
- :disabled="props.isDisabled"
98
- />
99
- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing
100
- v-if="remoteConsoleType === 'spice'"
101
- v-model:folder-sharing="folderSharing"
102
- :disabled="props.isDisabled"
103
- />
104
- </template>
105
- </ui-stack-block>
106
- </template>
107
-
108
- <script setup lang="ts">
109
- import type { UI_I_Localization } from '~/lib/models/interfaces'
110
-
111
- const keymap = defineModel<string>('keymap', { required: true })
112
- const password = defineModel<string>('password', { required: true })
113
- const passwordIsValid = defineModel<boolean>('passwordIsValid', {
114
- required: true,
115
- })
116
- const remoteConsoleType = defineModel<string>('remoteConsoleType', {
117
- required: true,
118
- })
119
- const copyPaste = defineModel<boolean>('copyPaste', { required: true })
120
- const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
121
- const usbRedirection = defineModel<number>('usbRedirection', {
122
- required: true,
123
- })
124
- const folderSharing = defineModel<boolean>('folderSharing', { required: true })
125
-
126
- const props = defineProps<{
127
- // TODO возможно вернем, НЕ УДАЛЯТЬ
128
- // errorValidationFields: UI_I_ErrorValidationField<string>[]
129
- remoteConsoleOptionsInvalid: boolean
130
- isDisabled: boolean
131
- }>()
132
-
133
- const localization = computed<UI_I_Localization>(() => useLocal())
134
- </script>
135
-
136
- <style scoped lang="scss">
137
- .title {
138
- margin-right: 8px;
139
- }
140
- </style>
1
+ <template>
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="remote-console-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
7
+ <template #stackBlockKey>
8
+ <div
9
+ id="vm-wizard-toggle-block-remote-console"
10
+ data-id="vm-wizard-toggle-block-remote-console"
11
+ class="flex-align-center"
12
+ >
13
+ <span class="title">{{
14
+ localization.common.remoteConsoleOptions
15
+ }}</span>
16
+ <ui-icon
17
+ v-show="props.remoteConsoleOptionsInvalid"
18
+ width="18px"
19
+ height="18px"
20
+ name="error-outline"
21
+ />
22
+ </div>
23
+ </template>
24
+ <template #stackChildren>
25
+ <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
26
+
27
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-type-->
28
+ <!-- v-models:remote-console-type="remoteConsoleType"-->
29
+ <!-- :error-validation-fields="props.errorValidationFields"-->
30
+ <!-- :disabled="isDisabled"-->
31
+ <!-- @input="changeRemoteConsoleType"-->
32
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
33
+ <!-- />-->
34
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-keymap
35
+ v-model:keymap="keymap"
36
+ :disabled="props.isDisabled"
37
+ />
38
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-password
39
+ v-model:password="password"
40
+ :disabled="props.isDisabled"
41
+ @valid="passwordIsValid = $event"
42
+ />
43
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-power-control-->
44
+ <!-- v-if="remoteConsoleType === 'vnc'"-->
45
+ <!-- v-models:power-control="powerControl"-->
46
+ <!-- />-->
47
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-share-policy-->
48
+ <!-- v-if="remoteConsoleType === 'vnc'"-->
49
+ <!-- v-models:share-policy="sharePolicy"-->
50
+ <!-- />-->
51
+ <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
52
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-img-compression-->
53
+ <!-- v-if="remoteConsoleType === 'spice'"-->
54
+ <!-- v-models:img-compression="imgCompression"-->
55
+ <!-- :error-validation-fields="props.errorValidationFields"-->
56
+ <!-- :disabled="isDisabled"-->
57
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
58
+ <!-- />-->
59
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-jpeg-compression-->
60
+ <!-- v-if="remoteConsoleType === 'spice'"-->
61
+ <!-- v-models:jpeg-compression="jpegCompression"-->
62
+ <!-- :error-validation-fields="props.errorValidationFields"-->
63
+ <!-- :disabled="isDisabled"-->
64
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
65
+ <!-- />-->
66
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-zlib-compression-->
67
+ <!-- v-if="remoteConsoleType === 'spice'"-->
68
+ <!-- v-models:zlib-compression="zlibCompression"-->
69
+ <!-- :error-validation-fields="props.errorValidationFields"-->
70
+ <!-- :disabled="isDisabled"-->
71
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
72
+ <!-- />-->
73
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-playback-compression-->
74
+ <!-- v-if="remoteConsoleType === 'spice'"-->
75
+ <!-- :disabled="isDisabled"-->
76
+ <!-- v-models:playback-compression="playbackCompression"-->
77
+ <!-- />-->
78
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-streaming-mode-->
79
+ <!-- v-if="remoteConsoleType === 'spice'"-->
80
+ <!-- v-models:streaming-mode="streamingMode"-->
81
+ <!-- :error-validation-fields="props.errorValidationFields"-->
82
+ <!-- :disabled="isDisabled"-->
83
+ <!-- @remove-error-by-title="emits('remove-error-by-title', $event)"-->
84
+ <!-- />-->
85
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-copy-paste
86
+ v-if="remoteConsoleType === 'spice'"
87
+ v-model:copy-paste="copyPaste"
88
+ :disabled="props.isDisabled"
89
+ />
90
+ <!-- TODO возможно вернем, НЕ УДАЛЯТЬ-->
91
+ <!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-mouse-mode-->
92
+ <!-- v-if="remoteConsoleType === 'spice'"-->
93
+ <!-- v-models:mouse-mode="mouseMode"-->
94
+ <!-- />-->
95
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-file-transfer
96
+ v-if="remoteConsoleType === 'spice'"
97
+ v-model:file-transfer="fileTransfer"
98
+ :disabled="props.isDisabled"
99
+ />
100
+ <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-usb-redirection
101
+ v-if="remoteConsoleType === 'spice'"
102
+ v-model:usb-redirection="usbRedirection"
103
+ :disabled="props.isDisabled"
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
+ />
110
+ </template>
111
+ </ui-stack-block>
112
+ </template>
113
+
114
+ <script setup lang="ts">
115
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
116
+
117
+ const keymap = defineModel<string>('keymap', { required: true })
118
+ const password = defineModel<string>('password', { required: true })
119
+ const passwordIsValid = defineModel<boolean>('passwordIsValid', {
120
+ required: true,
121
+ })
122
+ const remoteConsoleType = defineModel<string>('remoteConsoleType', {
123
+ required: true,
124
+ })
125
+ const copyPaste = defineModel<boolean>('copyPaste', { required: true })
126
+ const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
127
+ const usbRedirection = defineModel<number>('usbRedirection', {
128
+ required: true,
129
+ })
130
+ const folderSharing = defineModel<boolean>('folderSharing', { required: true })
131
+
132
+ const props = defineProps<{
133
+ // TODO возможно вернем, НЕ УДАЛЯТЬ
134
+ // errorValidationFields: UI_I_ErrorValidationField<string>[]
135
+ remoteConsoleOptionsInvalid: boolean
136
+ isDisabled: boolean
137
+ }>()
138
+
139
+ const localization = computed<UI_I_Localization>(() => useLocal())
140
+ </script>
141
+
142
+ <style scoped lang="scss">
143
+ .title {
144
+ margin-right: 8px;
145
+ }
146
+ </style>
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <ui-stack-block :has-children="true" test-id="tools-stack-block">
2
+ <ui-stack-block
3
+ :has-children="true"
4
+ test-id="tools-stack-block"
5
+ is-toggle-on-stack-view-key
6
+ >
3
7
  <template #stackBlockKey>
4
8
  <div
5
9
  id="vm-wizard-toggle-block-tools"
@@ -29,6 +29,10 @@
29
29
  {{ storageCount }}
30
30
  </h3></template
31
31
  >
32
+ <template #name="{ item }">
33
+ <ui-icon name="datastores" width="18" height="18" class="mr-1" />
34
+ {{ item.text }}
35
+ </template>
32
36
  <template #state="{ item }">
33
37
  <ui-chip :color="item.data.color" rounded>
34
38
  <ui-icon :name="item.data.iconClassName" width="14" height="14" />
@@ -131,7 +135,7 @@ watch(
131
135
  )
132
136
 
133
137
  const onSelectRow = (selectedData: UI_I_DataTable): void => {
134
- const selectedId = selectedData[0]?.data[0]?.key
138
+ const selectedId = selectedData[0]?.data[0]?.data.id
135
139
  const selectedItemIndex = props.datastore.findIndex(
136
140
  (item) => item.id === selectedId
137
141
  )
@@ -257,9 +257,10 @@ export const tableBodyFunc = (
257
257
  isSelected: key === selectedRow,
258
258
  data: [
259
259
  {
260
- key: item.id,
260
+ key: 'name',
261
261
  col: 0,
262
262
  text: item.name,
263
+ data: { id: item.id },
263
264
  },
264
265
  {
265
266
  key: 'state',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.239",
4
+ "version": "1.5.241",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -35,7 +35,7 @@
35
35
  "@vueuse/components": "^10.1.2",
36
36
  "date-fns": "^2.29.3",
37
37
  "bfg-nuxt-3-graph": "1.0.26",
38
- "bfg-uikit": "1.0.438",
38
+ "bfg-uikit": "1.0.442",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }