bfg-common 1.3.388 → 1.3.390

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 (83) hide show
  1. package/assets/img/icons/icons-sprite-dark-1-old.svg +1 -0
  2. package/assets/img/icons/icons-sprite-dark-1.svg +360 -1
  3. package/assets/img/icons/icons-sprite-dark-2-old.svg +1 -0
  4. package/assets/img/icons/icons-sprite-dark-2.svg +296 -1
  5. package/assets/img/icons/icons-sprite-dark-3-old.svg +1 -0
  6. package/assets/img/icons/icons-sprite-dark-3.svg +221 -1
  7. package/assets/img/icons/icons-sprite-dark-4-old.svg +1 -0
  8. package/assets/img/icons/icons-sprite-dark-4.svg +247 -1
  9. package/assets/img/icons/icons-sprite-dark-7.svg +8 -0
  10. package/assets/img/icons/icons-sprite-light-1-old.svg +1 -0
  11. package/assets/img/icons/icons-sprite-light-1.svg +360 -1
  12. package/assets/img/icons/icons-sprite-light-2-old.svg +1 -0
  13. package/assets/img/icons/icons-sprite-light-2.svg +296 -1
  14. package/assets/img/icons/icons-sprite-light-3-old.svg +1 -0
  15. package/assets/img/icons/icons-sprite-light-3.svg +221 -1
  16. package/assets/img/icons/icons-sprite-light-4-old.svg +1 -0
  17. package/assets/img/icons/icons-sprite-light-4.svg +247 -1
  18. package/assets/img/icons/icons-sprite-light-7.svg +8 -0
  19. package/assets/scss/common/icons/icons-1.scss +0 -1
  20. package/assets/scss/common/icons/icons-2.scss +0 -1
  21. package/assets/scss/common/icons/icons-4.scss +0 -1
  22. package/assets/scss/common/icons/icons-5.scss +0 -1
  23. package/assets/scss/common/icons/icons-6.scss +0 -1
  24. package/assets/scss/common/icons/icons-7.scss +29 -0
  25. package/components/atoms/loader/Loader.vue +30 -30
  26. package/components/atoms/loader/PreLoader.vue +38 -38
  27. package/components/atoms/switch/Switch.vue +111 -111
  28. package/components/atoms/table/compact/Compact.vue +526 -526
  29. package/components/common/adapterManager/ui/table/Header.vue +93 -93
  30. package/components/common/adapterManager/ui/table/Table.vue +162 -162
  31. package/components/common/context/Context.vue +99 -99
  32. package/components/common/lib/config/states.ts +126 -126
  33. package/components/common/resource/progressBlock/ProgressBlock.vue +142 -142
  34. package/components/common/vm/actions/add/Add.vue +602 -602
  35. package/components/common/vm/actions/clone/Clone.vue +518 -518
  36. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +273 -273
  37. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +697 -697
  38. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +256 -256
  39. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +458 -458
  40. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +304 -304
  41. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +167 -167
  42. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +82 -82
  43. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +32 -32
  44. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +182 -182
  45. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +114 -114
  46. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +188 -188
  47. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +72 -72
  48. package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +164 -164
  49. package/components/common/vm/actions/common/select/name/Name.vue +235 -235
  50. package/components/common/vm/actions/common/select/storage/Storage.vue +198 -198
  51. package/components/common/vm/actions/editSettings/EditSettings.vue +316 -316
  52. package/components/common/weekSelect/lib/config/options.ts +10 -10
  53. package/components/common/wizards/datastore/add/Add.vue +436 -436
  54. package/components/common/wizards/datastore/add/lib/config/stepItems.ts +191 -191
  55. package/components/common/wizards/datastore/add/lib/models/interfaces.ts +38 -38
  56. package/components/common/wizards/datastore/add/lib/utils.ts +70 -70
  57. package/components/common/wizards/datastore/add/local/createName/CreateName.vue +160 -160
  58. package/components/common/wizards/datastore/add/nfs/Nfs.vue +112 -112
  59. package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +104 -104
  60. package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +62 -62
  61. package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +53 -53
  62. package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +86 -86
  63. package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts +184 -184
  64. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +459 -459
  65. package/components/common/wizards/datastore/add/types/Types.vue +80 -80
  66. package/components/common/wizards/datastore/add/types/lib/config/typeOptions.ts +49 -49
  67. package/composables/useAppVersion.ts +21 -21
  68. package/composables/useEnvLanguage.ts +20 -20
  69. package/lib/utils/sendTask.ts +72 -72
  70. package/minify.js +146 -146
  71. package/package.json +1 -1
  72. package/plugins/recursion.ts +1 -20
  73. package/plugins/spice-console/spice.console.ts +147 -147
  74. package/public/spice-console/application/codec.js +263 -263
  75. package/public/spice-console/lib/rasterEngine.js +907 -907
  76. package/public/spice-console/network/spicechannel.js +375 -375
  77. package/store/main/lib/interfaces.ts +9 -9
  78. package/store/tasks/actions.ts +133 -133
  79. package/store/tasks/getters.ts +25 -25
  80. package/store/tasks/lib/models/interfaces.ts +18 -18
  81. package/store/tasks/mutations.ts +58 -58
  82. package/store/tasks/state.ts +16 -16
  83. package/components/common/split/horizontal/HorizontalNew.vue +0 -315
