bfg-common 1.5.237 → 1.5.238
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/CODE_STYLE.md +109 -109
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/table/dataGrid/DataGrid.vue +1717 -1717
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/atoms/table/info/lib/models/interfaces.ts +10 -10
- package/components/atoms/tabs/VerticalTabs.vue +105 -105
- package/components/common/backup/storage/actions/add/Add.vue +247 -247
- package/components/common/backup/storage/actions/add/New.vue +281 -281
- package/components/common/backup/storage/actions/add/Old.vue +114 -114
- package/components/common/backup/storage/actions/add/lib/config/steps.ts +168 -168
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +41 -41
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +294 -294
- package/components/common/backup/storage/actions/add/steps/readyComplete/ReadyComplete.vue +45 -45
- package/components/common/backup/storage/actions/add/steps/readyComplete/lib/config/propertiesDetails.ts +242 -242
- package/components/common/backup/storage/actions/delete/Delete.vue +65 -65
- package/components/common/browse/BrowseNew.vue +1 -7
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/context/lib/models/interfaces.ts +31 -31
- package/components/common/diagramMain/DiagramMain.vue +897 -897
- package/components/common/diagramMain/Header.vue +214 -214
- package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/ViewOld.vue +112 -112
- package/components/common/monitor/overview/OverviewOld.vue +139 -139
- package/components/common/pages/home/headline/Headline.vue +45 -45
- package/components/common/pages/home/headline/HeadlineOld.vue +42 -42
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/Widgets.vue +49 -49
- package/components/common/pages/home/widgets/WidgetsNew.vue +86 -86
- package/components/common/pages/home/widgets/WidgetsOld.vue +34 -34
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/Vms.vue +26 -26
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/packages/Packages.vue +208 -208
- package/components/common/pages/shortcuts/block/BlockOld.vue +68 -68
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/recursionTree/RecursionTree.vue +223 -223
- package/components/common/select/button/ButtonDropdown.vue +108 -108
- package/components/common/spiceConsole/Drawer.vue +377 -377
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
- package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
- package/components/common/vm/actions/add/folderTreeView/Old.vue +50 -50
- package/components/common/vm/actions/clone/lib/config/steps.ts +291 -291
- package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +116 -116
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +7 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +319 -319
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +100 -100
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +232 -232
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +168 -168
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +78 -78
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +190 -194
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +237 -242
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +1 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/TooltipNew.vue +154 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +307 -307
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +154 -158
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +2 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +382 -382
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +3 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +151 -151
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationNew.vue +73 -73
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationOld.vue +83 -83
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +4 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +1 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +1 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +94 -94
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +205 -205
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +30 -36
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +40 -40
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +2 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +81 -85
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +67 -71
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +149 -150
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -146
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +128 -128
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +1 -5
- package/components/common/vm/actions/common/lib/utils/capabilities.ts +52 -52
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/computeResource/treeView/New.vue +44 -44
- package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +118 -118
- package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/os/Old.vue +152 -152
- package/components/common/vm/actions/common/select/os/Os.vue +139 -139
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +220 -220
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +157 -157
- package/components/common/wizards/vm/migrate/lib/validations.ts +68 -68
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +137 -137
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/components/common/wizards/vm/migrate/select/network/table/network/lib/config/advancedTable.ts +91 -91
- package/composables/productNameLocal.ts +30 -30
- package/composables/useAppVersion.ts +21 -21
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- package/plugins/helpers.ts +18 -0
- package/plugins/number.ts +18 -0
- package/plugins/panelStates.ts +70 -0
- package/plugins/text.ts +59 -48
- package/plugins/time.ts +17 -0
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +387 -387
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/mappers/recentTasks.ts +64 -64
- /package/{components/common/split/horizontal/lib/models → lib/models/plugins/panelStates}/interfaces.ts +0 -0
|
@@ -1,150 +1,149 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-stack-block
|
|
3
|
-
:has-children="true"
|
|
4
|
-
test-id="general-options-stack-block"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
id="vm-wizard-toggle-block-general-options"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<span
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<span
|
|
31
|
-
|
|
32
|
-
</
|
|
33
|
-
<!-- <
|
|
34
|
-
<!--
|
|
35
|
-
<!--
|
|
36
|
-
<!--
|
|
37
|
-
<!--
|
|
38
|
-
<!--
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
import type {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
})
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
:deep(.guest-
|
|
144
|
-
:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<ui-stack-block
|
|
3
|
+
:has-children="true"
|
|
4
|
+
test-id="general-options-stack-block"
|
|
5
|
+
@toggle="blockIsOpen = $event"
|
|
6
|
+
>
|
|
7
|
+
<template #stackBlockKey>
|
|
8
|
+
<div
|
|
9
|
+
id="vm-wizard-toggle-block-general-options"
|
|
10
|
+
data-id="vm-wizard-toggle-block-general-options"
|
|
11
|
+
class="flex-align-center"
|
|
12
|
+
>
|
|
13
|
+
<span>{{ localization.common.generalOptions }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<template #stackBlockContent>
|
|
17
|
+
<div v-show="!blockIsOpen" class="vm-name-wrap">
|
|
18
|
+
<span class="vsphere-icon-vm"></span>
|
|
19
|
+
<span>{{ vmName }}</span>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
<template #stackChildren>
|
|
23
|
+
<ui-stack-block :has-children="false">
|
|
24
|
+
<template #stackBlockKey>
|
|
25
|
+
{{ localization.common.vmName }}
|
|
26
|
+
</template>
|
|
27
|
+
<template #stackBlockContent>
|
|
28
|
+
<div class="vm-name-wrap">
|
|
29
|
+
<span class="vsphere-icon-vm"></span>
|
|
30
|
+
<span>{{ vmName }}</span>
|
|
31
|
+
</div>
|
|
32
|
+
<!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
|
|
33
|
+
<!-- <input-->
|
|
34
|
+
<!-- v-else-->
|
|
35
|
+
<!-- id="general-option-vm-name"-->
|
|
36
|
+
<!-- v-models="vmName"-->
|
|
37
|
+
<!-- type="text"-->
|
|
38
|
+
<!-- />-->
|
|
39
|
+
</template>
|
|
40
|
+
</ui-stack-block>
|
|
41
|
+
|
|
42
|
+
<ui-stack-block :has-children="false">
|
|
43
|
+
<template #stackBlockKey>
|
|
44
|
+
{{ localization.common.machineType }}
|
|
45
|
+
</template>
|
|
46
|
+
<template #stackBlockContent>
|
|
47
|
+
<ui-select
|
|
48
|
+
v-if="guestMachineType"
|
|
49
|
+
id="guest-machine-type-select"
|
|
50
|
+
v-model="guestMachineType"
|
|
51
|
+
:items="props.machineTypeOptions"
|
|
52
|
+
:disabled="props.isDisabled"
|
|
53
|
+
width="auto"
|
|
54
|
+
test-id="guest-machine-type-select"
|
|
55
|
+
class="guest-machine-type-select"
|
|
56
|
+
size="sm"
|
|
57
|
+
/>
|
|
58
|
+
</template>
|
|
59
|
+
</ui-stack-block>
|
|
60
|
+
|
|
61
|
+
<ui-stack-block :has-children="false">
|
|
62
|
+
<template #stackBlockKey>
|
|
63
|
+
{{ localization.common.guestOsFamily }}
|
|
64
|
+
</template>
|
|
65
|
+
<template #stackBlockContent>
|
|
66
|
+
<ui-select
|
|
67
|
+
v-if="guestOsFamily"
|
|
68
|
+
id="guest-os-family-select"
|
|
69
|
+
v-model="guestOsFamily"
|
|
70
|
+
:items="props.osOptions"
|
|
71
|
+
:disabled="props.isDisabled"
|
|
72
|
+
width="auto"
|
|
73
|
+
test-id="guest-os-family-select"
|
|
74
|
+
class="guest-os-family-select"
|
|
75
|
+
size="sm"
|
|
76
|
+
@change="emits('change-os')"
|
|
77
|
+
/>
|
|
78
|
+
</template>
|
|
79
|
+
</ui-stack-block>
|
|
80
|
+
|
|
81
|
+
<ui-stack-block :has-children="false">
|
|
82
|
+
<template #stackBlockKey>
|
|
83
|
+
{{ localization.common.guestOsVersion }}
|
|
84
|
+
</template>
|
|
85
|
+
<template #stackBlockContent>
|
|
86
|
+
<ui-select
|
|
87
|
+
v-if="guestOsVersion"
|
|
88
|
+
id="guest-os-version-select"
|
|
89
|
+
v-model="guestOsVersion"
|
|
90
|
+
:items="props.versionsOptions"
|
|
91
|
+
:disabled="props.isDisabled"
|
|
92
|
+
width="auto"
|
|
93
|
+
test-id="guest-os-version-select"
|
|
94
|
+
class="guest-os-version-select"
|
|
95
|
+
size="sm"
|
|
96
|
+
/>
|
|
97
|
+
</template>
|
|
98
|
+
</ui-stack-block>
|
|
99
|
+
</template>
|
|
100
|
+
</ui-stack-block>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<script setup lang="ts">
|
|
104
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
105
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
106
|
+
|
|
107
|
+
const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
|
|
108
|
+
const vmName = defineModel<string>('vmName', { required: true })
|
|
109
|
+
const guestMachineType = defineModel<string>('guestMachineType', {
|
|
110
|
+
required: true,
|
|
111
|
+
})
|
|
112
|
+
const guestOsFamily = defineModel<string>('guestOsFamily', { required: true })
|
|
113
|
+
const guestOsVersion = defineModel<string>('guestOsVersion', {
|
|
114
|
+
required: true,
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
const props = defineProps<{
|
|
118
|
+
isDisabled: boolean
|
|
119
|
+
machineTypeOptions: UI_I_OptionItem[]
|
|
120
|
+
osOptions: UI_I_OptionItem[]
|
|
121
|
+
versionsOptions: UI_I_OptionItem[]
|
|
122
|
+
}>()
|
|
123
|
+
const emits = defineEmits<{
|
|
124
|
+
(event: 'change-os'): void
|
|
125
|
+
}>()
|
|
126
|
+
|
|
127
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
128
|
+
</script>
|
|
129
|
+
|
|
130
|
+
<style scoped lang="scss">
|
|
131
|
+
.vm-name-wrap {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: 4px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.vsphere-icon-vm {
|
|
138
|
+
width: 20px;
|
|
139
|
+
height: 20px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:deep(.guest-os-family-select .ui-main-select-toggle),
|
|
143
|
+
:deep(.guest-machine-type-select .ui-main-select-toggle) {
|
|
144
|
+
width: 108px;
|
|
145
|
+
}
|
|
146
|
+
:deep(.guest-os-version-select .ui-main-select-toggle) {
|
|
147
|
+
width: 196px;
|
|
148
|
+
}
|
|
149
|
+
</style>
|
package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue
CHANGED
|
@@ -1,146 +1,140 @@
|
|
|
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
|
-
<common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-
|
|
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
|
-
</
|
|
141
|
-
|
|
142
|
-
<style scoped lang="scss">
|
|
143
|
-
.title {
|
|
144
|
-
margin-right: 8px;
|
|
145
|
-
}
|
|
146
|
-
</style>
|
|
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>
|