bfg-common 1.4.532 → 1.4.533

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 (129) hide show
  1. package/assets/img/icons/icons-sprite-dark-1.svg +407 -407
  2. package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
  3. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
  5. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  6. package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
  7. package/assets/img/icons/icons-sprite-light-1.svg +407 -407
  8. package/assets/img/icons/icons-sprite-light-2.svg +343 -343
  9. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  10. package/assets/img/icons/icons-sprite-light-4.svg +255 -255
  11. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  12. package/assets/img/icons/icons-sprite-light-6.svg +94 -94
  13. package/assets/localization/local_be.json +3 -1
  14. package/assets/localization/local_en.json +3 -1
  15. package/assets/localization/local_hy.json +3 -1
  16. package/assets/localization/local_kk.json +3 -1
  17. package/assets/localization/local_ru.json +3 -1
  18. package/assets/localization/local_zh.json +3 -1
  19. package/components/atoms/TheIcon3.vue +50 -50
  20. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  21. package/components/atoms/stack/StackBlock.vue +185 -185
  22. package/components/atoms/table/dataGrid/DataGrid.vue +1633 -1633
  23. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
  24. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  25. package/components/common/browse/lib/models/interfaces.ts +5 -5
  26. package/components/common/context/lib/models/interfaces.ts +30 -30
  27. package/components/common/context/recursion/Recursion.vue +86 -86
  28. package/components/common/context/recursion/RecursionNew.vue +199 -199
  29. package/components/common/context/recursion/RecursionOld.vue +213 -213
  30. package/components/common/diagramMain/Header.vue +211 -211
  31. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  32. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  33. package/components/common/diagramMain/lib/models/enums.ts +44 -44
  34. package/components/common/diagramMain/lib/models/types.ts +21 -21
  35. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  36. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  37. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  38. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  39. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  40. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  41. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  42. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  43. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  44. package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
  45. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  46. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  47. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  48. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  49. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  50. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  51. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  52. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
  53. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  54. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  55. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  56. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  57. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  58. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  59. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  60. package/components/common/diagramMain/port/Ports.vue +47 -47
  61. package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
  62. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
  63. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
  64. package/components/common/modals/confirmation/Confirmation.vue +70 -70
  65. package/components/common/spiceConsole/Drawer.vue +30 -9
  66. package/components/common/vm/actions/add/Add.vue +617 -617
  67. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  68. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +267 -267
  69. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +264 -264
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +163 -163
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -74
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  91. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
  92. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
  93. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  94. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  95. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
  96. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  97. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  98. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  99. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  100. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  101. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  102. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  103. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  104. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  105. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  106. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  107. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  108. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  109. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  110. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  111. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  112. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  113. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
  114. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  115. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  116. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  117. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  118. package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
  119. package/components/common/vm/actions/editSettings/EditSettings.vue +214 -214
  120. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +182 -182
  121. package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
  122. package/composables/productNameLocal.ts +30 -30
  123. package/package.json +1 -1
  124. package/plugins/date.ts +233 -233
  125. package/plugins/recursion.ts +311 -311
  126. package/public/spice-console/lib/images/bitmap.js +203 -203
  127. package/public/spice-console/network/spicechannel.js +383 -383
  128. package/store/main/mutations.ts +7 -7
  129. package/store/main/state.ts +7 -7
