bfg-common 1.2.52 → 1.2.54

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 (81) hide show
  1. package/components/atoms/alert/Notification.vue +167 -167
  2. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  3. package/components/atoms/datepicker/Datepicker.vue +612 -612
  4. package/components/atoms/list/SelectList.vue +62 -62
  5. package/components/atoms/nav/NavBar.vue +116 -116
  6. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  7. package/components/atoms/notificationBar/NotificationBar.vue +175 -175
  8. package/components/atoms/perPage/PerPage.vue +52 -52
  9. package/components/atoms/popup/SimplePopup.vue +90 -90
  10. package/components/atoms/step/VerticalStep.vue +104 -104
  11. package/components/atoms/switch/Switch.vue +107 -107
  12. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
  13. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  14. package/components/atoms/tabs/Tabs.vue +189 -189
  15. package/components/atoms/tooltip/Signpost.vue +224 -224
  16. package/components/common/BadBrowser.vue +114 -114
  17. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  18. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  19. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  20. package/components/common/browse/Browse.vue +182 -182
  21. package/components/common/browse/blocks/Title.vue +66 -66
  22. package/components/common/diagramMain/Diagram.vue +186 -186
  23. package/components/common/diagramMain/DiagramMain.vue +986 -986
  24. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  25. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  26. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  27. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  28. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  29. package/components/common/diagramMain/network/Contents.vue +238 -238
  30. package/components/common/feedback/Buttons.vue +232 -232
  31. package/components/common/feedback/Message.vue +468 -468
  32. package/components/common/feedback/VisitPortal.vue +54 -54
  33. package/components/common/help/navbar/left/Left.vue +159 -159
  34. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  35. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +3 -3
  36. package/components/common/modals/Rename.vue +165 -165
  37. package/components/common/monitor/overview/Overview.vue +470 -470
  38. package/components/common/monitor/overview/filters/Filters.vue +219 -219
  39. package/components/common/monitor/overview/filters/config/filterOptions.ts +80 -80
  40. package/components/common/perPage/PerPage.vue +51 -51
  41. package/components/common/recursionTree/RecursionTree.vue +201 -201
  42. package/components/common/vm/actions/clone/Clone.vue +545 -545
  43. package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
  44. package/components/common/vm/actions/clone/utils.ts +43 -43
  45. package/components/common/vm/actions/common/config/capabilities.ts +338 -338
  46. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +678 -678
  47. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
  48. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +383 -383
  49. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  51. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  52. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  53. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
  54. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
  55. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  56. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
  57. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
  58. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
  59. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
  60. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
  61. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
  62. package/components/common/vm/actions/common/select/compatibility/Compatibility.vue +40 -40
  63. package/components/common/vm/actions/common/select/storage/Storage.vue +194 -194
  64. package/components/common/vm/actions/common/select/storage/config/config.ts +154 -154
  65. package/components/common/wizards/datastore/add/nfs/Nfs.vue +94 -94
  66. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +377 -377
  67. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  68. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  69. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  70. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  71. package/composables/useLocal.ts +38 -38
  72. package/minify.js +146 -146
  73. package/models/store/interfaces.ts +37 -37
  74. package/models/store/storage/interfaces.ts +32 -32
  75. package/models/store/types.ts +32 -32
  76. package/modules/fixContentBuild/utils/methods.ts +114 -114
  77. package/package.json +1 -1
  78. package/public/spice-console/application/codec.js +257 -257
  79. package/public/spice-console/lib/rasterEngine.js +907 -907
  80. package/public/spice-console/network/spicechannel.js +369 -369
  81. package/utils/contentBuild.ts +34 -34
@@ -22,32 +22,32 @@
22
22
  </template>
23
23
  <template #content>{{ apiError }}</template>
24
24
  </atoms-tooltip-error>
