bfg-common 1.4.591 → 1.4.592

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 (96) hide show
  1. package/assets/localization/local_be.json +2 -0
  2. package/assets/localization/local_en.json +3 -1
  3. package/assets/localization/local_hy.json +2 -0
  4. package/assets/localization/local_kk.json +3 -1
  5. package/assets/localization/local_ru.json +2 -0
  6. package/assets/localization/local_zh.json +2 -0
  7. package/components/atoms/TheIcon3.vue +50 -50
  8. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  9. package/components/atoms/stack/StackBlock.vue +185 -185
  10. package/components/atoms/table/dataGrid/DataGrid.vue +1633 -1633
  11. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
  12. package/components/common/browse/BrowseNew.vue +237 -237
  13. package/components/common/browse/BrowseOld.vue +217 -217
  14. package/components/common/browse/blocks/contents/Files.vue +35 -35
  15. package/components/common/browse/blocks/contents/FilesOld.vue +70 -70
  16. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +92 -92
  17. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  18. package/components/common/context/lib/models/interfaces.ts +30 -30
  19. package/components/common/context/recursion/Recursion.vue +86 -86
  20. package/components/common/context/recursion/RecursionNew.vue +199 -199
  21. package/components/common/context/recursion/RecursionOld.vue +213 -213
  22. package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
  23. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
  24. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
  25. package/components/common/spiceConsole/Drawer.vue +370 -370
  26. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  27. package/components/common/split/horizontal/HorizontalNew.vue +358 -358
  28. package/components/common/split/vertical/Vertical.vue +160 -160
  29. package/components/common/vm/actions/add/Add.vue +617 -617
  30. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  31. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +267 -267
  32. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +264 -264
  33. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
  34. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
  35. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
  36. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
  37. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  38. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
  39. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
  40. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
  41. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  42. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  43. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  44. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  45. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -74
  46. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  47. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  48. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  49. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
  51. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
  52. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
  53. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
  54. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  55. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  56. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  57. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
  58. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
  59. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  60. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  61. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
  62. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  63. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  64. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  65. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  66. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  67. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  68. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  69. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  70. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  71. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  72. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  73. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  74. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  75. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  76. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  77. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  78. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  79. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
  80. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  81. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  82. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  83. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  84. package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
  85. package/components/common/vm/actions/editSettings/EditSettings.vue +214 -214
  86. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +182 -182
  87. package/components/common/vm/actions/editSettings/new/New.vue +176 -176
  88. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  89. package/composables/productNameLocal.ts +30 -30
  90. package/package.json +1 -1
  91. package/plugins/date.ts +233 -233
  92. package/plugins/recursion.ts +311 -311
  93. package/public/spice-console/lib/images/bitmap.js +203 -203
  94. package/public/spice-console/network/spicechannel.js +383 -383
  95. package/store/main/mutations.ts +7 -7
  96. package/store/main/state.ts +7 -7
