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.
- package/assets/scss/common/theme.scss +6 -0
- package/components/atoms/table/dataGrid/DataGrid.vue +1 -1
- package/components/common/browse/BrowseNew.vue +8 -2
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +5 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +7 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +194 -190
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +246 -237
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +158 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +8 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +8 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +8 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +4 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +36 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +5 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +5 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +85 -81
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +71 -67
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +150 -149
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +146 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +5 -1
- package/components/common/vm/actions/common/select/storage/new/New.vue +5 -1
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +2 -1
- package/package.json +2 -2
package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue
CHANGED
|
@@ -1,140 +1,146 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-stack-block
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<!--
|
|
26
|
-
|
|
27
|
-
<!--
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<!--
|
|
44
|
-
<!--
|
|
45
|
-
<!--
|
|
46
|
-
<!--
|
|
47
|
-
<!--
|
|
48
|
-
<!-- v-
|
|
49
|
-
<!-- :
|
|
50
|
-
<!--
|
|
51
|
-
<!--
|
|
52
|
-
<!--
|
|
53
|
-
<!--
|
|
54
|
-
<!-- v-
|
|
55
|
-
<!--
|
|
56
|
-
<!-- :
|
|
57
|
-
<!--
|
|
58
|
-
<!--
|
|
59
|
-
<!--
|
|
60
|
-
<!--
|
|
61
|
-
<!-- v-
|
|
62
|
-
<!--
|
|
63
|
-
<!-- :
|
|
64
|
-
<!--
|
|
65
|
-
<!--
|
|
66
|
-
<!--
|
|
67
|
-
<!--
|
|
68
|
-
<!-- v-
|
|
69
|
-
<!-- :
|
|
70
|
-
<!--
|
|
71
|
-
<!--
|
|
72
|
-
<!--
|
|
73
|
-
<!--
|
|
74
|
-
<!-- v-
|
|
75
|
-
<!-- :
|
|
76
|
-
<!-- :
|
|
77
|
-
<!--
|
|
78
|
-
<!--
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<!--
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
v-
|
|
97
|
-
:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
v-
|
|
102
|
-
:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
})
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
</
|
|
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>
|
|
@@ -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]?.
|
|
138
|
+
const selectedId = selectedData[0]?.data[0]?.data.id
|
|
135
139
|
const selectedItemIndex = props.datastore.findIndex(
|
|
136
140
|
(item) => item.id === selectedId
|
|
137
141
|
)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
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.
|
|
38
|
+
"bfg-uikit": "1.0.442",
|
|
39
39
|
"html2canvas": "^1.4.1",
|
|
40
40
|
"prettier-eslint": "^15.0.1"
|
|
41
41
|
}
|