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.
Files changed (149) 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 +5 -1
  14. package/assets/localization/local_en.json +5 -1
  15. package/assets/localization/local_hy.json +5 -1
  16. package/assets/localization/local_kk.json +5 -1
  17. package/assets/localization/local_ru.json +5 -1
  18. package/assets/localization/local_zh.json +5 -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/Browse.vue +3 -3
  25. package/components/common/browse/BrowseNew.vue +237 -237
  26. package/components/common/browse/BrowseOld.vue +217 -217
  27. package/components/common/browse/blocks/contents/Files.vue +35 -35
  28. package/components/common/browse/blocks/contents/FilesOld.vue +70 -70
  29. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +92 -92
  30. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  31. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  32. package/components/common/browse/lib/models/interfaces.ts +5 -5
  33. package/components/common/context/lib/models/interfaces.ts +30 -30
  34. package/components/common/context/recursion/Recursion.vue +86 -86
  35. package/components/common/context/recursion/RecursionNew.vue +199 -199
  36. package/components/common/context/recursion/RecursionOld.vue +213 -213
  37. package/components/common/diagramMain/Header.vue +211 -211
  38. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  39. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  40. package/components/common/diagramMain/lib/models/enums.ts +44 -44
  41. package/components/common/diagramMain/lib/models/types.ts +21 -21
  42. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  43. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  44. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  45. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  46. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  47. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  48. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  49. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  50. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  51. package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
  52. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  53. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  54. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  55. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  56. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  57. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  58. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  59. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
  60. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  61. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  62. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  63. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  64. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  65. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  66. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  67. package/components/common/diagramMain/port/Ports.vue +47 -47
  68. package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
  69. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
  70. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
  71. package/components/common/modals/confirmation/Confirmation.vue +74 -70
  72. package/components/common/modals/confirmation/ConfirmationNew.vue +10 -61
  73. package/components/common/modals/confirmation/ConfirmationOld.vue +10 -10
  74. package/components/common/spiceConsole/Drawer.vue +370 -370
  75. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  76. package/components/common/vm/actions/add/Add.vue +619 -619
  77. package/components/common/vm/actions/clone/Clone.vue +2 -2
  78. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  79. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +270 -270
  80. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +266 -266
  81. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +2 -2
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +3 -3
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +3 -3
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +3 -3
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +2 -2
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +163 -163
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
  91. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
  92. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  93. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  94. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  95. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  96. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -74
  97. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  98. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  99. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  100. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  101. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
  102. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
  103. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
  104. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
  105. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  106. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  107. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  108. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
  109. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
  110. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  111. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  112. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
  113. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  114. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  115. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  116. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  117. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  118. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  119. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  120. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  121. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  122. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  123. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  124. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  125. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  126. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  127. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  128. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  129. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  130. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
  131. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  132. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  133. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  134. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  135. package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
  136. package/components/common/vm/actions/confirm/Confirm.vue +8 -15
  137. package/components/common/vm/actions/editSettings/EditSettings.vue +217 -217
  138. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +184 -184
  139. package/components/common/vm/actions/editSettings/new/New.vue +178 -178
  140. package/components/common/vm/actions/editSettings/new/Skeleton.vue +87 -87
  141. package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
  142. package/composables/productNameLocal.ts +30 -30
  143. package/package.json +2 -2
  144. package/plugins/date.ts +233 -233
  145. package/plugins/recursion.ts +311 -311
  146. package/public/spice-console/lib/images/bitmap.js +203 -203
  147. package/public/spice-console/network/spicechannel.js +383 -383
  148. package/store/main/mutations.ts +7 -7
  149. 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
- </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 #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
- <ui-modal
3
- show
4
- :test-id="props.testId"
5
- size="sm"
6
- width="480px"
7
- :texts="modalTextsLocal"
8
- @hide="onHide"
9
- @submit="onSubmit"
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
- <slot name="content">
13
- <div class="confirm-modal__body">
14
- <atoms-the-icon
15
- name="exclamation-triangle"
16
- class="confirm-modal__icon"
17
- />
12
+ <div class="confirm-modal__body">
13
+ <atoms-the-icon
14
+ name="exclamation-triangle"
15
+ class="confirm-modal__icon"
16
+ />
18
17
 
19
- <p class="confirm-modal__text">
18
+ <p class="confirm-modal__text">
19
+ <slot name="content">
20
20
  {{ props.description }}
21
- </p>
22
- </div>
23
- </slot>
21
+ </slot>
22
+ </p>
23
+ </div>
24
24
  </template>
25
25
 
26
26
  <template #modalFooter>