@@ -1,152 +1,152 @@
1
- <template>
2
- <common-main-navigation-panel-new
3
- v-if="props.isNewView"
4
- v-model:main-menu-hovered="mainMenuHovered"
5
- v-model:menu-pined="menuPined"
6
- :main-menu-status="props.mainMenuStatus"
7
- :navigation-items="props.navigationItems"
8
- :parent-status="props.parentStatus"
9
- :disabled-pin="props.disabledPin"
10
- :menu-collapsed="menuCollapsed"
11
- :show-menu="showMenu"
12
- @toggle="emits('toggle', $event)"
13
- @collapse-menu="collapseMenu"
14
- @change-menu-pin="changeMenuPin"
15
- @hide-main-menu="hideMainMenu"
16
- />
17
- <common-main-navigation-panel-old
18
- v-else
19
- v-model:main-menu-hovered="mainMenuHovered"
20
- v-model:menu-pined="menuPined"
21
- :main-menu-status="props.mainMenuStatus"
22
- :navigation-items="props.navigationItems"
23
- :parent-status="props.parentStatus"
24
- :disabled-pin="props.disabledPin"
25
- :menu-collapsed="menuCollapsed"
26
- :show-menu="showMenu"
27
- @toggle="emits('toggle', $event)"
28
- @collapse-menu="collapseMenu"
29
- @change-menu-pin="changeMenuPin"
30
- @hide-main-menu="hideMainMenu"
31
- />
32
- </template>
33
-
34
- <script setup lang="ts">
35
- import type { UI_I_NavigationItem } from '~/components/common/mainNavigationPanel/lib/models/interfaces'
36
- import type { UI_T_ParentStatus } from '~/components/common/mainNavigationPanel/lib/models/types'
37
-
38
- const props = withDefaults(
39
- defineProps<{
40
- mainMenuStatus: boolean
41
- navigationItems: UI_I_NavigationItem[][]
42
- parentStatus: UI_T_ParentStatus
43
- disabledPin: boolean
44
- isNewView?: boolean
45
- }>(),
46
- {
47
- isNewView: false,
48
- }
49
- )
50
-
51
- const emits = defineEmits<{
52
- (event: 'toggle', value: boolean): void
53
- }>()
54
-
55
- const { $store }: any = useNuxtApp()
56
-
57
- const route = useRoute()
58
-
59
- const showMenu = computed<boolean>(
60
- () => props.mainMenuStatus || menuPined.value
61
- )
62
-
63
- const menuPined = ref<boolean>(false)
64
- const changeMenuPin = (): void => {
65
- useLocalStorage('menuPined', menuPined.value)
66
- }
67
- const setMenuPined = (): void => {
68
- menuPined.value = props.disabledPin ? false : useLocalStorage('menuPined')
69
- }
70
- watch(
71
- () => props.disabledPin,
72
- () => {
73
- setMenuPined()
74
- },
75
- { immediate: true }
76
- )
77
-
78
- const menuCollapsed = ref<boolean>(false)
79
- const collapseMenu = (): void => {
80
- menuCollapsed.value = !menuCollapsed.value
81
- useLocalStorage('menuCollapsed', menuCollapsed.value)
82
- }
83
-
84
- const mainMenuHovered = ref<boolean>(false)
85
-
86
- const clickWindow = (event: Event): void => {
87
- const target = event.target as any
88
- if (
89
- menuPined.value ||
90
- mainMenuHovered.value ||
91
- target.className.baseVal?.includes('menu-icon') ||
92
- target.className.baseVal?.includes('clr-i-outline')
93
- ) {
94
- return
95
- }
96
-
97
- emits('toggle', false)
98
- }
99
-
100
- const mountedReady = ref<boolean>(false)
101
- onMounted(() => {
102
- mountedReady.value = true
103
- window.addEventListener('click', clickWindow)
104
- })
105
-
106
- onUnmounted(() => {
107
- window.removeEventListener('click', clickWindow)
108
- })
109
-
110
- watch(
111
- [mountedReady, (): any => route.fullPath, (): any => props.parentStatus],
112
- ([newValue1, newValue2, newValue3]: [
113
- boolean,
114
- any,
115
- UI_T_ParentStatus
116
- ]): void => {
117
- if (newValue3 === 1) return
118
-
119
- const name = location.pathname.split('/')[1]
120
-
121
- if (!newValue1 || name === 'auth') return
122
-
123
- setSidebarOptions()
124
- useLocalStorage('navigationHistoryRoute', newValue2)
125
- },
126
- { immediate: true, deep: true }
127
- )
128
-
129
- const setSidebarOptions = (): void => {
130
- setMenuPined()
131
- menuCollapsed.value = useLocalStorage('menuCollapsed')
132
-
133
- if (menuPined.value) {
134
- emits('toggle', true)
135
- }
136
- }
137
-
138
- const hideMainMenu = (): void => {
139
- if (menuPined.value) return
140
- emits('toggle', false)
141
- }
142
-
143
- watch(
144
- menuPined,
145
- (newValue) => {
146
- $store.dispatch('main/A_MENU_PINED', newValue)
147
- },
148
- { immediate: true }
149
- )
150
- </script>
151
-
152
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <common-main-navigation-panel-new
3
+ v-if="props.isNewView"
4
+ v-model:main-menu-hovered="mainMenuHovered"
5
+ v-model:menu-pined="menuPined"
6
+ :main-menu-status="props.mainMenuStatus"
7
+ :navigation-items="props.navigationItems"
8
+ :parent-status="props.parentStatus"
9
+ :disabled-pin="props.disabledPin"
10
+ :menu-collapsed="menuCollapsed"
11
+ :show-menu="showMenu"
12
+ @toggle="emits('toggle', $event)"
13
+ @collapse-menu="collapseMenu"
14
+ @change-menu-pin="changeMenuPin"
15
+ @hide-main-menu="hideMainMenu"
16
+ />
17
+ <common-main-navigation-panel-old
18
+ v-else
19
+ v-model:main-menu-hovered="mainMenuHovered"
20
+ v-model:menu-pined="menuPined"
21
+ :main-menu-status="props.mainMenuStatus"
22
+ :navigation-items="props.navigationItems"
23
+ :parent-status="props.parentStatus"
24
+ :disabled-pin="props.disabledPin"
25
+ :menu-collapsed="menuCollapsed"
26
+ :show-menu="showMenu"
27
+ @toggle="emits('toggle', $event)"
28
+ @collapse-menu="collapseMenu"
29
+ @change-menu-pin="changeMenuPin"
30
+ @hide-main-menu="hideMainMenu"
31
+ />
32
+ </template>
33
+
34
+ <script setup lang="ts">
35
+ import type { UI_I_NavigationItem } from '~/components/common/mainNavigationPanel/lib/models/interfaces'
36
+ import type { UI_T_ParentStatus } from '~/components/common/mainNavigationPanel/lib/models/types'
37
+
38
+ const props = withDefaults(
39
+ defineProps<{
40
+ mainMenuStatus: boolean
41
+ navigationItems: UI_I_NavigationItem[][]
42
+ parentStatus: UI_T_ParentStatus
43
+ disabledPin: boolean
44
+ isNewView?: boolean
45
+ }>(),
46
+ {
47
+ isNewView: false,
48
+ }
49
+ )
50
+
51
+ const emits = defineEmits<{
52
+ (event: 'toggle', value: boolean): void
53
+ }>()
54
+
55
+ const { $store }: any = useNuxtApp()
56
+
57
+ const route = useRoute()
58
+
59
+ const showMenu = computed<boolean>(
60
+ () => props.mainMenuStatus || menuPined.value
61
+ )
62
+
63
+ const menuPined = ref<boolean>(false)
64
+ const changeMenuPin = (): void => {
65
+ useLocalStorage('menuPined', menuPined.value)
66
+ }
67
+ const setMenuPined = (): void => {
68
+ menuPined.value = props.disabledPin ? false : useLocalStorage('menuPined')
69
+ }
70
+ watch(
71
+ () => props.disabledPin,
72
+ () => {
73
+ setMenuPined()
74
+ },
75
+ { immediate: true }
76
+ )
77
+
78
+ const menuCollapsed = ref<boolean>(false)
79
+ const collapseMenu = (): void => {
80
+ menuCollapsed.value = !menuCollapsed.value
81
+ useLocalStorage('menuCollapsed', menuCollapsed.value)
82
+ }
83
+
84
+ const mainMenuHovered = ref<boolean>(false)
85
+
86
+ const clickWindow = (event: Event): void => {
87
+ const target = event.target as any
88
+ if (
89
+ menuPined.value ||
90
+ mainMenuHovered.value ||
91
+ target.className.baseVal?.includes('menu-icon') ||
92
+ target.className.baseVal?.includes('clr-i-outline')
93
+ ) {
94
+ return
95
+ }
96
+
97
+ emits('toggle', false)
98
+ }
99
+
100
+ const mountedReady = ref<boolean>(false)
101
+ onMounted(() => {
102
+ mountedReady.value = true
103
+ window.addEventListener('click', clickWindow)
104
+ })
105
+
106
+ onUnmounted(() => {
107
+ window.removeEventListener('click', clickWindow)
108
+ })
109
+
110
+ watch(
111
+ [mountedReady, (): any => route.fullPath, (): any => props.parentStatus],
112
+ ([newValue1, newValue2, newValue3]: [
113
+ boolean,
114
+ any,
115
+ UI_T_ParentStatus
116
+ ]): void => {
117
+ if (newValue3 === 1) return
118
+
119
+ const name = location.pathname.split('/')[1]
120
+
121
+ if (!newValue1 || name === 'auth') return
122
+
123
+ setSidebarOptions()
124
+ useLocalStorage('navigationHistoryRoute', newValue2)
125
+ },
126
+ { immediate: true, deep: true }
127
+ )
128
+
129
+ const setSidebarOptions = (): void => {
130
+ setMenuPined()
131
+ menuCollapsed.value = useLocalStorage('menuCollapsed')
132
+
133
+ if (menuPined.value) {
134
+ emits('toggle', true)
135
+ }
136
+ }
137
+
138
+ const hideMainMenu = (): void => {
139
+ if (menuPined.value) return
140
+ emits('toggle', false)
141
+ }
142
+
143
+ watch(
144
+ menuPined,
145
+ (newValue) => {
146
+ $store.dispatch('main/A_MENU_PINED', newValue)
147
+ },
148
+ { immediate: true }
149
+ )
150
+ </script>
151
+
152
+ <style scoped lang="scss"></style>
@@ -1,70 +1,70 @@
1
- <template>
2
- <common-modals-confirmation-new
3
- v-if="isNewViewLocal"
4
- :headline="props.headline"
5
- :description="props.description"
6
- :modal-texts="props.modalTexts"
7
- :test-id="props.testId"
8
- @hide-modal="emits('hide-modal')"
9
- @confirm="emits('confirm')"
10
- />
11
- <common-modals-confirmation-old
12
- v-else
13
- :description="props.description"
14
- :headline="props.headline"
15
- :sub-title="props.subTitle"
16
- :test-id="props.testId"
17
- :type="props.type"
18
- :loading="props.loading"
19
- :variant-text-button="props.variantTextButton"
20
- :width="props.width"
21
- @hide-modal="emits('hide-modal')"
22
- @confirm="emits('confirm')"
23
- />
24
- </template>
25
-
26
- <script setup lang="ts">
27
- import type { UI_I_ModalTexts } from 'bfg-uikit/components/ui/modal/models/interfaces'
28
-
29
- const props = withDefaults(
30
- defineProps<{
31
- isNewView?: boolean
32
- description?: string
33
- headline?: string
34
- subTitle?: string
35
- testId?: string
36
- type?: 'confirm' | 'remove'
37
- loading?: boolean
38
- variantTextButton?: 'ok' | 'confirm' | 'remove'
39
- width?: string
40
- modalTexts?: UI_I_ModalTexts
41
- }>(),
42
- {
43
- isNewView: undefined,
44
- testId: 'common-confirmation',
45
- headline: '',
46
- subTitle: '',
47
- type: 'confirm',
48
- description: '',
49
- variantTextButton: 'ok',
50
- width: '580px',
51
- loading: false,
52
- modalTexts: {
53
- resetToDefault: 'Reset To Default',
54
- button1: 'Cancel',
55
- button2: 'Confirm',
56
- },
57
- }
58
- )
59
- const emits = defineEmits<{
60
- (event: 'hide-modal'): void
61
- (event: 'confirm'): void
62
- }>()
63
-
64
- const { $store }: any = useNuxtApp()
65
- const isNewViewLocal = computed<boolean>(
66
- () => props.isNewView ?? $store.getters['main/getIsNewView']
67
- )
68
- </script>
69
-
70
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <common-modals-confirmation-new
3
+ v-if="isNewViewLocal"
4
+ :headline="props.headline"
5
+ :description="props.description"
6
+ :modal-texts="props.modalTexts"
7
+ :test-id="props.testId"
8
+ @hide-modal="emits('hide-modal')"
9
+ @confirm="emits('confirm')"
10
+ />
11
+ <common-modals-confirmation-old
12
+ v-else
13
+ :description="props.description"
14
+ :headline="props.headline"
15
+ :sub-title="props.subTitle"
16
+ :test-id="props.testId"
17
+ :type="props.type"
18
+ :loading="props.loading"
19
+ :variant-text-button="props.variantTextButton"
20
+ :width="props.width"
21
+ @hide-modal="emits('hide-modal')"
22
+ @confirm="emits('confirm')"
23
+ />
24
+ </template>
25
+
26
+ <script setup lang="ts">
27
+ import type { UI_I_ModalTexts } from 'bfg-uikit/components/ui/modal/models/interfaces'
28
+
29
+ const props = withDefaults(
30
+ defineProps<{
31
+ isNewView?: boolean
32
+ description?: string
33
+ headline?: string
34
+ subTitle?: string
35
+ testId?: string
36
+ type?: 'confirm' | 'remove'
37
+ loading?: boolean
38
+ variantTextButton?: 'ok' | 'confirm' | 'remove'
39
+ width?: string
40
+ modalTexts?: UI_I_ModalTexts
41
+ }>(),
42
+ {
43
+ isNewView: undefined,
44
+ testId: 'common-confirmation',
45
+ headline: '',
46
+ subTitle: '',
47
+ type: 'confirm',
48
+ description: '',
49
+ variantTextButton: 'ok',
50
+ width: '580px',
51
+ loading: false,
52
+ modalTexts: {
53
+ resetToDefault: 'Reset To Default',
54
+ button1: 'Cancel',
55
+ button2: 'Confirm',
56
+ },
57
+ }
58
+ )
59
+ const emits = defineEmits<{
60
+ (event: 'hide-modal'): void
61
+ (event: 'confirm'): void
62
+ }>()
63
+
64
+ const { $store }: any = useNuxtApp()
65
+ const isNewViewLocal = computed<boolean>(
66
+ () => props.isNewView ?? $store.getters['main/getIsNewView']
67
+ )
68
+ </script>
69
+
70
+ <style scoped lang="scss"></style>
@@ -27,19 +27,35 @@
27
27
  </div>
