bfg-common 1.5.92 → 1.5.94

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 (112) hide show
  1. package/assets/scss/common/normalize.scss +347 -347
  2. package/components/atoms/alert/Notification.vue +169 -169
  3. package/components/atoms/autocomplete/Autocomplete.vue +361 -362
  4. package/components/atoms/collapse/CollapseNav.vue +169 -169
  5. package/components/atoms/comboDropdownMenu/ComboDropdownMenu.vue +357 -357
  6. package/components/atoms/combobox/Combobox.vue +154 -154
  7. package/components/atoms/datepicker/Datepicker.vue +639 -639
  8. package/components/atoms/dropdown/Portlet.vue +113 -113
  9. package/components/atoms/dropdown/dropdown/Dropdown.vue +168 -168
  10. package/components/atoms/dropdown/tree/Tree.vue +137 -137
  11. package/components/atoms/list/SelectList.vue +63 -63
  12. package/components/atoms/list/dragDropList/DragDropList.vue +148 -148
  13. package/components/atoms/modal/Modal.vue +250 -250
  14. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  15. package/components/atoms/notificationBar/NotificationBar.vue +178 -178
  16. package/components/atoms/popover/Popover.vue +58 -58
  17. package/components/atoms/popover/lib/models/interfaces.ts +4 -4
  18. package/components/atoms/select/TheSelect.vue +187 -187
  19. package/components/atoms/stack/StackBlock.vue +185 -185
  20. package/components/atoms/stack/StackContent.vue +63 -63
  21. package/components/atoms/step/lib/models/verticalStepItem.ts +5 -5
  22. package/components/atoms/switch/Switch.vue +111 -111
  23. package/components/atoms/table/compact/Compact.vue +529 -529
  24. package/components/atoms/table/dataGrid/DataGrid.vue +1716 -1713
  25. package/components/atoms/table/dataGrid/DataGridPage.vue +195 -195
  26. package/components/atoms/table/info/Info.vue +2 -2
  27. package/components/atoms/table/simpleEvent/SimpleEvent.vue +98 -98
  28. package/components/atoms/table/simpleInfo/SimpleInfo.vue +73 -73
  29. package/components/atoms/tabs/Tabs.vue +217 -217
  30. package/components/atoms/wizard/Wizard.vue +341 -341
  31. package/components/common/accordion/Recursion.vue +222 -222
  32. package/components/common/adapterManager/AddAdapterModal.vue +561 -561
  33. package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +30 -30
  34. package/components/common/adapterManager/ui/table/Table.vue +162 -162
  35. package/components/common/browse/BrowseNew.vue +237 -237
  36. package/components/common/browse/BrowseOld.vue +217 -217
  37. package/components/common/browse/blocks/TitleNew.vue +145 -145
  38. package/components/common/browse/blocks/TitleOld.vue +91 -91
  39. package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
  40. package/components/common/chartOptionsModal/counters/timespan/form/FormNew.vue +262 -262
  41. package/components/common/context/Context.vue +111 -111
  42. package/components/common/context/recursion/RecursionOld.vue +228 -228
  43. package/components/common/details/DetailsItem.vue +109 -109
  44. package/components/common/feedback/Buttons.vue +229 -229
  45. package/components/common/feedback/Feedback.vue +270 -270
  46. package/components/common/feedback/Message.vue +519 -519
  47. package/components/common/graph/graphNew/GraphNew.vue +194 -194
  48. package/components/common/graph/lib/utils/renderGraph.ts +389 -389
  49. package/components/common/layout/theHeader/feedback/new/New.vue +227 -227
  50. package/components/common/layout/theHeader/feedback/new/additionalDetails/AdditionalDetails.vue +606 -606
  51. package/components/common/layout/theHeader/feedback/new/additionalDetails/Headline.vue +98 -98
  52. package/components/common/layout/theHeader/feedback/new/description/Description.vue +59 -59
  53. package/components/common/layout/theHeader/feedback/new/email/Email.vue +43 -43
  54. package/components/common/layout/theHeader/feedback/new/subtitle/Subtitle.vue +103 -103
  55. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +112 -112
  56. package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +80 -80
  57. package/components/common/layout/theHeader/helpMenu/helpMenuOld/HelpMenuOld.vue +1 -1
  58. package/components/common/layout/theHeader/modals/Reconnect.vue +2 -2
  59. package/components/common/layout/theHeader/modals/RedirectLogin.vue +3 -3
  60. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +1 -1
  61. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +8 -8
  62. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordOld.vue +3 -3
  63. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +1 -1
  64. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesOld.vue +1 -1
  65. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +1 -1
  66. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguageNew.vue +1 -1
  67. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguageOld.vue +2 -5
  68. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsoleOld.vue +1 -1
  69. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/InventoryNew.vue +1 -1
  70. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +2 -2
  71. package/components/common/layout/theHeader/userMenu/userMenuNew/lib/config/dropMenu.ts +1 -1
  72. package/components/common/layout/theHeader/userMenu/userMenuOld/UserMenuOld.vue +1 -1
  73. package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +2 -2
  74. package/components/common/modals/Rename.vue +2 -2
  75. package/components/common/modals/confirmByInput/ConfirmByInput.vue +2 -3
  76. package/components/common/modals/confirmByInput/ConfirmByInputOld.vue +3 -3
  77. package/components/common/modals/confirmation/ConfirmationOld.vue +1 -1
  78. package/components/common/modals/unsavedChanges/UnsavedChanges.vue +1 -1
  79. package/components/common/monitor/advanced/Advanced.vue +1 -1
  80. package/components/common/monitor/advanced/AdvancedNew.vue +1 -1
  81. package/components/common/monitor/advanced/AdvancedOld.vue +1 -1
  82. package/components/common/monitor/advanced/graphView/GraphViewNew.vue +1 -1
  83. package/components/common/monitor/advanced/graphView/GraphViewOld.vue +1 -1
  84. package/components/common/monitor/advanced/table/Table.vue +1 -1
  85. package/components/common/monitor/advanced/table/tableNew/TableNew.vue +2 -2
  86. package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +2 -2
  87. package/components/common/monitor/advanced/tools/ToolsOld.vue +2 -2
  88. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +1 -1
  89. package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationOld.vue +1 -1
  90. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +1 -1
  91. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
  92. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +1 -1
  93. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig.ts +2 -2
  94. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +10 -3
  95. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/ObjectNew.vue +1 -1
  96. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectOld/ObjectOld.vue +2 -2
  97. package/components/common/monitor/advanced/tools/lib/utils/countCores.ts +1 -1
  98. package/components/common/monitor/lib/models/interfaces.ts +1 -1
  99. package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalOld.vue +3 -3
  100. package/components/common/monitor/overview/filters/customIntervalModal/customIntervalModalNew/CustomIntervalModalNew.vue +4 -3
  101. package/components/common/monitor/resourceAllocation/lib/models/interfaces.ts +8 -8
  102. package/components/common/monitor/resourceAllocation/resourceAllocation.vue +2 -2
  103. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +1 -1
  104. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/Notification.vue +1 -1
  105. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +1 -1
  106. package/components/common/pages/hardwareHealth/tableView/lib/config/alertWarningTable.ts +1 -1
  107. package/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable.ts +5 -5
  108. package/components/common/wizards/vm/migrate/Migrate.vue +39 -2
  109. package/components/common/wizards/vm/migrate/vmOrigin/VmOrigin.vue +92 -0
  110. package/components/common/wizards/vm/migrate/vmOrigin/lib/models/interfaces.ts +19 -0
  111. package/components/common/wizards/vm/migrate/vmOrigin/lib/utils/constructItems.ts +62 -0
  112. package/package.json +1 -1