25
- <div id="version-select-help-icon" class="flex-align-center relative">
26
- <atoms-the-icon
27
- fill="#0072a3"
28
- width="24px"
29
- height="24px"
30
- name="info-circle"
31
- @click="isShowHelp = !isShowHelp"
32
- />
33
- <atoms-tooltip-signpost
34
- v-if="isShowHelp"
35
- elem-id="version-select-help-icon"
36
- @hide="isShowHelp = false"
37
- >
38
- <h3 class="help-title">{{ localization.help }}</h3>
39
-
40
- <p>
41
- {{
42
- localization.eachVirtualMachineCompatibilitySettingIncludesHardwareAvailableVirtualMachine
43
- }}
44
- </p>
45
-
46
- <a id="more-information-link" class="pointer">{{
47
- localization.moreInformation
48
- }}</a>
49
- </atoms-tooltip-signpost>
50
- </div>
25
+ <!-- <div id="version-select-help-icon" class="flex-align-center relative">-->
26
+ <!-- <atoms-the-icon-->
27
+ <!-- fill="#0072a3"-->
28
+ <!-- width="24px"-->
29
+ <!-- height="24px"-->
30
+ <!-- name="info-circle"-->
31
+ <!-- @click="isShowHelp = !isShowHelp"-->
32
+ <!-- />-->
33
+ <!-- <atoms-tooltip-signpost-->
34
+ <!-- v-if="isShowHelp"-->
35
+ <!-- elem-id="version-select-help-icon"-->
36
+ <!-- @hide="isShowHelp = false"-->
37
+ <!-- >-->
38
+ <!-- <h3 class="help-title">{{ localization.help }}</h3>-->
39
+
40
+ <!-- <p>-->
41
+ <!-- {{-->
42
+ <!-- localization.eachVirtualMachineCompatibilitySettingIncludesHardwareAvailableVirtualMachine-->
43
+ <!-- }}-->
44
+ <!-- </p>-->
45
+
46
+ <!-- <a id="more-information-link" class="pointer">{{-->
47
+ <!-- localization.moreInformation-->
48
+ <!-- }}</a>-->
49
+ <!-- </atoms-tooltip-signpost>-->
50
+ <!-- </div>-->
51
51
  </div>
52
52
  <p class="select-compatibility-block">
53
53
  {{ versionDescription }}
@@ -108,7 +108,7 @@ watch(
108
108
  { immediate: true }
109
109
  )
110
110
 
111
- const isShowHelp = ref(false)
111
+ // const isShowHelp = ref(false)
112
112
 
