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.
Files changed (175) hide show
  1. package/assets/localization/local_be.json +8 -1
  2. package/assets/localization/local_en.json +8 -1
  3. package/assets/localization/local_hy.json +8 -1
  4. package/assets/localization/local_kk.json +8 -1
  5. package/assets/localization/local_ru.json +8 -3
  6. package/assets/localization/local_zh.json +8 -1
  7. package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +5 -4
  8. package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +5 -4
  9. package/components/common/portlets/customAttributes/Portlet.vue +10 -10
  10. package/components/common/portlets/tag/CreateCategory.vue +10 -10
  11. package/components/common/portlets/tag/Portlet.vue +19 -19
  12. package/components/common/portlets/tag/TagAddNew.vue +8 -8
  13. package/components/common/portlets/tag/lib/config/config.ts +1 -0
  14. package/components/common/resource/progressBlock/ProgressBlock.vue +7 -7
  15. package/components/common/resource/simple/Simple.vue +2 -2
  16. package/components/common/resource/simple/lib/models/enums.ts +1 -1
  17. package/components/common/select/input/Input.vue +5 -6
  18. package/components/common/select/radio/RadioGroup.vue +3 -4
  19. package/components/common/selectLanguage/SelectLanguage.vue +27 -27
  20. package/components/common/spiceConsole/Drawer.vue +1 -1
  21. package/components/common/spiceConsole/SpiceConsole.vue +3 -3
  22. package/components/common/spiceConsole/keyboard/Keyboard.vue +8 -8
  23. package/components/common/spiceConsole/keyboard/lib/config/keyboardRows.ts +2 -2
  24. package/components/common/spiceConsole/keyboard/lib/models/interfaces.ts +1 -1
  25. package/components/common/split/horizontal/HorizontalNew.vue +9 -9
  26. package/components/common/split/horizontal/HorizontalOld.vue +9 -9
  27. package/components/common/split/vertical/Vertical.vue +22 -20
  28. package/components/common/split/vertical/VerticalNew.vue +10 -7
  29. package/components/common/split/vertical/VerticalOld.vue +11 -8
  30. package/components/common/summary/notification/NotificationOld.vue +3 -2
  31. package/components/common/titleBar/titleBarNew/notification/Notification.vue +4 -4
  32. package/components/common/tools/Actions.vue +3 -4
  33. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +2 -1
  34. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +3 -3
  35. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +2 -1
  36. package/components/common/vm/actions/common/customizeHardware/lib/config/navItems.ts +5 -5
  37. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +1 -1
  38. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +2 -2
  39. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +8 -4
  40. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusOld.vue +1 -2
  41. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +2 -2
  42. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +1 -1
  43. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +23 -17
  44. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocketNew.vue +1 -1
  45. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocketOld.vue +1 -1
  46. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/hotPlug/HotPlugNew.vue +1 -1
  47. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/hotPlug/HotPlugOld.vue +7 -6
  48. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +13 -13
  49. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelOld.vue +3 -3
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +1 -1
  51. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesOld.vue +1 -1
  52. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/TooltipNew.vue +2 -2
  53. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +7 -3
  54. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +1 -1
  55. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +14 -16
  56. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugOld.vue +4 -5
  57. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +2 -2
  58. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +1 -1
  59. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/cache/CacheNew.vue +20 -19
  60. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/cache/CacheOld.vue +1 -0
  61. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIopsNew.vue +32 -33
  62. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalNew.vue +1 -0
  63. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +1 -1
  64. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeNew.vue +19 -20
  65. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +2 -2
  66. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +1 -1
  67. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +1 -1
  68. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +2 -2
  69. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/adapterType/AdapterTypeNew.vue +19 -20
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +3 -3
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +3 -3
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +2 -2
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +4 -6
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +2 -4
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +4 -1
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +3 -5
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +1 -1
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +1 -3
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionOld.vue +2 -2
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +1 -1
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerOld.vue +1 -1
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +1 -1
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +2 -2
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +1 -1
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/ModelNew.vue +18 -18
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/ModelOld.vue +1 -1
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysNew.vue +20 -20
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysOld.vue +2 -2
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +1 -1
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryOld.vue +6 -2
  91. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +0 -1
  92. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +1 -1
  93. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +1 -1
  94. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +3 -3
  95. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +12 -6
  96. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +1 -1
  97. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteOld.vue +3 -3
  98. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferOld.vue +4 -4
  99. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +1 -1
  100. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +1 -1
  101. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +1 -1
  102. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +1 -1
  103. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +2 -2
  104. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +1 -4
  105. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +5 -5
  106. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +5 -5
  107. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +1 -1
  108. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +1 -1
  109. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +1 -1
  110. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +28 -29
  111. package/components/common/vm/actions/common/lib/models/types.ts +1 -1
  112. package/components/common/vm/actions/common/select/compatibility/New.vue +2 -2
  113. package/components/common/vm/actions/common/select/computeResource/New.vue +1 -1
  114. package/components/common/vm/actions/common/select/computeResource/Old.vue +1 -1
  115. package/components/common/vm/actions/common/select/computeResource/treeView/Old.vue +8 -5
  116. package/components/common/vm/actions/common/select/createType/Old.vue +1 -1
  117. package/components/common/vm/actions/common/select/name/New.vue +6 -6
  118. package/components/common/vm/actions/common/select/name/Old.vue +1 -1
  119. package/components/common/vm/actions/common/select/storage/Old.vue +3 -3
  120. package/components/common/vm/actions/common/select/storage/new/New.vue +5 -5
  121. package/components/common/vm/actions/common/select/template/Template.vue +1 -1
  122. package/components/common/vm/actions/common/select/template/TemplateTreeView.vue +1 -1
  123. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +1 -1
  124. package/components/common/vm/actions/editSettings/lib/config/modal.ts +6 -4
  125. package/components/common/vm/actions/editSettings/lib/models/types.ts +4 -4
  126. package/components/common/vm/actions/editSettings/lib/utils.ts +25 -29
  127. package/components/common/vm/actions/editSettings/new/New.vue +4 -4
  128. package/components/common/vm/actions/lib/models/types.ts +1 -1
  129. package/components/common/vm/actions/lib/utils.ts +2 -10
  130. package/components/common/wizards/datastore/add/Add.vue +1 -23
  131. package/components/common/wizards/datastore/add/lib/validations.ts +1 -1
  132. package/components/common/wizards/datastore/add/steps/_kerberosAuthentication/KerberosAuthentication.vue +6 -6
  133. package/components/common/wizards/datastore/add/steps/_local/createName/CreateName.vue +1 -1
  134. package/components/common/wizards/datastore/add/steps/_nfsVersion/NfsVersion.vue +1 -4
  135. package/components/common/wizards/datastore/add/steps/_nfsVersion/lib/config/versionOptions.ts +1 -0
  136. package/components/common/wizards/datastore/add/steps/_partitionConfiguration/PartitionConfiguration.vue +5 -5
  137. package/components/common/wizards/datastore/add/steps/_partitionConfiguration/sizeGraphic/sizeGraphic.vue +1 -1
  138. package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/DeletePopover.vue +1 -1
  139. package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/ServersList.vue +9 -9
  140. package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/config/serversListConfig.ts +10 -7
  141. package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/config/tableKeys.ts +1 -1
  142. package/components/common/wizards/datastore/add/steps/readyComplete/ReadyCompleteOld.vue +2 -5
  143. package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +3 -3
  144. package/components/common/wizards/network/add/Add.vue +25 -25
  145. package/components/common/wizards/network/add/lib/models/types.ts +2 -2
  146. package/components/common/wizards/network/add/mappers/mappers.ts +1 -1
  147. package/components/common/wizards/network/add/modals/SelectNetwork.vue +3 -1
  148. package/components/common/wizards/network/add/modals/SelectStandardSwitch.vue +3 -1
  149. package/components/common/wizards/network/add/modals/SelectSwitch.vue +3 -1
  150. package/components/common/wizards/network/add/steps/ConnectionSettings.vue +4 -4
  151. package/components/common/wizards/network/add/steps/IpFourSettings.vue +13 -9
  152. package/components/common/wizards/network/add/steps/PhysicalAdapter.vue +1 -1
  153. package/components/common/wizards/network/add/steps/PortProperties.vue +13 -9
  154. package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +15 -15
  155. package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +1 -1
  156. package/components/common/wizards/vm/migrate/select/computeResource/lib/config/tabsPannel.ts +1 -0
  157. package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +2 -2
  158. package/components/common/wizards/vm/migrate/select/network/table/network/Network.vue +2 -2
  159. package/components/common/wizards/vm/migrate/select/priority/Priority.vue +1 -1
  160. package/components/common/wizards/vm/migrate/select/storage/Storage.vue +2 -2
  161. package/components/common/wizards/vm/migrate/select/storage/configure/batch/Batch.vue +2 -2
  162. package/components/common/wizards/vm/migrate/select/storage/configure/batch/table/Table.vue +2 -2
  163. package/components/common/wizards/vm/migrate/select/storage/configure/disk/Disk.vue +1 -1
  164. package/components/common/wizards/vm/migrate/select/storage/configure/disk/table/Table.vue +3 -3
  165. package/components/common/wizards/vm/migrate/select/storage/lib/config/tabsPannel.ts +1 -0
  166. package/components/common/wizards/vm/migrate/select/targetServer/lib/config/tabsPannel.ts +1 -0
  167. package/components/common/wizards/vm/migrate/select/targetServer/lib/models/types.ts +1 -1
  168. package/components/common/wizards/vm/migrate/select/targetServer/saved/Saved.vue +1 -1
  169. package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +3 -3
  170. package/lib/models/interfaces.ts +1 -0
  171. package/lib/models/store/host/interfaces.ts +1 -1
  172. package/lib/models/store/network/interfaces.ts +1 -1
  173. package/lib/models/store/storage/interfaces.ts +1 -1
  174. package/lib/models/store/vm/interfaces.ts +1 -1
  175. 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="select-input__inner mt-0 clr-form-control clr-col-8"