@@ -1,315 +0,0 @@
1
- <template>
2
- <!-- TODO нужно объеденить с компонентой Horizontal.vue-->
3
- <div
4
- :id="elementId"
5
- :class="['fill-parent horizontal', { dragging: isDrag }]"
6
- >
7
- <div class="firstPanel" :style="leftPanelStyle">
8
- <div class="left-panel">
9
- <div
10
- v-if="props.showToggleButton"
11
- :class="['panel-toggle', { collapsed: leftPanelCollapsed }]"
12
- >
13
- <div v-show="!leftPanelCollapsed">
14
- <slot name="toggleContent" />
15
- </div>
16
- <button
17
- id="collapse-left-panel-button"
18
- data-id="collapse-left-panel-button"
19
- class="btn-trigger"
20
- @click="collapseLeftPanel"
21
- >
22
- <ui-icon-icon2 name="tree-arrow" />
23
- </button>
24
- </div>
25
-
26
- <div v-show="!leftPanelCollapsed" class="navigator">
27
- <slot name="firstPanel" />
28
- </div>
29
- </div>
30
- </div>
31
- <div
32
- v-show="!leftPanelCollapsed"
33
- :id="`gutter-${elementId}`"
34
- class="gutter gutter-horizontal"
35
- tabindex="0"
36
- @mousedown="isGrab = true"
37
- @focus="isFocus = true"
38
- @blur="isFocus = false"
39
- >
40
- <div class="gutter-horizontal-handler"></div>
41
- </div>
42
-
43
- <div class="secondPanel right" :style="rightPanelStyle">
44
- <slot name="secondPanel" />
45
- </div>
46
- </div>
47
- </template>
48
-
49
- <script setup lang="ts">
50
- const props = withDefaults(
51
- defineProps<{
52
- parentElementSelector: string
53
- leftPanelW?: number
54
- leftPanelMinWidth?: number
55
- rightPanelMinWidth?: number
56
- showToggleButton?: boolean
57
- hideLeftPanel?: boolean
58
- }>(),
59
- {
60
- leftPanelMinWidth: 200, // 200px
61
- rightPanelMinWidth: 200, // 200px
62
- leftPanelW: undefined,
63
- showToggleButton: true,
64
- hideLeftPanel: false,
65
- }
66
- )
67
- const emits = defineEmits<{
68
- (event: 'dragend', value: number): void
69
- }>()
70
-
71
- const leftPanelStyle = computed(() => {
72
- let width = `calc(${leftPanelWLocal.value}% - 1.5px)`
73
- if (props.showToggleButton && leftPanelCollapsed.value) {
74
- width = '20px'
75
- }
76
- if (props.hideLeftPanel && leftPanelCollapsed.value) width = '0px'
77
-
78
- return { width }
79
- })
80
- const rightPanelStyle = computed(() => {
81
- let width = `calc(${100 - leftPanelWLocal.value}% - 1.5px)`
82
- if (props.showToggleButton && leftPanelCollapsed.value) {
83
- width = 'calc(100% - 20px)'
84
- }
85
-
86
- if (props.hideLeftPanel && leftPanelCollapsed.value)
87
- width = 'calc(100% - 0px)'
88
-
89
- return { width }
90
- })
91
- const leftPanelCollapsed = ref<boolean>(false)
92
- const collapseLeftPanel = (): void => {
93
- leftPanelCollapsed.value = !leftPanelCollapsed.value
94
- }
95
-
96
- const isGrab = ref<boolean>(false)
97
- const isFocus = ref<boolean>(false)
98
- const isDrag = ref<boolean>(false)
99
- const leftPanelWLocal = ref<number>(20) // 0%
100
- watch(
101
- () => props.leftPanelW,
102
- (newValue) => {
103
- if (newValue === undefined) return
104
- leftPanelWLocal.value = newValue
105
- },
106
- { immediate: true }
107
- )
108
-
109
- watch(
110
- () => props.hideLeftPanel,
111
- () => {
112
- collapseLeftPanel()
113
- }
114
- )
115
-
116
- let parentElem: HTMLElement | null
117
- const mouseup = (): void => {
118
- if (!isGrab.value) {
119
- return
120
- }
121
-
122
- isGrab.value = false
123
- isDrag.value = false
124
-
125
- emits('dragend', leftPanelWLocal.value)
126
- }
127
-
128
- let mousemove = (e: MouseEvent): void => {
129
- if (!isGrab.value) return
130
-
131
- e.preventDefault()
132
- isDrag.value = true
133
- doDrag(e.clientX)
134
- }
135
- mousemove = useThrottle(mousemove)
136
-
137
- const doDrag = (clientX: number): void => {
138
- const parentElemRect = parentElem?.getBoundingClientRect()
139
- const parentElemWidth = parentElemRect?.width || 0
140
- const parentElemLeft = parentElemRect?.left || 0
141
- const onePercent = parentElemWidth / 100
142
- const layerX = clientX - parentElemLeft
143
-
144
- const leftLimit = layerX <= props.leftPanelMinWidth
145
- const rightLimit = parentElemWidth - layerX <= props.rightPanelMinWidth
146
- if (leftLimit || rightLimit) return
147
-
148
- leftPanelWLocal.value = layerX / onePercent
149
- }
150
-
151
- const elementId = `horizontal${useUniqueId()}`
152
-
153
- const keydown = (e: KeyboardEvent): void => {
154
- if (!isFocus.value) return
155
-
156
- const gutter = document.getElementById(`gutter-${elementId}`)
157
-
158
- if (!gutter) return
159
-
160
- const gutterLeft = ~~(gutter.getBoundingClientRect().left + 1.5)
161
-
162
- if (e.keyCode === 39) {
163
- doDrag(gutterLeft + 10)
164
- }
165
- if (e.keyCode === 37) {
166
- doDrag(gutterLeft - 10)
167
- }
168
- }
169
- onMounted(() => {
170
- parentElem = document.querySelector(props.parentElementSelector)
171
-
172
- window.addEventListener('mousemove', mousemove)
173
- window.addEventListener('mouseup', mouseup)
174
- window.addEventListener('keydown', keydown)
175
- })
176
- onUnmounted(() => {
177
- window.removeEventListener('mouseup', mouseup)
178
- window.removeEventListener('mousemove', mousemove)
179
- window.removeEventListener('keydown', keydown)
180
- })
181
- </script>
182
-
183
- <style scoped lang="scss">
184
- @import '@/assets/scss/common/mixins';
185
- .horizontal {
186
- &.dragging {
187
- .gutter-horizontal.gutter {
188
- background-color: var(--gutter-active-bg-color);
189
- }
190
- }
191
- .firstPanel {
192
- width: calc(50% - 1.5px);
193
-
194
- .left-panel {
195
- @include flex($dir: column);
196
- width: 100%;
197
- height: 100%;
198
-
199
- .panel-toggle {
200
- display: flex;
201
- align-items: center;
202
- justify-content: space-between;
203
- min-height: 48px;
204
- border-bottom: 1px solid var(--global-border-color);
205
-
206
- &.collapsed {
207
- border: none;
208
-
209
- .btn-trigger {
210
- border-radius: 0 4px 4px 0;
211
-
212
- :deep(svg) {
213
- transform: rotate(-90deg);
214
- }
215
- }
216
- }
217
-
218
- .btn-trigger {
219
- @include flex($align: center, $just: center);
220
- width: 16px;
221
- height: 32px;
222
- flex: 0 0 16px;
223
- border: 0;
224
- padding: 0;
225
- margin: 0;
226
- background-color: #E9EBED;
227
- outline: none;
228
- cursor: pointer;
229
- border-radius: 4px 0 0 4px;
230
-
231
- :deep(svg) {
232
- transform: rotate(90deg);
233
- }
234
- }
235
- }
236
- .navigator {
237
- overflow: hidden;
238
- height: 100%;
239
-
240
- .panel-inner {
241
- position: relative;
242
- height: 100%;
243
- background: var(--horizontal-panel-bg-color);
244
- border-radius: 0;
245
- border: 0;
246
-
247
- &.inventory-tree {
248
- padding-left: 4px;
249
- padding-top: 6px;
250
- }
251
- }
252
- }
253
- }
254
- }
255
- .gutter-horizontal {
256
- position: relative;
257
- width: 3px;
258
- background-color: var(--gutter-bg-color);
259
- transition-delay: 0.25s;
260
- transition-duration: 0.25s;
261
-
262
- &-handler {
263
- position: absolute;
264
- height: 100%;
265
- width: 10px;
266
- background: transparent;
267
- top: 0;
268
- left: -3.5px;
269
- z-index: 2;
270
- }
271
-
272
- &:focus {
273
- background-color: var(--gutter-active-bg-color);
274
- outline: none;
275
- }
276
-
277
- &:hover {
278
- background-color: var(--gutter-hover-bg-color);
279
- cursor: col-resize;
280
- &:before {
281
- background-color: hsla(0, 0%, 100%, 0.5);
282
- box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%);
283
- }
284
- }
285
-
286
- &:before {
287
- content: '';
288
- position: relative;
289
- display: block;
290
- background: rgba(0, 0, 0, 0.1);
291
- transition-delay: 0.25s;
292
- transition-duration: 0.25s;
293
- width: 100%;
294
- height: 25px;
295
- top: calc(50% - 12.5px);
296
- }
297
- }
298
- .secondPanel {
299
- width: calc(50% - 1.5px);
300
- &.right {
301
- overflow: hidden;
302
- height: 100%;
303
- }
304
- }
305
- }
306
- </style>
307
-
308
- <style>
309
- :root {
310
- --horizontal-panel-bg-color: #fff;
311
- }
312
- :root.dark-theme {
313
- --horizontal-panel-bg-color: #1b2a32;
314
- }
315
- </style>