bfg-common 1.4.778 → 1.4.779

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 (138) hide show
  1. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  2. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  3. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  5. package/assets/localization/local_be.json +1 -1
  6. package/assets/localization/local_en.json +1 -1
  7. package/assets/localization/local_hy.json +1 -1
  8. package/assets/localization/local_kk.json +1 -1
  9. package/assets/localization/local_ru.json +1 -1
  10. package/assets/localization/local_zh.json +1 -1
  11. package/assets/scss/clarity/local_ar.json +1 -1
  12. package/assets/scss/common/normalize.scss +361 -361
  13. package/components/atoms/TheIcon3.vue +50 -50
  14. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  15. package/components/atoms/stack/StackBlock.vue +185 -185
  16. package/components/atoms/table/dataGrid/DataGrid.vue +1703 -1703
  17. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
  18. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +91 -91
  19. package/components/common/browse/BrowseNew.vue +237 -237
  20. package/components/common/browse/BrowseOld.vue +217 -217
  21. package/components/common/browse/blocks/contents/Files.vue +37 -37
  22. package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
  23. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
  24. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  25. package/components/common/context/Context.vue +111 -111
  26. package/components/common/context/lib/models/interfaces.ts +30 -30
  27. package/components/common/context/recursion/Recursion.vue +87 -87
  28. package/components/common/context/recursion/RecursionNew.vue +237 -237
  29. package/components/common/context/recursion/RecursionOld.vue +227 -227
  30. package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
  31. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
  32. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +151 -151
  33. package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +300 -300
  34. package/components/common/modals/confirmByInput/ConfirmByInput.vue +206 -206
  35. package/components/common/modals/unsavedChanges/UnsavedChanges.vue +56 -56
  36. package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +250 -250
  37. package/components/common/pages/home/StatusContent.vue +49 -49
  38. package/components/common/pages/home/headline/Headline.vue +44 -44
  39. package/components/common/pages/home/headline/HeadlineNew.vue +71 -71
  40. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  41. package/components/common/pages/home/widgets/Widgets.vue +49 -49
  42. package/components/common/pages/home/widgets/WidgetsNew.vue +86 -86
  43. package/components/common/pages/home/widgets/WidgetsOld.vue +34 -34
  44. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  45. package/components/common/pages/home/widgets/hosts/HostsNew.vue +100 -100
  46. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  47. package/components/common/pages/home/widgets/services/lib/config/config.ts +108 -108
  48. package/components/common/pages/home/widgets/vms/Vms.vue +26 -26
  49. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  50. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  51. package/components/common/pages/packages/Packages.vue +208 -208
  52. package/components/common/recursionTree/RecursionTree.vue +223 -223
  53. package/components/common/select/button/ButtonDropdown.vue +108 -108
  54. package/components/common/spiceConsole/Drawer.vue +370 -370
  55. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  56. package/components/common/split/horizontal/HorizontalNew.vue +376 -376
  57. package/components/common/split/horizontal/HorizontalOld.vue +337 -337
  58. package/components/common/split/vertical/Vertical.vue +160 -160
  59. package/components/common/vm/actions/add/Add.vue +621 -621
  60. package/components/common/vm/actions/clone/Clone.vue +639 -639
  61. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  62. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +271 -271
  63. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +271 -271
  64. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +174 -174
  65. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
  66. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +117 -117
  67. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
  68. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
  69. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +70 -70
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +338 -338
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +357 -357
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +56 -56
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +281 -281
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +84 -84
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  91. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  92. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  93. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +41 -41
  94. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +81 -81
  95. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
  96. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  97. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  98. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +30 -30
  99. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +104 -104
  100. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +112 -112
  101. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  102. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  103. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  104. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  105. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  106. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  107. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  108. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  109. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  110. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  111. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  112. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  113. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  114. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  115. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  116. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  117. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  118. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  119. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +102 -102
  120. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +94 -94
  121. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  122. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  123. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  124. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  125. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  126. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  127. package/components/common/wizards/datastore/add/lib/config/steps.ts +138 -138
  128. package/composables/productNameLocal.ts +30 -30
  129. package/composables/useAppVersion.ts +21 -21
  130. package/package.json +1 -1
  131. package/plugins/date.ts +233 -233
  132. package/plugins/recursion.ts +311 -311
  133. package/public/spice-console/lib/images/bitmap.js +203 -203
  134. package/public/spice-console/network/spicechannel.js +383 -383
  135. package/public/spice-console-minify/run.min.js +4 -4
  136. package/store/main/mutations.ts +7 -7
  137. package/store/main/state.ts +7 -7
  138. package/store/tasks/mappers/recentTasks.ts +64 -64