@@ -1,159 +1,159 @@
1
- <template>
2
- <div class="select-storage">
3
- <ui-alert
4
- v-show="props.errors.length"
5
- status="alert-danger"
6
- test-id="storage-alert"
7
- :items="props.errors"
8
- @remove="emits('remove-error')"
9
- />
10
- <div class="table-wrap">
11
- <ui-data-table
12
- test-id="select-storage-data-table"
13
- :data="data"
14
- :options="tableOptions"
15
- :loading="loading"
16
- server-off
17
- :default-layout="false"
18
- @select-row="onSelectRow"
19
- />
20
- </div>
21
-
22
- <div v-if="!props.hideCompatibility" class="compatibility-wrap">
23
- <p class="compatibility">
24
- {{ localization.inventorySummary.compatibility }}
25
- </p>
26
- <div class="compatibility-message flex-align-center">
27
- <template v-if="props.selectedStorage">
28
- <div class="icon-status-ok" />
29
- <span>{{ localization.common.compatibilityChecksSucceeded }}</span>
30
- </template>
31
- <div v-else>
32
- <br />
33
- </div>
34
- </div>
35
- </div>
36
- </div>
37
- </template>
38
-
39
- <script setup lang="ts">
40
- import type { UI_I_DataTable } from 'bfg-uikit/components/ui/dataTable/models/interfaces'
41
- import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
42
- import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
43
- import type { UI_I_Localization } from '~/lib/models/interfaces'
44
- import { datastoreLocalizationByState } from '~/components/common/lib/config/states'
45
- import {
46
- tableDataFunc,
47
- tableOptions,
48
- } from '~/components/common/vm/actions/common/select/storage/new/lib/config/table'
49
-
50
- const selectedRow = defineModel<number | null>('selectedRow')
51
-
52
- const props = defineProps<{
53
- datastore: UI_I_DatastoreTableItem[]
54
- getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
55
- errors: string[]
56
- selectedStorage: UI_I_DatastoreTableItem | null
57
- hideCompatibility?: boolean
58
- }>()
59
- const emits = defineEmits<{
60
- (event: 'remove-error'): void
61
- (event: 'change-storage', value: number): void
62
- }>()
63
-
64
- const localization = computed<UI_I_Localization>(() => useLocal())
65
-
66
- const loading = ref<boolean>(true)
67
-
68
- const data = ref<UI_I_DataTable>(tableDataFunc(localization.value))
69
-
70
- watch(
71
- () => props.datastore,
72
- (newValue) => {
73
- if (!newValue.length || data.value.body.length) return
74
-
75
- const { $binary } = useNuxtApp()
76
-
77
- newValue.forEach((item, key) => {
78
- const state =
79
- localization.value.inventorySummary[
80
- datastoreLocalizationByState[item.state]
81
- ]
82
- data.value.body.push({
83
- row: key,
84
- collapse: false,
85
- isHiddenCollapse: false,
86
- collapseToggle: false,
87
- isSelected: key === selectedRow.value,
88
- data: [
89
- {
90
- key: item.id,
91
- col: 0,
92
- text: item.name,
93
- },
94
- {
95
- col: 1,
96
- text: state,
97
- },
98
- { col: 2, text: $binary.round(item.capacity.capacity_mb) },
99
- {
100
- col: 3,
101
- text: $binary.round(item.capacity.provisioned_mb.toString()),
102
- },
103
- {
104
- col: 4,
105
- text: $binary.round(item.capacity.free_mb.toString()),
106
- },
107
- {
108
- col: 5,
109
- text: $binary.round(item.capacity.used_mb.toString()),
110
- },
111
- {
112
- col: 6,
113
- text: item.type_text,
114
- },
115
- {
116
- col: 7,
117
- text: item.thin_provisioning
118
- ? localization.value.common.yes
119
- : localization.value.common.no,
120
- },
121
- {
122
- col: 8,
123
- text: item.access_mode,
124
- },
125
- {
126
- col: 9,
127
- text: item.hardware_acceleration,
128
- },
129
- {
130
- col: 10,
131
- text: item.drive_type,
132
- },
133
- {
134
- col: 11,
135
- text: item.device,
136
- },
137
- {
138
- col: 12,
139
- text: item.storage_io_control,
140
- },
141
- ],
142
- })
143
- })
144
- loading.value = false
145
- },
146
- { immediate: true, deep: true }
147
- )
148
-
149
- const onSelectRow = (selectedData: UI_I_DataTable): void => {
150
- const selectedId = selectedData[0]?.data[0]?.key
151
- const selectedItemIndex = props.datastore.findIndex(
152
- (item) => item.id === selectedId
153
- )
154
-
155
- emits('change-storage', selectedItemIndex)
156
- }
157
- </script>
158
-
159
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <div class="select-storage">
3
+ <ui-alert
4
+ v-show="props.errors.length"
5
+ status="alert-danger"
6
+ test-id="storage-alert"
7
+ :items="props.errors"
8
+ @remove="emits('remove-error')"
9
+ />
10
+ <div class="table-wrap">
11
+ <ui-data-table
12
+ test-id="select-storage-data-table"
13
+ :data="data"
14
+ :options="tableOptions"
15
+ :loading="loading"
16
+ server-off
17
+ :default-layout="false"
18
+ @select-row="onSelectRow"
19
+ />
20
+ </div>
21
+
22
+ <div v-if="!props.hideCompatibility" class="compatibility-wrap">
23
+ <p class="compatibility">
24
+ {{ localization.inventorySummary.compatibility }}
25
+ </p>
26
+ <div class="compatibility-message flex-align-center">
27
+ <template v-if="props.selectedStorage">
28
+ <div class="icon-status-ok" />
29
+ <span>{{ localization.common.compatibilityChecksSucceeded }}</span>
30
+ </template>
31
+ <div v-else>
32
+ <br />
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </template>
38
+
39
+ <script setup lang="ts">
40
+ import type { UI_I_DataTable } from 'bfg-uikit/components/ui/dataTable/models/interfaces'
41
+ import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
42
+ import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
43
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
44
+ import { datastoreLocalizationByState } from '~/components/common/lib/config/states'
45
+ import {
46
+ tableDataFunc,
47
+ tableOptions,
48
+ } from '~/components/common/vm/actions/common/select/storage/new/lib/config/table'
49
+
50
+ const selectedRow = defineModel<number | null>('selectedRow')
51
+
52
+ const props = defineProps<{
53
+ datastore: UI_I_DatastoreTableItem[]
54
+ getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
55
+ errors: string[]
56
+ selectedStorage: UI_I_DatastoreTableItem | null
57
+ hideCompatibility?: boolean
58
+ }>()
59
+ const emits = defineEmits<{
60
+ (event: 'remove-error'): void
61
+ (event: 'change-storage', value: number): void
62
+ }>()
63
+
64
+ const localization = computed<UI_I_Localization>(() => useLocal())
65
+
66
+ const loading = ref<boolean>(true)
67
+
68
+ const data = ref<UI_I_DataTable>(tableDataFunc(localization.value))
69
+
70
+ watch(
71
+ () => props.datastore,
72
+ (newValue) => {
73
+ if (!newValue.length || data.value.body.length) return
74
+
75
+ const { $binary } = useNuxtApp()
76
+
77
+ newValue.forEach((item, key) => {
78
+ const state =
79
+ localization.value.inventorySummary[
80
+ datastoreLocalizationByState[item.state]
81
+ ]
82
+ data.value.body.push({
83
+ row: key,
84
+ collapse: false,
85
+ isHiddenCollapse: false,
86
+ collapseToggle: false,
87
+ isSelected: key === selectedRow.value,
88
+ data: [
89
+ {
90
+ key: item.id,
91
+ col: 0,
92
+ text: item.name,
93
+ },
94
+ {
95
+ col: 1,
96
+ text: state,
97
+ },
98
+ { col: 2, text: $binary.round(item.capacity.capacity_mb) },
99
+ {
100
+ col: 3,
101
+ text: $binary.round(item.capacity.provisioned_mb.toString()),
102
+ },
103
+ {
104
+ col: 4,
105
+ text: $binary.round(item.capacity.free_mb.toString()),
106
+ },
107
+ {
108
+ col: 5,
109
+ text: $binary.round(item.capacity.used_mb.toString()),
110
+ },
111
+ {
112
+ col: 6,
113
+ text: item.type_text,
114
+ },
115
+ {
116
+ col: 7,
117
+ text: item.thin_provisioning
118
+ ? localization.value.common.yes
119
+ : localization.value.common.no,
120
+ },
121
+ {
122
+ col: 8,
123
+ text: item.access_mode,
124
+ },
125
+ {
126
+ col: 9,
127
+ text: item.hardware_acceleration,
128
+ },
129
+ {
130
+ col: 10,
131
+ text: item.drive_type,
132
+ },
133
+ {
134
+ col: 11,
135
+ text: item.device,
136
+ },
137
+ {
138
+ col: 12,
139
+ text: item.storage_io_control,
140
+ },
141
+ ],
142
+ })
143
+ })
144
+ loading.value = false
145
+ },
146
+ { immediate: true, deep: true }
147
+ )
148
+
149
+ const onSelectRow = (selectedData: UI_I_DataTable): void => {
150
+ const selectedId = selectedData[0]?.data[0]?.key
151
+ const selectedItemIndex = props.datastore.findIndex(
152
+ (item) => item.id === selectedId
153
+ )
154
+
155
+ emits('change-storage', selectedItemIndex)
156
+ }
157
+ </script>
158
+
159
+ <style scoped lang="scss"></style>