bfg-common 1.5.114 → 1.5.116
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/localization/local_be.json +8 -1
- package/assets/localization/local_en.json +8 -1
- package/assets/localization/local_hy.json +8 -1
- package/assets/localization/local_kk.json +8 -1
- package/assets/localization/local_ru.json +8 -3
- package/assets/localization/local_zh.json +8 -1
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +5 -4
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +5 -4
- package/components/common/portlets/customAttributes/Portlet.vue +10 -10
- package/components/common/portlets/tag/CreateCategory.vue +10 -10
- package/components/common/portlets/tag/Portlet.vue +19 -19
- package/components/common/portlets/tag/TagAddNew.vue +8 -8
- package/components/common/portlets/tag/lib/config/config.ts +1 -0
- package/components/common/resource/progressBlock/ProgressBlock.vue +7 -7
- package/components/common/resource/simple/Simple.vue +2 -2
- package/components/common/resource/simple/lib/models/enums.ts +1 -1
- package/components/common/select/input/Input.vue +5 -6
- package/components/common/select/radio/RadioGroup.vue +3 -4
- package/components/common/selectLanguage/SelectLanguage.vue +27 -27
- package/components/common/spiceConsole/Drawer.vue +1 -1
- package/components/common/spiceConsole/SpiceConsole.vue +3 -3
- package/components/common/spiceConsole/keyboard/Keyboard.vue +8 -8
- package/components/common/spiceConsole/keyboard/lib/config/keyboardRows.ts +2 -2
- package/components/common/spiceConsole/keyboard/lib/models/interfaces.ts +1 -1
- package/components/common/split/horizontal/HorizontalNew.vue +9 -9
- package/components/common/split/horizontal/HorizontalOld.vue +9 -9
- package/components/common/split/vertical/Vertical.vue +22 -20
- package/components/common/split/vertical/VerticalNew.vue +10 -7
- package/components/common/split/vertical/VerticalOld.vue +11 -8
- package/components/common/summary/notification/NotificationOld.vue +3 -2
- package/components/common/titleBar/titleBarNew/notification/Notification.vue +4 -4
- package/components/common/tools/Actions.vue +3 -4
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/lib/config/navItems.ts +5 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +8 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusOld.vue +1 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +23 -17
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocketNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocketOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/hotPlug/HotPlugNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/hotPlug/HotPlugOld.vue +7 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +13 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelOld.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/TooltipNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +7 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +14 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugOld.vue +4 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/cache/CacheNew.vue +20 -19
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/cache/CacheOld.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIopsNew.vue +32 -33
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalNew.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeNew.vue +19 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/adapterType/AdapterTypeNew.vue +19 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +4 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +2 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +3 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +1 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/ModelNew.vue +18 -18
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/ModelOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysNew.vue +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryOld.vue +6 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +12 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteOld.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferOld.vue +4 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +1 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +5 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +5 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +28 -29
- package/components/common/vm/actions/common/lib/models/types.ts +1 -1
- package/components/common/vm/actions/common/select/compatibility/New.vue +2 -2
- package/components/common/vm/actions/common/select/computeResource/New.vue +1 -1
- package/components/common/vm/actions/common/select/computeResource/Old.vue +1 -1
- package/components/common/vm/actions/common/select/computeResource/treeView/Old.vue +8 -5
- package/components/common/vm/actions/common/select/createType/Old.vue +1 -1
- package/components/common/vm/actions/common/select/name/New.vue +6 -6
- package/components/common/vm/actions/common/select/name/Old.vue +1 -1
- package/components/common/vm/actions/common/select/storage/Old.vue +3 -3
- package/components/common/vm/actions/common/select/storage/new/New.vue +5 -5
- package/components/common/vm/actions/common/select/template/Template.vue +1 -1
- package/components/common/vm/actions/common/select/template/TemplateTreeView.vue +1 -1
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +1 -1
- package/components/common/vm/actions/editSettings/lib/config/modal.ts +6 -4
- package/components/common/vm/actions/editSettings/lib/models/types.ts +4 -4
- package/components/common/vm/actions/editSettings/lib/utils.ts +25 -29
- package/components/common/vm/actions/editSettings/new/New.vue +4 -4
- package/components/common/vm/actions/lib/models/types.ts +1 -1
- package/components/common/vm/actions/lib/utils.ts +2 -10
- package/components/common/wizards/datastore/add/Add.vue +1 -23
- package/components/common/wizards/datastore/add/lib/validations.ts +1 -1
- package/components/common/wizards/datastore/add/steps/_kerberosAuthentication/KerberosAuthentication.vue +6 -6
- package/components/common/wizards/datastore/add/steps/_local/createName/CreateName.vue +1 -1
- package/components/common/wizards/datastore/add/steps/_nfsVersion/NfsVersion.vue +1 -4
- package/components/common/wizards/datastore/add/steps/_nfsVersion/lib/config/versionOptions.ts +1 -0
- package/components/common/wizards/datastore/add/steps/_partitionConfiguration/PartitionConfiguration.vue +5 -5
- package/components/common/wizards/datastore/add/steps/_partitionConfiguration/sizeGraphic/sizeGraphic.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/DeletePopover.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/ServersList.vue +9 -9
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/config/serversListConfig.ts +10 -7
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/config/tableKeys.ts +1 -1
- package/components/common/wizards/datastore/add/steps/readyComplete/ReadyCompleteOld.vue +2 -5
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +3 -3
- package/components/common/wizards/network/add/Add.vue +25 -25
- package/components/common/wizards/network/add/lib/models/types.ts +2 -2
- package/components/common/wizards/network/add/mappers/mappers.ts +1 -1
- package/components/common/wizards/network/add/modals/SelectNetwork.vue +3 -1
- package/components/common/wizards/network/add/modals/SelectStandardSwitch.vue +3 -1
- package/components/common/wizards/network/add/modals/SelectSwitch.vue +3 -1
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +4 -4
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +13 -9
- package/components/common/wizards/network/add/steps/PhysicalAdapter.vue +1 -1
- package/components/common/wizards/network/add/steps/PortProperties.vue +13 -9
- package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +15 -15
- package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +1 -1
- package/components/common/wizards/vm/migrate/select/computeResource/lib/config/tabsPannel.ts +1 -0
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +2 -2
- package/components/common/wizards/vm/migrate/select/network/table/network/Network.vue +2 -2
- package/components/common/wizards/vm/migrate/select/priority/Priority.vue +1 -1
- package/components/common/wizards/vm/migrate/select/storage/Storage.vue +2 -2
- package/components/common/wizards/vm/migrate/select/storage/configure/batch/Batch.vue +2 -2
- package/components/common/wizards/vm/migrate/select/storage/configure/batch/table/Table.vue +2 -2
- package/components/common/wizards/vm/migrate/select/storage/configure/disk/Disk.vue +1 -1
- package/components/common/wizards/vm/migrate/select/storage/configure/disk/table/Table.vue +3 -3
- package/components/common/wizards/vm/migrate/select/storage/lib/config/tabsPannel.ts +1 -0
- package/components/common/wizards/vm/migrate/select/targetServer/lib/config/tabsPannel.ts +1 -0
- package/components/common/wizards/vm/migrate/select/targetServer/lib/models/types.ts +1 -1
- package/components/common/wizards/vm/migrate/select/targetServer/saved/Saved.vue +1 -1
- package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +3 -3
- package/lib/models/interfaces.ts +1 -0
- package/lib/models/store/host/interfaces.ts +1 -1
- package/lib/models/store/network/interfaces.ts +1 -1
- package/lib/models/store/storage/interfaces.ts +1 -1
- package/lib/models/store/vm/interfaces.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section
|
|
3
|
-
class="select-input clr-flex-row"
|
|
4
|
-
:class="props.disabled && 'disable'"
|
|
5
|
-
>
|
|
2
|
+
<section :class="['select-input clr-flex-row', props.disabled && 'disable']">
|
|
6
3
|
<label
|
|
7
4
|
v-if="props.label"
|
|
8
5
|
:for="`${props.testId}-target`"
|
|
@@ -11,8 +8,10 @@
|
|
|
11
8
|
{{ props.label }}
|
|
12
9
|
</label>
|
|
13
10
|
<div
|
|
14
|
-
class="
|
|
15
|
-
|
|
11
|
+
:class="[
|
|
12
|
+
'select-input__inner mt-0 clr-form-control clr-col-8',
|
|
13
|
+
!props.defaultStyle && 'select',
|
|
14
|
+
]"
|
|
16
15
|
>
|
|
17
16
|
<select
|
|
18
17
|
:id="`${props.testId}-target`"
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
<div
|
|
4
4
|
v-for="radio in options"
|
|
5
5
|
:key="radio.value"
|
|
6
|
-
class="select-option__inner radio"
|
|
7
|
-
:class="radio.disabled && 'disabled'"
|
|
6
|
+
:class="['select-option__inner radio', radio.disabled && 'disabled']"
|
|
8
7
|
>
|
|
9
8
|
<div :class="['select-option__container', radio.value]">
|
|
10
9
|
<div class="select-option__wrapper">
|
|
@@ -12,9 +11,9 @@
|
|
|
12
11
|
:id="radio.label"
|
|
13
12
|
v-model="selectedType"
|
|
14
13
|
:data-id="radio.testId"
|
|
15
|
-
type="radio"
|
|
16
14
|
:value="radio.value"
|
|
17
15
|
:disabled="radio.disabled"
|
|
16
|
+
type="radio"
|
|
18
17
|
/>
|
|
19
18
|
<label :for="radio.label">{{ radio.label }}</label>
|
|
20
19
|
|
|
@@ -113,7 +112,7 @@ const selectedType = computed<string | number>({
|
|
|
113
112
|
.radio {
|
|
114
113
|
margin-bottom: 5px;
|
|
115
114
|
//&:nth-child(2) {
|
|
116
|
-
|
|
115
|
+
//margin-top: 10px; // ?
|
|
117
116
|
//}
|
|
118
117
|
&.disabled {
|
|
119
118
|
opacity: 0.7;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="['language-dropdown', props.size]">
|
|
3
3
|
<ui-select
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
v-model="selectedLang"
|
|
5
|
+
:items="itemsLocal"
|
|
6
|
+
:width="props.size === 'md' ? '114px' : '97px'"
|
|
7
|
+
:disabled="props.disabled"
|
|
8
|
+
:size="props.size"
|
|
9
|
+
max-height="inherit"
|
|
10
|
+
test-id="select-language"
|
|
11
|
+
arrow-stroke-width="2.4"
|
|
12
12
|
>
|
|
13
13
|
<template #toggleContent>
|
|
14
14
|
<span class="language-dropdown__icon content-icon"
|
|
15
|
-
|
|
15
|
+
><ui-icon-icon2
|
|
16
16
|
:name="selectedLang?.iconName"
|
|
17
17
|
:height="props.size === 'md' ? '16' : '13'"
|
|
18
18
|
:width="props.size === 'md' ? '24' : '19'"
|
|
19
|
-
|
|
19
|
+
></ui-icon-icon2
|
|
20
20
|
></span>
|
|
21
21
|
{{ selectedLang?.text }}
|
|
22
22
|
</template>
|
|
23
23
|
<template #row="{ item }">
|
|
24
24
|
<span class="language-dropdown__icon dropdown-icon">
|
|
25
25
|
<ui-icon-icon2
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
:name="item.iconName"
|
|
27
|
+
:height="props.size === 'md' ? '16' : '13'"
|
|
28
|
+
:width="props.size === 'md' ? '24' : '19'"
|
|
29
29
|
></ui-icon-icon2>
|
|
30
30
|
</span>
|
|
31
31
|
<span class="ui-item-text">{{ item.text }}</span>
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
|
|
37
37
|
<script lang="ts" setup>
|
|
38
38
|
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
39
|
-
import { findInLocals } from '~/components/common/selectLanguage/lib/utils/utils'
|
|
39
|
+
// import { findInLocals } from '~/components/common/selectLanguage/lib/utils/utils'
|
|
40
40
|
|
|
41
41
|
const props = withDefaults(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
defineProps<{
|
|
43
|
+
normalizeLang: UI_I_Dropdown[]
|
|
44
|
+
modelValue: UI_I_Dropdown
|
|
45
|
+
disabled?: boolean
|
|
46
|
+
width?: string
|
|
47
|
+
size?: 'sm' | 'md'
|
|
48
|
+
}>(),
|
|
49
|
+
{
|
|
50
|
+
disabled: false,
|
|
51
|
+
width: '114px',
|
|
52
|
+
size: 'md',
|
|
53
|
+
}
|
|
54
54
|
)
|
|
55
55
|
|
|
56
56
|
const emits = defineEmits<{
|
|
@@ -67,7 +67,7 @@ const selectedLang = computed<UI_I_Dropdown>({
|
|
|
67
67
|
})
|
|
68
68
|
|
|
69
69
|
const itemsLocal = computed(() => {
|
|
70
|
-
return props.normalizeLang.filter(lang => !lang.disabled)
|
|
70
|
+
return props.normalizeLang.filter((lang) => !lang.disabled)
|
|
71
71
|
})
|
|
72
72
|
</script>
|
|
73
73
|
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
8
|
v-if="!isShow"
|
|
9
|
+
:style="`top: ${y}px;`"
|
|
9
10
|
ref="grab"
|
|
10
11
|
data-id="spice-console-drawer-toggle"
|
|
11
12
|
class="vmw-drawer__open"
|
|
12
|
-
:style="`top: ${y}px;`"
|
|
13
13
|
@click="toggleDrawer"
|
|
14
14
|
>
|
|
15
15
|
<atoms-the-icon name="arrow" class="vmw-drawer__open-icon" />
|
|
@@ -21,8 +21,8 @@ const props = defineProps<{
|
|
|
21
21
|
}>()
|
|
22
22
|
|
|
23
23
|
let rfb: any
|
|
24
|
-
const vmScreen = ref(null)
|
|
25
|
-
const fullScreen = ref(null)
|
|
24
|
+
const vmScreen = ref<any>(null)
|
|
25
|
+
const fullScreen = ref<any>(null)
|
|
26
26
|
const { toggle } = useFullscreen(fullScreen)
|
|
27
27
|
|
|
28
28
|
const connectWS = (): void => {
|
|
@@ -52,7 +52,7 @@ const onSendAltCommand = (): void => {
|
|
|
52
52
|
window.app.sendCtrlAltDelete()
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
const onConsoleScroll = (event): void => {
|
|
55
|
+
const onConsoleScroll = (event: any): void => {
|
|
56
56
|
app.clientGui.setClientOffset(
|
|
57
57
|
app.clientGui.clientOffsetX,
|
|
58
58
|
event.target.scrollTop
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div id="keyboard-draggable"
|
|
2
|
+
<div id="keyboard-draggable" :style="style" ref="draggable" class="draggable">
|
|
3
3
|
<div id="keyboard" class="keyboard">
|
|
4
4
|
<div
|
|
5
5
|
v-for="(row, rowIndex) in keyboardRowsUI"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<script setup lang="ts">
|
|
35
35
|
import { useDraggable } from '@vueuse/core'
|
|
36
36
|
import keyboardRows from '~/components/common/spiceConsole/keyboard/lib/config/keyboardRows'
|
|
37
|
-
import {
|
|
37
|
+
import type { UI_I_KeyboardRowItem } from '~/components/common/spiceConsole/keyboard/lib/models/interfaces'
|
|
38
38
|
|
|
39
39
|
const draggable = ref<HTMLElement | null>(null)
|
|
40
40
|
|
|
@@ -68,9 +68,9 @@ const isShiftPressedWithoutCapsLock = computed<boolean>(
|
|
|
68
68
|
() => !isCapsLockOn.value && isShiftPressed.value
|
|
69
69
|
)
|
|
70
70
|
|
|
71
|
-
const keyboardRowsUI = computed<
|
|
72
|
-
keyboardRows.map((row:
|
|
73
|
-
row.map((keyItem:
|
|
71
|
+
const keyboardRowsUI = computed<UI_I_KeyboardRowItem[][]>(() =>
|
|
72
|
+
keyboardRows.map((row: UI_I_KeyboardRowItem[]) =>
|
|
73
|
+
row.map((keyItem: UI_I_KeyboardRowItem) => {
|
|
74
74
|
let rusKeyUI = ''
|
|
75
75
|
let keyUI = ''
|
|
76
76
|
|
|
@@ -177,7 +177,7 @@ const takeOnAlt = (): void => {
|
|
|
177
177
|
|
|
178
178
|
const generateEvent = (
|
|
179
179
|
event: string,
|
|
180
|
-
key:
|
|
180
|
+
key: UI_I_KeyboardRowItem,
|
|
181
181
|
withOriginal: boolean,
|
|
182
182
|
type?: string
|
|
183
183
|
): void => {
|
|
@@ -204,7 +204,7 @@ const generateEvent = (
|
|
|
204
204
|
const keyEvent = (
|
|
205
205
|
event: string,
|
|
206
206
|
isCodeEvent: boolean,
|
|
207
|
-
key:
|
|
207
|
+
key: UI_I_KeyboardRowItem
|
|
208
208
|
): void => {
|
|
209
209
|
if (isCodeEvent) {
|
|
210
210
|
if (event !== 'keyup') {
|
|
@@ -250,7 +250,7 @@ const checkAndOffModifiers = (): void => {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
const onKeyPress = (key:
|
|
253
|
+
const onKeyPress = (key: UI_I_KeyboardRowItem): void => {
|
|
254
254
|
window.app.inputProcess.clientGui.inputManager.input.val('')
|
|
255
255
|
|
|
256
256
|
document.getElementById('inputmanager')?.focus()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { UI_I_KeyboardRowItem } from '~/components/common/spiceConsole/keyboard/lib/models/interfaces'
|
|
2
2
|
|
|
3
|
-
const keyboardRows:
|
|
3
|
+
const keyboardRows: UI_I_KeyboardRowItem[][] = [
|
|
4
4
|
[
|
|
5
5
|
{
|
|
6
6
|
name: 'Esc',
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</template>
|
|
48
48
|
|
|
49
49
|
<script setup lang="ts">
|
|
50
|
-
import { isRtl } from 'bfg-uikit/lib/config/trl'
|
|
50
|
+
import { isRtl } from '~/node_modules/bfg-uikit/lib/config/trl'
|
|
51
51
|
|
|
52
52
|
const props = withDefaults(
|
|
53
53
|
defineProps<{
|
|
@@ -70,7 +70,7 @@ const emits = defineEmits<{
|
|
|
70
70
|
(event: 'dragend', value: number): void
|
|
71
71
|
}>()
|
|
72
72
|
|
|
73
|
-
const leftPanelStyle = computed(() => {
|
|
73
|
+
const leftPanelStyle = computed<any>(() => {
|
|
74
74
|
let width = `calc(${leftPanelWLocal.value}% - 1.5px)`
|
|
75
75
|
if (isRtl.value) {
|
|
76
76
|
width = `calc(${100 - leftPanelWLocal.value}% - 1.5px)`
|
|
@@ -83,7 +83,7 @@ const leftPanelStyle = computed(() => {
|
|
|
83
83
|
return { width }
|
|
84
84
|
})
|
|
85
85
|
|
|
86
|
-
const rightPanelStyle = computed(() => {
|
|
86
|
+
const rightPanelStyle = computed<any>(() => {
|
|
87
87
|
let width = `calc(${100 - leftPanelWLocal.value}% - 1.5px)`
|
|
88
88
|
if (isRtl.value) {
|
|
89
89
|
width = `calc(${leftPanelWLocal.value}% - 1.5px)`
|
|
@@ -136,12 +136,12 @@ const mouseup = (): void => {
|
|
|
136
136
|
emits('dragend', leftPanelWLocal.value)
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
let mousemove = (
|
|
139
|
+
let mousemove = (event: MouseEvent): void => {
|
|
140
140
|
if (!isGrab.value) return
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
event.preventDefault()
|
|
143
143
|
isDrag.value = true
|
|
144
|
-
doDrag(
|
|
144
|
+
doDrag(event.clientX)
|
|
145
145
|
}
|
|
146
146
|
mousemove = useThrottle(mousemove)
|
|
147
147
|
|
|
@@ -161,7 +161,7 @@ const doDrag = (clientX: number): void => {
|
|
|
161
161
|
|
|
162
162
|
const elementId = `horizontal${useUniqueId()}`
|
|
163
163
|
|
|
164
|
-
const keydown = (
|
|
164
|
+
const keydown = (event: KeyboardEvent): void => {
|
|
165
165
|
if (!isFocus.value) return
|
|
166
166
|
|
|
167
167
|
const gutter = document.getElementById(`gutter-${elementId}`)
|
|
@@ -170,10 +170,10 @@ const keydown = (e: KeyboardEvent): void => {
|
|
|
170
170
|
|
|
171
171
|
const gutterLeft = ~~(gutter.getBoundingClientRect().left + 1.5)
|
|
172
172
|
|
|
173
|
-
if (
|
|
173
|
+
if (event.keyCode === 39) {
|
|
174
174
|
doDrag(gutterLeft + 10)
|
|
175
175
|
}
|
|
176
|
-
if (
|
|
176
|
+
if (event.keyCode === 37) {
|
|
177
177
|
doDrag(gutterLeft - 10)
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script setup lang="ts">
|
|
46
|
-
import { isRtl } from 'bfg-uikit/lib/config/trl'
|
|
46
|
+
import { isRtl } from '~/node_modules/bfg-uikit/lib/config/trl'
|
|
47
47
|
|
|
48
48
|
const props = withDefaults(
|
|
49
49
|
defineProps<{
|
|
@@ -66,7 +66,7 @@ const emits = defineEmits<{
|
|
|
66
66
|
(event: 'dragend', value: number): void
|
|
67
67
|
}>()
|
|
68
68
|
|
|
69
|
-
const leftPanelStyle = computed(() => {
|
|
69
|
+
const leftPanelStyle = computed<any>(() => {
|
|
70
70
|
let width = `calc(${leftPanelW.value}% - 1.5px)`
|
|
71
71
|
if (isRtl.value) {
|
|
72
72
|
width = `calc(${100 - leftPanelW.value}% - 1.5px)`
|
|
@@ -78,7 +78,7 @@ const leftPanelStyle = computed(() => {
|
|
|
78
78
|
|
|
79
79
|
return { width }
|
|
80
80
|
})
|
|
81
|
-
const rightPanelStyle = computed(() => {
|
|
81
|
+
const rightPanelStyle = computed<any>(() => {
|
|
82
82
|
let width = `calc(${100 - leftPanelW.value}% - 1.5px)`
|
|
83
83
|
if (isRtl.value) {
|
|
84
84
|
width = `calc(${leftPanelW.value}% - 1.5px)`
|
|
@@ -129,12 +129,12 @@ const mouseup = (): void => {
|
|
|
129
129
|
emits('dragend', leftPanelW.value)
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
let mousemove = (
|
|
132
|
+
let mousemove = (event: MouseEvent): void => {
|
|
133
133
|
if (!isGrab.value) return
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
event.preventDefault()
|
|
136
136
|
isDrag.value = true
|
|
137
|
-
doDrag(
|
|
137
|
+
doDrag(event.clientX)
|
|
138
138
|
}
|
|
139
139
|
mousemove = useThrottle(mousemove)
|
|
140
140
|
|
|
@@ -154,7 +154,7 @@ const doDrag = (clientX: number): void => {
|
|
|
154
154
|
|
|
155
155
|
const elementId = `horizontal${useUniqueId()}`
|
|
156
156
|
|
|
157
|
-
const keydown = (
|
|
157
|
+
const keydown = (event: KeyboardEvent): void => {
|
|
158
158
|
if (!isFocus.value) return
|
|
159
159
|
|
|
160
160
|
const gutter = document.getElementById(`gutter-${elementId}`)
|
|
@@ -163,10 +163,10 @@ const keydown = (e: KeyboardEvent): void => {
|
|
|
163
163
|
|
|
164
164
|
const gutterLeft = ~~(gutter.getBoundingClientRect().left + 1.5)
|
|
165
165
|
|
|
166
|
-
if (
|
|
166
|
+
if (event.keyCode === 39) {
|
|
167
167
|
doDrag(gutterLeft + 10)
|
|
168
168
|
}
|
|
169
|
-
if (
|
|
169
|
+
if (event.keyCode === 37) {
|
|
170
170
|
doDrag(gutterLeft - 10)
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -39,18 +39,21 @@
|
|
|
39
39
|
<script setup lang="ts">
|
|
40
40
|
import type { UI_I_SplitVerticalStyle } from '~/components/common/split/vertical/lib/models/interfaces'
|
|
41
41
|
|
|
42
|
-
const props = withDefaults(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
const props = withDefaults(
|
|
43
|
+
defineProps<{
|
|
44
|
+
parentElementSelector: string
|
|
45
|
+
topPanelHForce?: string
|
|
46
|
+
topPanelH?: number
|
|
47
|
+
topPanelMinHeight?: number
|
|
48
|
+
bottomPanelMinHeight?: number
|
|
49
|
+
}>(),
|
|
50
|
+
{
|
|
51
|
+
topPanelMinHeight: 200, // 200px
|
|
52
|
+
bottomPanelMinHeight: 200, // 200px
|
|
53
|
+
topPanelHForce: '',
|
|
54
|
+
topPanelH: undefined,
|
|
55
|
+
}
|
|
56
|
+
)
|
|
54
57
|
const emits = defineEmits<{
|
|
55
58
|
(event: 'dragend', value: number): void
|
|
56
59
|
}>()
|
|
@@ -96,15 +99,15 @@ const mouseup = (): void => {
|
|
|
96
99
|
|
|
97
100
|
emits('dragend', topPanelH.value)
|
|
98
101
|
}
|
|
99
|
-
let mousemove = (
|
|
102
|
+
let mousemove = (event: MouseEvent): void => {
|
|
100
103
|
if (!isGrab.value) {
|
|
101
104
|
return
|
|
102
105
|
}
|
|
103
106
|
|
|
104
|
-
|
|
107
|
+
event.preventDefault()
|
|
105
108
|
isDrag.value = true
|
|
106
109
|
|
|
107
|
-
doDrag(
|
|
110
|
+
doDrag(event.clientY)
|
|
108
111
|
}
|
|
109
112
|
mousemove = useThrottle(mousemove)
|
|
110
113
|
|
|
@@ -125,7 +128,7 @@ const doDrag = (clientY: number): void => {
|
|
|
125
128
|
}
|
|
126
129
|
|
|
127
130
|
const elementId = `vertical${useUniqueId()}`
|
|
128
|
-
const keydown = (
|
|
131
|
+
const keydown = (event: KeyboardEvent): void => {
|
|
129
132
|
if (!isFocus.value) return
|
|
130
133
|
|
|
131
134
|
const gutter = document.getElementById(`gutter-${elementId}`)
|
|
@@ -134,10 +137,10 @@ const keydown = (e: KeyboardEvent): void => {
|
|
|
134
137
|
|
|
135
138
|
const gutterTop = ~~(gutter.getBoundingClientRect().top + 1.5)
|
|
136
139
|
|
|
137
|
-
if (
|
|
140
|
+
if (event.keyCode === 40) {
|
|
138
141
|
doDrag(gutterTop + 10)
|
|
139
142
|
}
|
|
140
|
-
if (
|
|
143
|
+
if (event.keyCode === 38) {
|
|
141
144
|
doDrag(gutterTop - 10)
|
|
142
145
|
}
|
|
143
146
|
}
|
|
@@ -156,5 +159,4 @@ onUnmounted(() => {
|
|
|
156
159
|
})
|
|
157
160
|
</script>
|
|
158
161
|
|
|
159
|
-
<style scoped lang="scss">
|
|
160
|
-
</style>
|
|
162
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
:id="props.elementId"
|
|
4
|
+
:class="['fill-parent vertical', { dragging: props.isDrag }]"
|
|
5
|
+
>
|
|
6
|
+
<div :style="props.topPanelStyle" class="vui-horizontal-panel firstPanel">
|
|
4
7
|
<div class="vui-horizontal-panel sec-nav-container">
|
|
5
8
|
<slot name="firstPanel" />
|
|
6
9
|
</div>
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
<div class="gutter-vertical-handler"></div>
|
|
18
21
|
</div>
|
|
19
22
|
|
|
20
|
-
<div
|
|
23
|
+
<div :style="props.bottomPanelStyle" class="secondPanel bottom">
|
|
21
24
|
<slot name="secondPanel" />
|
|
22
25
|
</div>
|
|
23
26
|
</div>
|
|
@@ -37,12 +40,12 @@ const props = defineProps<{
|
|
|
37
40
|
|
|
38
41
|
<style>
|
|
39
42
|
:root {
|
|
40
|
-
--gutter-handler-active-bg-color: #
|
|
41
|
-
--second-panel-box-shadow: 0 4px 20px 0 #
|
|
43
|
+
--gutter-handler-active-bg-color: #ffffffcc;
|
|
44
|
+
--second-panel-box-shadow: 0 4px 20px 0 #0000001f;
|
|
42
45
|
}
|
|
43
46
|
:root.dark-theme {
|
|
44
|
-
--gutter-handler-active-bg-color: #
|
|
45
|
-
--second-panel-box-shadow: 0 4px 20px 0 #
|
|
47
|
+
--gutter-handler-active-bg-color: #213444cc;
|
|
48
|
+
--second-panel-box-shadow: 0 4px 20px 0 #0000001f, 0 -1px 12px 0 #00000014;
|
|
46
49
|
}
|
|
47
50
|
</style>
|
|
48
51
|
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
:id="props.elementId"
|
|
4
|
+
:class="['fill-parent vertical', { dragging: props.isDrag }]"
|
|
5
|
+
>
|
|
6
|
+
<div :style="props.topPanelStyle" class="vui-horizontal-panel firstPanel">
|
|
4
7
|
<div class="vui-horizontal-panel sec-nav-container">
|
|
5
8
|
<slot name="firstPanel" />
|
|
6
9
|
</div>
|
|
7
10
|
</div>
|
|
8
11
|
|
|
9
12
|
<div
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
:id="`gutter-${props.elementId}`"
|
|
14
|
+
class="gutter gutter-vertical"
|
|
15
|
+
tabindex="0"
|
|
16
|
+
@mousedown="isGrab = true"
|
|
17
|
+
@focus="isFocus = true"
|
|
18
|
+
@blur="isFocus = false"
|
|
16
19
|
>
|
|
17
20
|
<div class="gutter-vertical-handler"></div>
|
|
18
21
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<atoms-alert
|
|
3
3
|
v-show="props.notifications.length"
|
|
4
|
+
:items="props.notifications"
|
|
4
5
|
test-id="summary-notification"
|
|
5
6
|
status="alert-warning"
|
|
6
|
-
:items="props.notifications"
|
|
7
7
|
hide-close-icon
|
|
8
8
|
class="notification"
|
|
9
9
|
>
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script setup lang="ts">
|
|
32
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
33
|
+
|
|
32
34
|
const props = defineProps<{
|
|
33
35
|
notifications: string[]
|
|
34
36
|
}>()
|
|
35
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
36
37
|
|
|
37
38
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
38
39
|
</script>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="notification-content">
|
|
3
3
|
<ui-button
|
|
4
|
+
:class="{ active: isShowNotificationDropdown }"
|
|
4
5
|
test-id="notification-toggle"
|
|
5
6
|
is-without-sizes
|
|
6
7
|
is-without-height
|
|
7
8
|
variant="text"
|
|
8
|
-
:class="{ active: isShowNotificationDropdown }"
|
|
9
9
|
@click="isShowNotificationDropdown = !isShowNotificationDropdown"
|
|
10
10
|
>
|
|
11
11
|
<ui-icon name="notification" width="18" height="18" />
|
|
12
12
|
</ui-button>
|
|
13
13
|
<ui-popup-window
|
|
14
14
|
v-model="isShowNotificationDropdown"
|
|
15
|
+
:margin-between-trigger="8"
|
|
15
16
|
elem-id="notification-toggle"
|
|
16
17
|
width="382px"
|
|
17
18
|
max-height="410px"
|
|
18
|
-
:margin-between-trigger="8"
|
|
19
19
|
>
|
|
20
20
|
<div class="notification-body">
|
|
21
21
|
<div class="top-content grid items-center">
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
<div class="tabs-content">
|
|
33
33
|
<ui-tabs
|
|
34
34
|
v-model="selectedTab"
|
|
35
|
-
test-id="notifications-tab-list"
|
|
36
35
|
:tabs="tabs"
|
|
36
|
+
test-id="notifications-tab-list"
|
|
37
37
|
type="underline"
|
|
38
38
|
>
|
|
39
39
|
<template #default="{ item }">
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
@click="onToggleActionDropdown(key)"
|
|
78
78
|
>
|
|
79
79
|
<atoms-the-icon
|
|
80
|
-
name="ellipsis-vertical"
|
|
81
80
|
:class="['action-icon', { active: actionsIsShow[key] }]"
|
|
81
|
+
name="ellipsis-vertical"
|
|
82
82
|
/>
|
|
83
83
|
</ui-button>
|
|
84
84
|
<template v-if="item.actions.length">
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<!-- :style="{ 'padding-right': rightSpace + 'px' }"-->
|
|
3
3
|
<div
|
|
4
4
|
:id="id"
|
|
5
|
-
class="btn-group"
|
|
6
5
|
:style="{ paddingRight: spaceForCollapseBtn + 'px' }"
|
|
6
|
+
class="btn-group"
|
|
7
7
|
>
|
|
8
8
|
<div v-for="(button, key) in props.actions" :key="button.type">
|
|
9
9
|
<label v-if="button.uploaded" v-development="button.development">
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
<input
|
|
18
18
|
:id="`select-file-button-${key}`"
|
|
19
19
|
:data-id="button.testId"
|
|
20
|
-
type="file"
|
|
21
20
|
:disabled="button.disabled"
|
|
22
21
|
:multiple="button?.multiple || false"
|
|
22
|
+
type="file"
|
|
23
23
|
class="btn-group__file"
|
|
24
24
|
@change="(event) => onSelectFiles(event, button.type, key)"
|
|
25
25
|
/>
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
v-show="collapsedItems.length"
|
|
43
43
|
:test-id="`${props.testId}-item`"
|
|
44
44
|
:items="collapsedItems"
|
|
45
|
-
close-after-click
|
|
46
45
|
class="nav-tabs"
|
|
46
|
+
close-after-click
|
|
47
47
|
@change="onClickButton"
|
|
48
48
|
@select-file="onSelectFiles"
|
|
49
49
|
/>
|
|
@@ -125,7 +125,6 @@ watch(
|
|
|
125
125
|
// { deep: true }
|
|
126
126
|
// )
|
|
127
127
|
|
|
128
|
-
|
|
129
128
|
const spaceForCollapseBtn = ref<number>(65)
|
|
130
129
|
const outputSize = (): void => {
|
|
131
130
|
const el = document.getElementById(id.value)
|
|
@@ -140,6 +140,7 @@ import type {
|
|
|
140
140
|
UI_I_PciDevice,
|
|
141
141
|
} from '~/lib/models/store/vm/interfaces'
|
|
142
142
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
143
|
+
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
143
144
|
import { navItemsFunc } from '~/components/common/vm/actions/common/customizeHardware/lib/config/navItems'
|
|
144
145
|
|
|
145
146
|
const vmName = defineModel<string>('vmName', { required: true })
|
|
@@ -201,7 +202,7 @@ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
|
201
202
|
|
|
202
203
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
203
204
|
|
|
204
|
-
const navItems = computed<
|
|
205
|
+
const navItems = computed<UI_I_CollapseNavItem[]>(() =>
|
|
205
206
|
navItemsFunc(localization.value)
|
|
206
207
|
)
|
|
207
208
|
const selectedNavItemLocal = ref<number>(0)
|