15
- :class="!props.defaultStyle && 'select'"
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
- //margin-top: 10px; // ?
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
- v-model="selectedLang"
5
- test-id="select-language"
6
- :items="itemsLocal"
7
- :width="props.size === 'md' ? '114px' : '97px'"
8
- arrow-stroke-width="2.4"
9
- :disabled="props.disabled"
10
- :size="props.size"
11
- max-height="inherit"
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
- ><ui-icon-icon2
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
- ></ui-icon-icon2
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
- :name="item.iconName"
27
- :height="props.size === 'md' ? '16' : '13'"
28
- :width="props.size === 'md' ? '24' : '19'"
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
- 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
- }
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" ref="draggable" class="draggable" :style="style">
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 { I_KeyboardRowItem } from '~/components/common/spiceConsole/keyboard/lib/models/interfaces'
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<I_KeyboardRowItem[][]>(() =>
72
- keyboardRows.map((row: I_KeyboardRowItem[]) =>
73
- row.map((keyItem: I_KeyboardRowItem) => {
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: I_KeyboardRowItem,
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: I_KeyboardRowItem
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: I_KeyboardRowItem): void => {
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 { I_KeyboardRowItem } from '~/components/common/spiceConsole/keyboard/lib/models/interfaces'
1
+ import type { UI_I_KeyboardRowItem } from '~/components/common/spiceConsole/keyboard/lib/models/interfaces'
2
2
 
3
- const keyboardRows: I_KeyboardRowItem[][] = [
3
+ const keyboardRows: UI_I_KeyboardRowItem[][] = [
4
4
  [
5
5
  {
6
6
  name: 'Esc',
@@ -1,4 +1,4 @@
1
- export interface I_KeyboardRowItem {
1
+ export interface UI_I_KeyboardRowItem {
2
2
  name: string
3
3
  key: string | number
4
4
  value: string
@@ -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 = (e: MouseEvent): void => {
139
+ let mousemove = (event: MouseEvent): void => {
140
140
  if (!isGrab.value) return
141
141
 
142
- e.preventDefault()
142
+ event.preventDefault()
143
143
  isDrag.value = true
144
- doDrag(e.clientX)
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 = (e: KeyboardEvent): void => {
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 (e.keyCode === 39) {
173
+ if (event.keyCode === 39) {
174
174
  doDrag(gutterLeft + 10)
175
175
  }
176
- if (e.keyCode === 37) {
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 = (e: MouseEvent): void => {
132
+ let mousemove = (event: MouseEvent): void => {
133
133
  if (!isGrab.value) return
134
134
 
135
- e.preventDefault()
135
+ event.preventDefault()
136
136
  isDrag.value = true
137
- doDrag(e.clientX)
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 = (e: KeyboardEvent): void => {
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 (e.keyCode === 39) {
166
+ if (event.keyCode === 39) {
167
167
  doDrag(gutterLeft + 10)
168
168
  }
169
- if (e.keyCode === 37) {
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(defineProps<{
43
- parentElementSelector: string
44
- topPanelHForce?: string
45
- topPanelH?: number
46
- topPanelMinHeight?: number
47
- bottomPanelMinHeight?: number
48
- }>(), {
49
- topPanelMinHeight: 200, // 200px
50
- bottomPanelMinHeight: 200, // 200px
51
- topPanelHForce: '',
52
- topPanelH: undefined,
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 = (e: MouseEvent): void => {
102
+ let mousemove = (event: MouseEvent): void => {
100
103
  if (!isGrab.value) {
101
104
  return
102
105
  }
103
106
 
104
- e.preventDefault()
107
+ event.preventDefault()
105
108
  isDrag.value = true
106
109
 
107
- doDrag(e.clientY)
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 = (e: KeyboardEvent): void => {
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 (e.keyCode === 40) {
140
+ if (event.keyCode === 40) {
138
141
  doDrag(gutterTop + 10)
139
142
  }
140
- if (e.keyCode === 38) {
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 :id="props.elementId" :class="['fill-parent vertical', { dragging: props.isDrag }]">
3
- <div class="vui-horizontal-panel firstPanel" :style="props.topPanelStyle">
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 class="secondPanel bottom" :style="props.bottomPanelStyle">
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: #FFFFFFCC;
41
- --second-panel-box-shadow: 0 4px 20px 0 #0000001F;
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: #213444CC;
45
- --second-panel-box-shadow: 0 4px 20px 0 #0000001F, 0 -1px 12px 0 #00000014;
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 :id="props.elementId" :class="['fill-parent vertical', { dragging: props.isDrag }]">
3
- <div class="vui-horizontal-panel firstPanel" :style="props.topPanelStyle">
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
- :id="`gutter-${props.elementId}`"
11
- class="gutter gutter-vertical"
12
- tabindex="0"
13
- @mousedown="isGrab = true"
14
- @focus="isFocus = true"
15
- @blur="isFocus = false"
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<UI_I_TabItem[]>(() =>
205
+ const navItems = computed<UI_I_CollapseNavItem[]>(() =>
205
206
  navItemsFunc(localization.value)
206
207
  )
207
208
  const selectedNavItemLocal = ref<number>(0)