28
28
 
29
29
  <div class="vmw-drawer-body">
30
- <div
30
+ <button
31
31
  class="vmw-drawer-body__btn animation toggle-fullscreen"
32
32
  data-id="spice-console-drawer-toggle-fullscreen"
33
33
  @click="emits('toggle-fullscreen')"
34
34
  >
35
35
  {{ localization.common.toggleFullscreenMode }}
36
- </div>
37
- <div
36
+ </button>
37
+ <button
38
38
  class="vmw-drawer-body__btn animation toggle-fullscreen"
39
39
  @click="emits('send-alt-command')"
40
40
  >
41
41
  {{ localization.common.sendAltCommand }}
42
- </div>
42
+ </button>
43
+ <label class="vmw-drawer-body__btn animation toggle-fullscreen">
44
+ {{ localization.remoteConsole.uploadFolder }}
45
+ <input
46
+ type="file"
47
+ webkitdirectory
48
+ directory
49
+ multiple
50
+ />
51
+ </label>
52
+ <label class="vmw-drawer-body__btn animation toggle-fullscreen">
53
+ {{ localization.remoteConsole.uploadFiles }}
54
+ <input
55
+ type="file"
56
+ multiple
57
+ />
58
+ </label>
43
59
 
44
60
  <select
45
61
  v-model="codec"