@@ -12,6 +12,17 @@
12
12
  @hide="onHideModal"
13
13
  @submit="onFinish"
14
14
  >
15
+ <template #description="{ selectedStep }">
16
+ <div class="flex items-center justify-between">
17
+ <h2 class="custom-sub-title">
18
+ {{ selectedStep.subTitle }}
19
+ </h2>
20
+ <common-wizards-vm-migrate-vm-origin
21
+ v-if="props.vmOrigin"
22
+ :vm-origin="props.vmOrigin"
23
+ />
24
+ </div>
25
+ </template>
15
26
  <template #modalBody="{ selectedStep }">
16
27
  <common-pages-scheduled-tasks-modals-common-new-task-form
17
28
  v-if="selectedStep.id === dynamicSteps.schedulingOptions"
@@ -100,6 +111,7 @@ import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models
100
111
  import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/interfaces'
101
112
  import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
102
113
  import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
114
+ import type { UI_I_VmOrigin } from '~/components/common/wizards/vm/migrate/vmOrigin/lib/models/interfaces'
103
115
  import { constructDataReadyViewFunc } from '~/components/common/wizards/vm/migrate/lib/config/constructDataReady'
104
116
  import * as validation from '~/components/common/wizards/vm/migrate/lib/validations'
105
117
 
