bfg-common 1.4.561 → 1.4.562
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/img/icons/icons-sprite-dark-1.svg +407 -407
- package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
- package/assets/img/icons/icons-sprite-light-1.svg +407 -407
- package/assets/img/icons/icons-sprite-light-2.svg +343 -343
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +255 -255
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +94 -94
- package/assets/localization/local_be.json +5 -1
- package/assets/localization/local_en.json +5 -1
- package/assets/localization/local_hy.json +5 -1
- package/assets/localization/local_kk.json +5 -1
- package/assets/localization/local_ru.json +5 -1
- package/assets/localization/local_zh.json +5 -1
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/table/dataGrid/DataGrid.vue +1633 -1633
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
- package/components/common/browse/Browse.vue +3 -3
- package/components/common/browse/BrowseNew.vue +237 -237
- package/components/common/browse/BrowseOld.vue +217 -217
- package/components/common/browse/blocks/contents/Files.vue +35 -35
- package/components/common/browse/blocks/contents/FilesOld.vue +70 -70
- package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +92 -92
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +199 -199
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
- package/components/common/modals/confirmation/Confirmation.vue +74 -70
- package/components/common/modals/confirmation/ConfirmationNew.vue +10 -61
- package/components/common/modals/confirmation/ConfirmationOld.vue +10 -10
- package/components/common/spiceConsole/Drawer.vue +370 -370
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/add/Add.vue +619 -619
- package/components/common/vm/actions/clone/Clone.vue +2 -2
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +270 -270
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +266 -266
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +163 -163
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -74
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
- package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
- package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
- package/components/common/vm/actions/confirm/Confirm.vue +8 -15
- package/components/common/vm/actions/editSettings/EditSettings.vue +217 -217
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +184 -184
- package/components/common/vm/actions/editSettings/new/New.vue +178 -178
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +87 -87
- package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
- package/composables/productNameLocal.ts +30 -30
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
- package/store/main/mutations.ts +7 -7
- 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,74 @@
|
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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 #content>
|
|
25
|
+
<slot name="content" />
|
|
26
|
+
</template>
|
|
27
|
+
</common-modals-confirmation-old>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
|
|
32
|
+
|
|
33
|
+
const props = withDefaults(
|
|
34
|
+
defineProps<{
|
|
35
|
+
isNewView?: boolean
|
|
36
|
+
description?: string
|
|
37
|
+
headline?: string
|
|
38
|
+
subTitle?: string
|
|
39
|
+
testId?: string
|
|
40
|
+
type?: 'confirm' | 'remove'
|
|
41
|
+
loading?: boolean
|
|
42
|
+
variantTextButton?: 'ok' | 'confirm' | 'remove'
|
|
43
|
+
width?: string
|
|
44
|
+
modalTexts?: UI_I_ModalTexts
|
|
45
|
+
}>(),
|
|
46
|
+
{
|
|
47
|
+
isNewView: undefined,
|
|
48
|
+
testId: 'common-confirmation',
|
|
49
|
+
headline: '',
|
|
50
|
+
subTitle: '',
|
|
51
|
+
type: 'confirm',
|
|
52
|
+
description: '',
|
|
53
|
+
variantTextButton: 'ok',
|
|
54
|
+
width: '580px',
|
|
55
|
+
loading: false,
|
|
56
|
+
modalTexts: {
|
|
57
|
+
resetToDefault: 'Reset To Default',
|
|
58
|
+
button1: 'Cancel',
|
|
59
|
+
button2: 'Confirm',
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
const emits = defineEmits<{
|
|
64
|
+
(event: 'hide-modal'): void
|
|
65
|
+
(event: 'confirm'): void
|
|
66
|
+
}>()
|
|
67
|
+
|
|
68
|
+
const { $store }: any = useNuxtApp()
|
|
69
|
+
const isNewViewLocal = computed<boolean>(
|
|
70
|
+
() => props.isNewView ?? $store.getters['main/getIsNewView']
|
|
71
|
+
)
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<template #header>
|
|
12
|
-
<div class="justify-between flex w-full">
|
|
13
|
-
<span></span>
|
|
14
|
-
|
|
15
|
-
<ui-icon name="info-status" width="48px" height="48px" />
|
|
16
|
-
<ui-icon
|
|
17
|
-
name="close"
|
|
18
|
-
width="24"
|
|
19
|
-
height="24"
|
|
20
|
-
class="pointer"
|
|
21
|
-
@click="onHide"
|
|
22
|
-
/>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
<template #content>
|
|
26
|
-
<h4 class="confirm-title">
|
|
27
|
-
{{ props.headline }}
|
|
28
|
-
</h4>
|
|
29
|
-
<p class="confirm-description">
|
|
30
|
-
{{ props.description }}
|
|
31
|
-
</p>
|
|
32
|
-
</template>
|
|
33
|
-
<template #footerLeftContent>
|
|
34
|
-
<span></span>
|
|
35
|
-
</template>
|
|
36
|
-
</ui-modal>
|
|
2
|
+
<ui-popup
|
|
3
|
+
:test-id="props.testId"
|
|
4
|
+
icon-name="info-status"
|
|
5
|
+
:title="props.headline"
|
|
6
|
+
:message="props.description"
|
|
7
|
+
:texts="modalTextsLocal"
|
|
8
|
+
@submit="onSubmit"
|
|
9
|
+
@hide="onHide"
|
|
10
|
+
></ui-popup>
|
|
37
11
|
</template>
|
|
38
12
|
|
|
39
13
|
<script setup lang="ts">
|
|
@@ -60,29 +34,4 @@ const onSubmit = (): void => {
|
|
|
60
34
|
}
|
|
61
35
|
</script>
|
|
62
36
|
|
|
63
|
-
<style scoped lang="scss">
|
|
64
|
-
.modal-footer-container,
|
|
65
|
-
:deep(.modal-footer-container) {
|
|
66
|
-
justify-content: center;
|
|
67
|
-
}
|
|
68
|
-
.modal-footer-transparent-block,
|
|
69
|
-
:deep(.modal-footer-transparent-block) {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.confirm-title {
|
|
74
|
-
font-size: 20px;
|
|
75
|
-
font-weight: 500;
|
|
76
|
-
line-height: 24.2px;
|
|
77
|
-
color: #4d5d69;
|
|
78
|
-
margin-bottom: 8px;
|
|
79
|
-
text-align: center;
|
|
80
|
-
}
|
|
81
|
-
.confirm-description {
|
|
82
|
-
font-size: 14px;
|
|
83
|
-
font-weight: 400;
|
|
84
|
-
line-height: 16.94px;
|
|
85
|
-
color: #9da6ad;
|
|
86
|
-
text-align: center;
|
|
87
|
-
}
|
|
88
|
-
</style>
|
|
37
|
+
<style scoped lang="scss"></style>
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
@hide="onHideModal"
|
|
10
10
|
>
|
|
11
11
|
<template #modalBody>
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/>
|
|
12
|
+
<div class="confirm-modal__body">
|
|
13
|
+
<atoms-the-icon
|
|
14
|
+
name="exclamation-triangle"
|
|
15
|
+
class="confirm-modal__icon"
|
|
16
|
+
/>
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
<p class="confirm-modal__text">
|
|
19
|
+
<slot name="content">
|
|
20
20
|
{{ props.description }}
|
|
21
|
-
</
|
|
22
|
-
</
|
|
23
|
-
</
|
|
21
|
+
</slot>
|
|
22
|
+
</p>
|
|
23
|
+
</div>
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<template #modalFooter>
|