@@ -55,18 +71,18 @@
55
71
  </select>
56
72
 
57
73
  <hr />
58
- <div
74
+ <button
59
75
  class="vmw-drawer-body__btn animation show-keyboard"
60
76
  @click="onToggleKeyboard"
61
77
  >
62
78
  {{ showOrHideKeyboard }}
63
- </div>
79
+ </button>
64
80
  </div>
65
81
 
66
82
  <div class="vmw-drawer-footer">
67
83
  <div class="size-info">
68
- <p class="size-info-text">View size: {{viewSize}}</p>
69
- <p class="size-info-text">Canvas size: {{canvasSize}}</p>
84
+ <p class="size-info-text">View size: {{ viewSize }}</p>
85
+ <p class="size-info-text">Canvas size: {{ canvasSize }}</p>
70
86
  </div>
71
87
  <div id="debug-stream"></div>
72
88
  </div>
@@ -150,7 +166,6 @@ const displaySizeInfo = (): void => {
150
166
  requestAnimationFrame(displaySizeInfo)
151
167
  }
152
168
  displaySizeInfo()
153
-
154
169
  </script>
155
170
  <style lang="scss" scoped>
156
171
  .vmw-drawer {
@@ -232,6 +247,7 @@ displaySizeInfo()
232
247
 
233
248
  & select,
234
249
  &__btn {
250
+ display: block;
235
251
  width: 100%;
236
252
  color: #fff;
237
253
  cursor: pointer;
@@ -241,6 +257,7 @@ displaySizeInfo()
241
257
  border-radius: 5px;
242
258
  text-align: center;
243
259
  margin-bottom: 20px;
260
+ background-color: transparent;
244
261
 
245
262
  &:not(.disable):hover {
246
263
  background-color: #ffffff;
@@ -251,6 +268,10 @@ displaySizeInfo()
251
268
  opacity: 0.5;
252
269
  cursor: not-allowed;
253
270
  }
271
+
272
+ input[type="file"] {
273
+ display: none;
274
+ }
254
275
  }
255
276
 
256
277
  & > hr {