@@ -1,227 +1,227 @@
1
- <template>
2
- <ul class="context-wrap">
3
- <template v-if="props.isLoading">
4
- <atoms-loader-pre-loader
5
- id="loader"
6
- class="absolute-center context-menu__loading"
7
- :show="true"
8
- />
9
- </template>
10
- <li
11
- v-for="(item, key) in props.items"
12
- :key="key"
13
- :class="[
14
- 'menu-item',
15
- { disabled: item.disabled || isLoading },
16
- { 'item-header': item.isHeader },
17
- { 'has-border-top': item.hasBorderTop },
18
- ]"
19
- @mouseenter="emits('toggle-items', [item, true, $event])"
20
- @mouseleave="emits('toggle-items', [item, false, $event])"
21
- >
22
- <span
23
- class="context-link"
24
- :style="item.style"
25
- :data-id="`${item.testId}-context-link`"
26
- @mousedown="emits('select-item', item)"
27
- >
28
- <span :class="['context-icon', item.iconClassName]" />
29
- <span class="menu-item-text">{{ item.name }}</span>
30
- <span v-if="item.items.length" class="arrow-icon" />
31
- <span v-if="item.shortcut" class="shortcut">{{ item.shortcut }}</span>
32
- </span>
33
-
34
- <div class="context-children">
35
- <common-context-recursion
36
- v-show="item.isShowItems"
37
- :action-loading="props.actionLoading"
38
- :class="[{ 'child-show': item.isShowItems }]"
39
- :items="item.items"
40
- @select-item="emits('select-item', $event)"
41
- />
42
- </div>
43
- </li>
44
- </ul>
45
- </template>
46
-
47
- <script setup lang="ts">
48
- import type { UI_I_ContextMenuItem } from '~/components/common/context/lib/models/interfaces'
49
- import type { I_HTMLLiElement } from '~/components/common/context/recursion/lib/models/interfaces'
50
-
51
- const props = defineProps<{
52
- items: UI_I_ContextMenuItem[]
53
- actionLoading: string | null
54
- isLoading: boolean
55
- testId?: string
56
- }>()
57
-
58
- const emits = defineEmits<{
59
- (event: 'select-item', value: UI_I_ContextMenuItem): void
60
- (
61
- event: 'toggle-items',
62
- value: [UI_I_ContextMenuItem, boolean, I_HTMLLiElement]
63
- ): void
64
- }>()
65
- </script>
66
-
67
- <style>
68
- :root {
69
- --context-menu-hover-bg-color: #e8e8e8;
70
- --context-menu-border-color: #949494;
71
- --context-menu-inset-border-color: #d4d5d6;
72
- --context-menu-item-header-color: #eceff2;
73
- --context-menu-hover-border-color: #666;
74
-
75
- /*rtl*/
76
- --context-menu-wrap-transform: none;
77
- --context-menu-wrap-transform-left: translateX(-100%);
78
- --context-menu-wrap-left: 0;
79
- --context-menu-wrap-right: unset;
80
- }
81
- :root.dark-theme {
82
- --context-menu-hover-bg-color: #324f61;
83
- --context-menu-border-color: #495865;
84
- --context-menu-inset-border-color: #485764;
85
- --context-menu-item-header-color: #29414e;
86
- --context-menu-hover-border-color: #fff;
87
- }
88
-
89
- :root[dir='rtl'] {
90
- --context-menu-wrap-transform: translateX(100%);
91
- --context-menu-wrap-transform-left: translateX(0);
92
- --context-menu-wrap-left: unset;
93
- --context-menu-wrap-right: 100%;
94
- }
95
- </style>
96
- <style scoped lang="scss">
97
- .loader-wrapper {
98
- width: 100%;
99
- height: 100%;
100
- z-index: 100;
101
- }
102
-
103
- .context-menu__loading {
104
- :deep(.spinner) {
105
- width: 45px;
106
- height: 45px;
107
- min-width: 45px;
108
- min-height: 45px;
109
- z-index: 1000;
110
- }
111
- }
112
- .context-wrap {
113
- width: auto;
114
- max-width: 400px;
115
- background: var(--global-bg-color);
116
- border-radius: 0;
117
- color: #333;
118
- border: 1px solid var(--context-menu-border-color);
119
- user-select: none;
120
- list-style: none;
121
- max-height: 100vh;
122
- overflow-y: auto;
123
-
124
- .menu-item {
125
- position: relative;
126
- color: #565656;
127
- border-bottom: 1px solid transparent;
128
- cursor: pointer;
129
- padding: 5px 0 3px;
130
-
131
- &.has-border-top {
132
- border-top: 1px solid var(--context-menu-inset-border-color);
133
- }
134
-
135
- &.item-header {
136
- font-size: 11px;
137
- background-color: var(--context-menu-item-header-color);
138
- cursor: default;
139
- }
140
- &:not(.item-header):not(.disabled):hover {
141
- background-color: var(--context-menu-hover-bg-color);
142
- color: #454545;
143
- border-bottom: 1px solid var(--context-menu-hover-border-color);
144
- }
145
- &.disabled {
146
- opacity: 0.5;
147
- user-select: none;
148
- cursor: default;
149
- }
150
- &.left {
151
- :deep(.context-children) {
152
- left: var(--context-menu-wrap-left);
153
- right: var(--context-menu-wrap-right);
154
-
155
- .context-wrap {
156
- transform: var(--context-menu-wrap-transform-left);
157
- left: auto;
158
- }
159
- }
160
- }
161
-
162
- .context-link {
163
- position: relative;
164
- overflow: hidden;
165
- text-overflow: ellipsis;
166
- white-space: nowrap;
167
- display: flex;
168
- align-items: center;
169
- user-select: none;
170
- padding: 3px 20px 4px 10px;
171
-
172
- .menu-item-text {
173
- flex: 1 1 0;
174
- }
175
-
176
- .context-icon {
177
- display: inline-block;
178
- margin: -2px 4px 0 0;
179
- vertical-align: middle;
180
- width: 18px;
181
- height: 18px;
182
- }
183
-
184
- .arrow-icon {
185
- position: absolute;
186
- top: 50%;
187
- margin-top: -8px;
188
- right: 4px;
189
- background-image: url('assets/img/icons/sprite.png');
190
- display: inline-block;
191
- width: 16px;
192
- height: 16px;
193
- overflow: hidden;
194
- background-repeat: no-repeat;
195
- font-size: 0;
196
- line-height: 0;
197
- text-align: center;
198
- transform: rotate(90deg);
199
- }
200
-
201
- .shortcut {
202
- padding-left: 10px;
203
- }
204
- }
205
-
206
- .context-children {
207
- position: absolute;
208
- top: 0;
209
- left: 100%;
210
-
211
- .context-wrap {
212
- position: fixed;
213
- transform: var(--context-menu-wrap-transform);
214
- }
215
- }
216
- }
217
- }
218
- .context-menu__loading {
219
- :deep(.spinner) {
220
- width: 45px;
221
- height: 45px;
222
- min-width: 45px;
223
- min-height: 45px;
224
- z-index: 1000;
225
- }
226
- }
227
- </style>
1
+ <template>
2
+ <ul class="context-wrap">
3
+ <template v-if="props.isLoading">
4
+ <atoms-loader-pre-loader
5
+ id="loader"
6
+ class="absolute-center context-menu__loading"
7
+ :show="true"
8
+ />
9
+ </template>
10
+ <li
11
+ v-for="(item, key) in props.items"
12
+ :key="key"
13
+ :class="[
14
+ 'menu-item',
15
+ { disabled: item.disabled || isLoading },
16
+ { 'item-header': item.isHeader },
17
+ { 'has-border-top': item.hasBorderTop },
18
+ ]"
19
+ @mouseenter="emits('toggle-items', [item, true, $event])"
20
+ @mouseleave="emits('toggle-items', [item, false, $event])"
21
+ >
22
+ <span
23
+ class="context-link"
24
+ :style="item.style"
25
+ :data-id="`${item.testId}-context-link`"
26
+ @mousedown="emits('select-item', item)"
27
+ >
28
+ <span :class="['context-icon', item.iconClassName]" />
29
+ <span class="menu-item-text">{{ item.name }}</span>
30
+ <span v-if="item.items.length" class="arrow-icon" />
31
+ <span v-if="item.shortcut" class="shortcut">{{ item.shortcut }}</span>
32
+ </span>
33
+
34
+ <div class="context-children">
35
+ <common-context-recursion
36
+ v-show="item.isShowItems"
37
+ :action-loading="props.actionLoading"
38
+ :class="[{ 'child-show': item.isShowItems }]"
39
+ :items="item.items"
40
+ @select-item="emits('select-item', $event)"
41
+ />
42
+ </div>
43
+ </li>
44
+ </ul>
45
+ </template>
46
+
47
+ <script setup lang="ts">
48
+ import type { UI_I_ContextMenuItem } from '~/components/common/context/lib/models/interfaces'
49
+ import type { I_HTMLLiElement } from '~/components/common/context/recursion/lib/models/interfaces'
50
+
51
+ const props = defineProps<{
52
+ items: UI_I_ContextMenuItem[]
53
+ actionLoading: string | null
54
+ isLoading: boolean
55
+ testId?: string
56
+ }>()
57
+
58
+ const emits = defineEmits<{
59
+ (event: 'select-item', value: UI_I_ContextMenuItem): void
60
+ (
61
+ event: 'toggle-items',
62
+ value: [UI_I_ContextMenuItem, boolean, I_HTMLLiElement]
63
+ ): void
64
+ }>()
65
+ </script>
66
+
67
+ <style>
68
+ :root {
69
+ --context-menu-hover-bg-color: #e8e8e8;
70
+ --context-menu-border-color: #949494;
71
+ --context-menu-inset-border-color: #d4d5d6;
72
+ --context-menu-item-header-color: #eceff2;
73
+ --context-menu-hover-border-color: #666;
74
+
75
+ /*rtl*/
76
+ --context-menu-wrap-transform: none;
77
+ --context-menu-wrap-transform-left: translateX(-100%);
78
+ --context-menu-wrap-left: 0;
79
+ --context-menu-wrap-right: unset;
80
+ }
81
+ :root.dark-theme {
82
+ --context-menu-hover-bg-color: #324f61;
83
+ --context-menu-border-color: #495865;
84
+ --context-menu-inset-border-color: #485764;
85
+ --context-menu-item-header-color: #29414e;
86
+ --context-menu-hover-border-color: #fff;
87
+ }
88
+
89
+ :root[dir='rtl'] {
90
+ --context-menu-wrap-transform: translateX(100%);
91
+ --context-menu-wrap-transform-left: translateX(0);
92
+ --context-menu-wrap-left: unset;
93
+ --context-menu-wrap-right: 100%;
94
+ }
95
+ </style>
96
+ <style scoped lang="scss">
97
+ .loader-wrapper {
98
+ width: 100%;
99
+ height: 100%;
100
+ z-index: 100;
101
+ }
102
+
103
+ .context-menu__loading {
104
+ :deep(.spinner) {
105
+ width: 45px;
106
+ height: 45px;
107
+ min-width: 45px;
108
+ min-height: 45px;
109
+ z-index: 1000;
110
+ }
111
+ }
112
+ .context-wrap {
113
+ width: auto;
114
+ max-width: 400px;
115
+ background: var(--global-bg-color);
116
+ border-radius: 0;
117
+ color: #333;
118
+ border: 1px solid var(--context-menu-border-color);
119
+ user-select: none;
120
+ list-style: none;
121
+ max-height: 100vh;
122
+ overflow-y: auto;
123
+
124
+ .menu-item {
125
+ position: relative;
126
+ color: #565656;
127
+ border-bottom: 1px solid transparent;
128
+ cursor: pointer;
129
+ padding: 5px 0 3px;
130
+
131
+ &.has-border-top {
132
+ border-top: 1px solid var(--context-menu-inset-border-color);
133
+ }
134
+
135
+ &.item-header {
136
+ font-size: 11px;
137
+ background-color: var(--context-menu-item-header-color);
138
+ cursor: default;
139
+ }
140
+ &:not(.item-header):not(.disabled):hover {
141
+ background-color: var(--context-menu-hover-bg-color);
142
+ color: #454545;
143
+ border-bottom: 1px solid var(--context-menu-hover-border-color);
144
+ }
145
+ &.disabled {
146
+ opacity: 0.5;
147
+ user-select: none;
148
+ cursor: default;
149
+ }
150
+ &.left {
151
+ :deep(.context-children) {
152
+ left: var(--context-menu-wrap-left);
153
+ right: var(--context-menu-wrap-right);
154
+
155
+ .context-wrap {
156
+ transform: var(--context-menu-wrap-transform-left);
157
+ left: auto;
158
+ }
159
+ }
160
+ }
161
+
162
+ .context-link {
163
+ position: relative;
164
+ overflow: hidden;
165
+ text-overflow: ellipsis;
166
+ white-space: nowrap;
167
+ display: flex;
168
+ align-items: center;
169
+ user-select: none;
170
+ padding: 3px 20px 4px 10px;
171
+
172
+ .menu-item-text {
173
+ flex: 1 1 0;
174
+ }
175
+
176
+ .context-icon {
177
+ display: inline-block;
178
+ margin: -2px 4px 0 0;
179
+ vertical-align: middle;
180
+ width: 18px;
181
+ height: 18px;
182
+ }
183
+
184
+ .arrow-icon {
185
+ position: absolute;
186
+ top: 50%;
187
+ margin-top: -8px;
188
+ right: 4px;
189
+ background-image: url('assets/img/icons/sprite.png');
190
+ display: inline-block;
191
+ width: 16px;
192
+ height: 16px;
193
+ overflow: hidden;
194
+ background-repeat: no-repeat;
195
+ font-size: 0;
196
+ line-height: 0;
197
+ text-align: center;
198
+ transform: rotate(90deg);
199
+ }
200
+
201
+ .shortcut {
202
+ padding-left: 10px;
203
+ }
204
+ }
205
+
206
+ .context-children {
207
+ position: absolute;
208
+ top: 0;
209
+ left: 100%;
210
+
211
+ .context-wrap {
212
+ position: fixed;
213
+ transform: var(--context-menu-wrap-transform);
214
+ }
215
+ }
216
+ }
217
+ }
218
+ .context-menu__loading {
219
+ :deep(.spinner) {
220
+ width: 45px;
221
+ height: 45px;
222
+ min-width: 45px;
223
+ min-height: 45px;
224
+ z-index: 1000;
225
+ }
226
+ }
227
+ </style>
@@ -1,82 +1,82 @@
1
- <template>
2
- <Teleport to="body">
3
- <common-layout-the-header-help-menu-about-new
4
- v-if="isNewView"
5
- :title="title"
6
- :subtitle="subtitle"
7
- :about-heading-text="aboutHeadingText"
8
- :about-desc-one="aboutDesc1"
9
- :about-desc-second="aboutDesc2"
10
- :project-name="props.projectName"
11
- :url="companyWebSitePath"
12
- @hide="emits('hide')"
13
- />
14
-
15
- <common-layout-the-header-help-menu-about-old
16
- v-else
17
- :title="title"
18
- :subtitle="subtitle"
19
- :about-heading-text="aboutHeadingText"
20
- :about-desc-one="aboutDesc1"
21
- :about-desc-second="aboutDesc2"
22
- :project-name="props.projectName"
23
- :url="companyWebSitePath"
24
- @hide="emits('hide')"
25
- />
26
- </Teleport>
27
- </template>
28
-
29
- <script lang="ts" setup>
30
- import type { UI_I_Localization } from '~/lib/models/interfaces'
31
-
32
- const props = defineProps<{
33
- version: string
34
- projectName: string
35
- }>()
36
- const emits = defineEmits<{
37
- (event: 'hide'): void
38
- }>()
39
-
40
- const localization = computed<UI_I_Localization>(() => useLocal())
41
- const { $store }: any = useNuxtApp()
42
- const config = useRuntimeConfig()
43
-
44
- const companyName = computed<string>(
45
- () => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
46
- )
47
- const brandName = computed<string>(
48
- () => config.public[`TRADEMARK_${useEnvLanguage()}`]
49
- )
50
-
51
- const companyWebSitePath = ref<string>('https://iridium-soft.com/')
52
-
53
- const title = computed<string>(() => `${brandName.value}® ${props.projectName}`)
54
- const subtitle = computed<string>(() =>
55
- localization.value.layout.aboutWebClientVersion
56
- .replace('{0}', props.projectName)
57
- .replace('{1}', props.version)
58
- )
59
-
60
- const aboutHeadingText = computed<string>(() =>
61
- localization.value.layout.aboutHeading.replace(
62
- '{companyName}',
63
- companyName.value
64
- ).replace(
65
- '{year}',
66
- new Date().getFullYear() + ''
67
- )
68
- )
69
-
70
- const aboutDesc1 = computed<string>(() =>
71
- localization.value.layout.aboutDesc1
72
- .replaceAll('{companyName}', companyName.value)
73
- .replaceAll('{trademark}', brandName.value)
74
- )
75
- const aboutDesc2 = computed<string>(() =>
76
- localization.value.layout.aboutDesc2
77
- .replaceAll('{companyName}', companyName.value)
78
- .replaceAll('{trademark}', brandName.value)
79
- )
80
-
81
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
82
- </script>
1
+ <template>
2
+ <Teleport to="body">
3
+ <common-layout-the-header-help-menu-about-new
4
+ v-if="isNewView"
5
+ :title="title"
6
+ :subtitle="subtitle"
7
+ :about-heading-text="aboutHeadingText"
8
+ :about-desc-one="aboutDesc1"
9
+ :about-desc-second="aboutDesc2"
10
+ :project-name="props.projectName"
11
+ :url="companyWebSitePath"
12
+ @hide="emits('hide')"
13
+ />
14
+
15
+ <common-layout-the-header-help-menu-about-old
16
+ v-else
17
+ :title="title"
18
+ :subtitle="subtitle"
19
+ :about-heading-text="aboutHeadingText"
20
+ :about-desc-one="aboutDesc1"
21
+ :about-desc-second="aboutDesc2"
22
+ :project-name="props.projectName"
23
+ :url="companyWebSitePath"
24
+ @hide="emits('hide')"
25
+ />
26
+ </Teleport>
27
+ </template>
28
+
29
+ <script lang="ts" setup>
30
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
31
+
32
+ const props = defineProps<{
33
+ version: string
34
+ projectName: string
35
+ }>()
36
+ const emits = defineEmits<{
37
+ (event: 'hide'): void
38
+ }>()
39
+
40
+ const localization = computed<UI_I_Localization>(() => useLocal())
41
+ const { $store }: any = useNuxtApp()
42
+ const config = useRuntimeConfig()
43
+
44
+ const companyName = computed<string>(
45
+ () => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
46
+ )
47
+ const brandName = computed<string>(
48
+ () => config.public[`TRADEMARK_${useEnvLanguage()}`]
49
+ )
50
+
51
+ const companyWebSitePath = ref<string>('https://iridium-soft.com/')
52
+
53
+ const title = computed<string>(() => `${brandName.value}® ${props.projectName}`)
54
+ const subtitle = computed<string>(() =>
55
+ localization.value.layout.aboutWebClientVersion
56
+ .replace('{0}', props.projectName)
57
+ .replace('{1}', props.version)
58
+ )
59
+
60
+ const aboutHeadingText = computed<string>(() =>
61
+ localization.value.layout.aboutHeading.replace(
62
+ '{companyName}',
63
+ companyName.value
64
+ ).replace(
65
+ '{year}',
66
+ new Date().getFullYear() + ''
67
+ )
68
+ )
69
+
70
+ const aboutDesc1 = computed<string>(() =>
71
+ localization.value.layout.aboutDesc1
72
+ .replaceAll('{companyName}', companyName.value)
73
+ .replaceAll('{trademark}', brandName.value)
74
+ )
75
+ const aboutDesc2 = computed<string>(() =>
76
+ localization.value.layout.aboutDesc2
77
+ .replaceAll('{companyName}', companyName.value)
78
+ .replaceAll('{trademark}', brandName.value)
79
+ )
80
+
81
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
82
+ </script>