@@ -120,9 +132,11 @@ const props = withDefaults(
120
132
  vmState?: number
121
133
  vmInfo?: any | null
122
134
  networks?: any
135
+ vmOrigin?: UI_I_VmOrigin | null
123
136
  }>(),
124
137
  {
125
138
  computeResourceTree: null,
139
+ vmOrigin: null,
126
140
  }
127
141
  )
128
142
  const emits = defineEmits<{
@@ -194,7 +208,13 @@ const validationFunc = async (
194
208
  ): Promise<UI_I_ValidationReturn> => {
195
209
  let stepHasError = false
196
210
 
197
- if (wizard.isValidateForStep(dynamicSteps.selectComputeResource, currentStep.id, nextStep.id)) {
211
+ if (
212
+ wizard.isValidateForStep(
213
+ dynamicSteps.selectComputeResource,
214
+ currentStep.id,
215
+ nextStep.id
216
+ )
217
+ ) {
198
218
  const nameValidation = await validation.checkSelectedResourceSync(
199
219
  localization.value,
200
220
  form.value.resource,
@@ -207,7 +227,13 @@ const validationFunc = async (
207
227
  stepHasError = nameValidation.stepHasError
208
228
  }
209
229
 
210
- if (wizard.isValidateForStep(dynamicSteps.selectStorage, currentStep.id, nextStep.id)) {
230
+ if (
231
+ wizard.isValidateForStep(
232
+ dynamicSteps.selectStorage,
233
+ currentStep.id,
234
+ nextStep.id
235
+ )
236
+ ) {
211
237
  const nameValidation = await validation.checkSelectedDatastoreSync(
212
238
  localization.value,
213
239
  form.value.storage,
@@ -295,9 +321,20 @@ const onHideAlert = (stepId: number): void => {
295
321
  <style scoped lang="scss">
296
322
  @import 'assets/scss/common/mixins.scss';
297
323
  .migrate-vm {
324
+ .custom-sub-title {
325
+ font-weight: 400;
326
+ font-size: 13px;
327
+ line-height: inherit;
328
+ color: var(--add-vm-context-sub-title);
329
+ }
330
+
298
331
  :deep(.modal-body) {
299
332
  height: inherit;
300
333
  @include flex($dir: column);
334
+
335
+ .content-heading > div {
336
+ width: 100%;
337
+ }
301
338
  }
302
339
  }
303
340
  </style>
@@ -0,0 +1,92 @@
1
+ <template>
2
+ <div class="vm-origin-info-tooltip">
3
+ <div
4
+ id="vm-origin-trigger"
5
+ class="tooltip-trigger-block flex items-center"
6
+ @click="isShowTooltip = !isShowTooltip"
7
+ >
8
+ <span>{{ localization.common.vmOrigin }}</span>
9
+ <atoms-the-icon
10
+ name="info-circle"
11
+ width="16px"
12
+ height="16px"
13
+ fill="#0072a3"
14
+ />
15
+ </div>
16
+
17
+ <atoms-tooltip-signpost
18
+ v-if="isShowTooltip"
19
+ elem-id="vm-origin-trigger"
20
+ @hide="isShowTooltip = false"
21
+ >
22
+ <slot name="content">
23
+ <div class="vm-origin-info-tooltip-block">
24
+ <div v-for="item in itemsArray" :key="item.key" class="item-row">
25
+ <span class="title-row">{{ item.key }}</span>
26
+ <div
27
+ v-for="item2 in item.value"
28
+ :key="item2.name"
29
+ class="flex items-center"
30
+ >
31
+ <span :class="item2.iconName"></span>
32
+ <span class="item-name">{{ item2.name }}</span>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </slot>
37
+ </atoms-tooltip-signpost>
38
+ </div>
39
+ </template>
40
+
41
+ <script setup lang="ts">
42
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
43
+ import type {
44
+ UI_I_VmOrigin,
45
+ UI_I_VmOriginArrayItem,
46
+ } from '~/components/common/wizards/vm/migrate/vmOrigin/lib/models/interfaces'
47
+ import { constructOriginItems } from '~/components/common/wizards/vm/migrate/vmOrigin/lib/utils/constructItems'
48
+
49
+ const props = withDefaults(
50
+ defineProps<{
51
+ vmOrigin?: UI_I_VmOrigin | null
52
+ }>(),
53
+ {
54
+ vmOrigin: null,
55
+ }
56
+ )
57
+
58
+ const localization = computed<UI_I_Localization>(() => useLocal())
59
+
60
+ const itemsArray = computed<UI_I_VmOriginArrayItem[]>(() =>
61
+ constructOriginItems(props.vmOrigin, localization.value)
62
+ )
63
+
64
+ const isShowTooltip = ref<boolean>(false)
65
+ </script>
66
+
67
+ <style scoped lang="scss">
68
+ .vm-origin-info-tooltip {
69
+ :deep(.tooltip-content) {
70
+ background-color: #ffffff;
71
+ }
72
+ .tooltip-trigger-block {
73
+ cursor: pointer;
74
+ color: #0072a3;
75
+
76
+ &:hover {
77
+ text-decoration: underline;
78
+ }
79
+ }
80
+
81
+ .vm-origin-info-tooltip-block {
82
+ .title-row {
83
+ font-weight: 700;
84
+ color: #565656;
85
+ margin-bottom: 5px;
86
+ }
87
+ .item-name {
88
+ margin-left: 5px;
89
+ }
90
+ }
91
+ }
92
+ </style>
@@ -0,0 +1,19 @@
1
+ export interface API_UI_I_VmOriginItemItem {
2
+ name: string
3
+ state: number
4
+ }
5
+ export interface UI_I_VmOriginItemItem extends API_UI_I_VmOriginItemItem {}
6
+ export interface API_UI_I_VmOrigin {
7
+ host: API_UI_I_VmOriginItemItem | null
8
+ network: API_UI_I_VmOriginItemItem | null
9
+ storage: API_UI_I_VmOriginItemItem | null
10
+ }
11
+ export interface UI_I_VmOrigin extends API_UI_I_VmOrigin {}
12
+
13
+ export interface UI_I_VmOriginArrayItemValue extends UI_I_VmOriginItemItem {
14
+ iconName: string
15
+ }
16
+ export interface UI_I_VmOriginArrayItem {
17
+ key: string
18
+ value: UI_I_VmOriginArrayItemValue[]
19
+ }
@@ -0,0 +1,62 @@
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type {
3
+ UI_I_VmOrigin,
4
+ UI_I_VmOriginArrayItem,
5
+ } from '~/components/common/wizards/vm/migrate/vmOrigin/lib/models/interfaces'
6
+
7
+ const getTitleRow = (
8
+ value: string,
9
+ localization: UI_I_Localization
10
+ ): string => {
11
+ switch (value) {
12
+ case 'cluster':
13
+ return localization.common.cluster
14
+ case 'host':
15
+ return localization.common.host
16
+ case 'network':
17
+ return localization.common.network
18
+ case 'storage':
19
+ return localization.common.storage
20
+ default:
21
+ return value
22
+ }
23
+ }
24
+
25
+ const getIconItem = (value: string): string => {
26
+ switch (value) {
27
+ case 'cluster':
28
+ return 'vsphere-icon-cluster'
29
+ case 'host':
30
+ return 'vsphere-icon-host'
31
+ case 'network':
32
+ return 'vsphere-icon-network'
33
+ case 'storage':
34
+ return 'vsphere-icon-datastore'
35
+ default:
36
+ return ''
37
+ }
38
+ }
39
+
40
+ export const constructOriginItems = (
41
+ data: UI_I_VmOrigin | null,
42
+ localization: UI_I_Localization
43
+ ): UI_I_VmOriginArrayItem[] =>
44
+ data
45
+ ? Object.entries(data).map(([key, value]) => {
46
+ const newValue = []
47
+
48
+ if (value) {
49
+ if (!value.length)
50
+ newValue.push({
51
+ name: value.name,
52
+ state: value.state,
53
+ iconName: getIconItem(key),
54
+ })
55
+ else newValue.push(...value)
56
+ }
57
+ return {
58
+ key: getTitleRow(key, localization),
59
+ value: newValue,
60
+ }
61
+ })
62
+ : []
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.92",
4
+ "version": "1.5.94",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",