113
113
  const apiError = computed<string>(() => {
114
114
  return (
@@ -133,19 +133,19 @@ const onRemoveValidationError = (): void => {
133
133
  align-items: center;
134
134
  gap: 6px;
135
135
 
136
- #version-select-help-icon {
137
- .help-title {
138
- font-size: 22px;
139
- }
140
-
141
- p {
142
- width: 200px;
143
- }
144
-
145
- a {
146
- color: #0072a3;
147
- }
148
- }
136
+ //#version-select-help-icon {
137
+ // .help-title {
138
+ // font-size: 22px;
139
+ // }
140
+ //
141
+ // p {
142
+ // width: 200px;
143
+ // }
144
+ //
145
+ // a {
146
+ // color: #0072a3;
147
+ // }
148
+ //}
149
149
  }
150
150
  }
151
151
  </style>
@@ -1,194 +1,194 @@
1
- <template>
2
- <div class="select-storage">
3
- <atoms-alert
4
- v-show="errors.length"
5
- status="alert-danger"
6
- :items="errors"
7
- @remove="onRemoveValidationErrors"
8
- />
9
- <div class="table-wrap">
10
- <atoms-table-data-grid
11
- v-model:selected-row="selectedRow"
12
- v-model:column-keys="columnKeys"
13
- v-model:page-size="pagination.pageSize"
14
- v-model:page="pagination.page"
15
- type="radio"
16
- :head-items="headItems"
17
- :body-items="bodyItems"
18
- :total-items="bodyItems.length"
19
- :total-pages="1"
20
- server-off
21
- hide-page-size
22
- @sorting="sorting"
23
- @change="changeStorage"
24
- >
25
- <template #icon="{ item }">
26
- <span :class="['datagrid-cell-icon', item.data]" />
27
- <span class="text-ellipsis">
28
- {{ item.text }}
29
- </span>
30
- </template>
31
- </atoms-table-data-grid>
32
- </div>
33
-
34
- <div v-if="!hideCompatibility" class="compatibility-wrap">
35
- <p class="compatibility">
36
- {{ localization.compatibility }}
37
- </p>
38
- <div class="compatibility-message flex-align-center">
39
- <template v-if="selectedStorage">
40
- <div class="icon-status-ok" />
41
- <span>{{ localization.compatibilityChecksSucceeded }}</span>
42
- </template>
43
- <div v-else>
44
- <br />
45
- </div>
46
- </div>
47
- </div>
48
- </div>
49
- </template>
50
-
51
- <script setup lang="ts">
52
- import { UI_I_Pagination } from '~/models/interfaces'
53
- import { UI_I_TablePayload } from '~/models/store/interfaces'
54
- import { UI_I_DatastoreTableItem } from '~/models/store/storage/interfaces'
55
- import { UI_I_Localization } from '~/models/interfaces'
56
- import {
57
- UI_I_ColumnKey,
58
- UI_I_HeadItem,
59
- UI_I_BodyItem,
60
- } from '~/components/atoms/table/dataGrid/models/interfaces'
61
- import * as table from '~/components/common/vm/actions/common/select/storage/config/config'
62
-
63
- const props = defineProps<{
64
- storageSubmit: number
65
- datastore: UI_I_DatastoreTableItem[]
66
- storage: UI_I_DatastoreTableItem
67
- hideCompatibility?: boolean
68
- getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
69
- }>()
70
- const emits = defineEmits<{
71
- (event: 'submit', value: UI_I_DatastoreTableItem): void
72
- }>()
73
-
74
- const localization = computed<UI_I_Localization>(() => useLocal())
75
-
76
- const headItems = ref<UI_I_HeadItem[]>(table.headItems(localization.value))
77
- const columnKeys = ref<UI_I_ColumnKey[]>(table.columnKeys(localization.value))
78
- watch(localization, () => {
79
- columnKeys.value = table.columnKeys(localization.value)
80
- })
81
-
82
- const bodyItems = computed<UI_I_BodyItem[][]>(() => {
83
- return table.bodyItems(props.datastore || [], localization.value)
84
- })
85
-
86
- const sort = ref<string | null>(null)
87
- const pagination = ref<UI_I_Pagination>({
88
- page: 1,
89
- pageSize: 100,
90
- })
91
-
92
- const sorting = (data: [string, boolean]): void => {
93
- const [column, status] = data
94
- const direction = status ? 'asc' : 'desc'
95
- sort.value = `${column}.${direction}`
96
-
97
- getStorage()
98
- }
99
-
100
- const getStorage = async (): Promise<void> => {
101
- const payload: UI_I_TablePayload = {
102
- pagination: pagination.value,
103
- sortBy: sort.value,
104
- type: 'datastore',
105
- schema: 'full',
106
- }
107
-
108
- props.getDatastoreTableFunc(payload).then(() => {
109
- selectedRow.value = null
110
- setStorageFromProps()
111
- })
112
- }
113
- getStorage()
114
-
115
- const selectedStorage = ref<UI_I_DatastoreTableItem | null>(null)
116
- const selectedRow = ref<number | null>(null)
117
- const changeStorage = (index: number): void => {
118
- if (!props.datastore) return
119
- selectedStorage.value = props.datastore[index]
120
- selectedRow.value = index
121
- }
122
-
123
- const setStorageFromProps = (): void => {
124
- if (!props.storage) return
125
- props.datastore.forEach((item, index) => {
126
- if (item.id === props.storage.id) changeStorage(index)
127
- })
128
- }
129
- watch(
130
- () => props.storage,
131
- () => {
132
- setStorageFromProps()
133
- },
134
- { immediate: true }
135
- )
136
-
137
- watch(
138
- () => props.storageSubmit,
139
- () => {
140
- submit()
141
- }
142
- )
143
- const submit = (): void => {
144
- if (!selectedStorage.value) {
145
- showValidationErrors([localization.value.selectValidDestinationStorage])
146
- return
147
- }
148
-
149
- emits('submit', selectedStorage.value)
150
- }
151
-
152
- const errors = ref<string[]>([])
153
- const showValidationErrors = (arr: string[]): void => {
154
- errors.value = arr
155
- }
156
- const onRemoveValidationErrors = (): void => {
157
- errors.value = []
158
- }
159
- </script>
160
-
161
- <style scoped lang="scss">
162
- .select-storage {
163
- flex: 1;
164
- display: flex;
165
- flex-direction: column;
166
-
167
- .table-wrap {
168
- flex: 1;
169
-
170
- .datagrid-cell-icon {
171
- margin-right: 6px;
172
- }
173
-
174
- :deep(.relative) {
175
- height: 100%;
176
-
177
- .datagrid-outer-wrapper {
178
- height: 100%;
179
- }
180
- }
181
- }
182
-
183
- .compatibility-wrap {
184
- padding-top: 10px;
185
-
186
- .compatibility-message {
187
- border: 1px solid #000;
188
- padding-top: 5px;
189
- padding-left: 5px;
190
- overflow: auto;
191
- }
192
- }
193
- }
194
- </style>
1
+ <template>
2
+ <div class="select-storage">
3
+ <atoms-alert
4
+ v-show="errors.length"
5
+ status="alert-danger"
6
+ :items="errors"
7
+ @remove="onRemoveValidationErrors"
8
+ />
9
+ <div class="table-wrap">
10
+ <atoms-table-data-grid
11
+ v-model:selected-row="selectedRow"
12
+ v-model:column-keys="columnKeys"
13
+ v-model:page-size="pagination.pageSize"
14
+ v-model:page="pagination.page"
15
+ type="radio"
16
+ :head-items="headItems"
17
+ :body-items="bodyItems"
18
+ :total-items="bodyItems.length"
19
+ :total-pages="1"
20
+ server-off
21
+ hide-page-size
22
+ @sorting="sorting"
23
+ @change="changeStorage"
24
+ >
25
+ <template #icon="{ item }">
26
+ <span :class="['datagrid-cell-icon', item.data]" />
27
+ <span class="text-ellipsis">
28
+ {{ item.text }}
29
+ </span>
30
+ </template>
31
+ </atoms-table-data-grid>
32
+ </div>
33
+
34
+ <div v-if="!hideCompatibility" class="compatibility-wrap">
35
+ <p class="compatibility">
36
+ {{ localization.compatibility }}
37
+ </p>
38
+ <div class="compatibility-message flex-align-center">
39
+ <template v-if="selectedStorage">
40
+ <div class="icon-status-ok" />
41
+ <span>{{ localization.compatibilityChecksSucceeded }}</span>
42
+ </template>
43
+ <div v-else>
44
+ <br />
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </template>
50
+
51
+ <script setup lang="ts">
52
+ import { UI_I_Pagination } from '~/models/interfaces'
53
+ import { UI_I_TablePayload } from '~/models/store/interfaces'
54
+ import { UI_I_DatastoreTableItem } from '~/models/store/storage/interfaces'
55
+ import { UI_I_Localization } from '~/models/interfaces'
56
+ import {
57
+ UI_I_ColumnKey,
58
+ UI_I_HeadItem,
59
+ UI_I_BodyItem,
60
+ } from '~/components/atoms/table/dataGrid/models/interfaces'
61
+ import * as table from '~/components/common/vm/actions/common/select/storage/config/config'
62
+
63
+ const props = defineProps<{
64
+ storageSubmit: number
65
+ datastore: UI_I_DatastoreTableItem[]
66
+ storage: UI_I_DatastoreTableItem
67
+ hideCompatibility?: boolean
68
+ getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
69
+ }>()
70
+ const emits = defineEmits<{
71
+ (event: 'submit', value: UI_I_DatastoreTableItem): void
72
+ }>()
73
+
74
+ const localization = computed<UI_I_Localization>(() => useLocal())
75
+
76
+ const headItems = ref<UI_I_HeadItem[]>(table.headItems(localization.value))
77
+ const columnKeys = ref<UI_I_ColumnKey[]>(table.columnKeys(localization.value))
78
+ watch(localization, () => {
79
+ columnKeys.value = table.columnKeys(localization.value)
80
+ })
81
+
82
+ const bodyItems = computed<UI_I_BodyItem[][]>(() => {
83
+ return table.bodyItems(props.datastore || [], localization.value)
84
+ })
85
+
86
+ const sort = ref<string | null>(null)
87
+ const pagination = ref<UI_I_Pagination>({
88
+ page: 1,
89
+ pageSize: 100,
90
+ })
91
+
92
+ const sorting = (data: [string, boolean]): void => {
93
+ const [column, status] = data
94
+ const direction = status ? 'asc' : 'desc'
95
+ sort.value = `${column}.${direction}`
96
+
97
+ getStorage()
98
+ }
99
+
100
+ const getStorage = async (): Promise<void> => {
101
+ const payload: UI_I_TablePayload = {
102
+ pagination: pagination.value,
103
+ sortBy: sort.value,
104
+ type: 'datastore',
105
+ schema: 'full',
106
+ }
107
+
108
+ props.getDatastoreTableFunc(payload).then(() => {
109
+ selectedRow.value = null
110
+ setStorageFromProps()
111
+ })
112
+ }
113
+ getStorage()
114
+
115
+ const selectedStorage = ref<UI_I_DatastoreTableItem | null>(null)
116
+ const selectedRow = ref<number | null>(null)
117
+ const changeStorage = (index: number): void => {
118
+ if (!props.datastore) return
119
+ selectedStorage.value = props.datastore[index]
120
+ selectedRow.value = index
121
+ }
122
+
123
+ const setStorageFromProps = (): void => {
124
+ if (!props.storage) return
125
+ props.datastore.forEach((item, index) => {
126
+ if (item.id === props.storage.id) changeStorage(index)
127
+ })
128
+ }
129
+ watch(
130
+ () => props.storage,
131
+ () => {
132
+ setStorageFromProps()
133
+ },
134
+ { immediate: true }
135
+ )
136
+
137
+ watch(
138
+ () => props.storageSubmit,
139
+ () => {
140
+ submit()
141
+ }
142
+ )
143
+ const submit = (): void => {
144
+ if (!selectedStorage.value) {
145
+ showValidationErrors([localization.value.selectValidDestinationStorage])
146
+ return
147
+ }
148
+
149
+ emits('submit', selectedStorage.value)
150
+ }
151
+
152
+ const errors = ref<string[]>([])
153
+ const showValidationErrors = (arr: string[]): void => {
154
+ errors.value = arr
155
+ }
156
+ const onRemoveValidationErrors = (): void => {
157
+ errors.value = []
158
+ }
159
+ </script>
160
+
161
+ <style scoped lang="scss">
162
+ .select-storage {
163
+ flex: 1;
164
+ display: flex;
165
+ flex-direction: column;
166
+
167
+ .table-wrap {
168
+ flex: 1;
169
+
170
+ .datagrid-cell-icon {
171
+ margin-right: 6px;
172
+ }
173
+
174
+ :deep(.relative) {
175
+ height: 100%;
176
+
177
+ .datagrid-outer-wrapper {
178
+ height: 100%;
179
+ }
180
+ }
181
+ }
182
+
183
+ .compatibility-wrap {
184
+ padding-top: 10px;
185
+
186
+ .compatibility-message {
187
+ border: 1px solid #000;
188
+ padding-top: 5px;
189
+ padding-left: 5px;
190
+ overflow: auto;
191
+ }
192
+ }
193
+ }
194
+ </style>