bfg-common 1.6.30 → 1.6.32

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 (101) hide show
  1. package/assets/localization/local_be.json +245 -6
  2. package/assets/localization/local_en.json +252 -13
  3. package/assets/localization/local_hy.json +246 -7
  4. package/assets/localization/local_kk.json +245 -6
  5. package/assets/localization/local_ru.json +252 -13
  6. package/assets/localization/local_zh.json +245 -6
  7. package/assets/scss/common/theme.scss +2 -2
  8. package/components/atoms/stack/StackBlock.vue +1 -1
  9. package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
  10. package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
  11. package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
  12. package/components/common/certificate/CertificateInfo.vue +7 -1
  13. package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
  14. package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
  15. package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
  16. package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
  17. package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
  18. package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
  19. package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
  20. package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
  21. package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
  22. package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
  23. package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +12 -5
  24. package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
  25. package/components/common/diagramMain/DiagramMain.vue +6 -0
  26. package/components/common/diagramMain/modals/Modals.vue +4 -0
  27. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +2 -2
  28. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
  29. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
  30. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
  31. package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
  32. package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
  33. package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
  34. package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
  35. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +12 -8
  36. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
  37. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
  38. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
  39. package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +5 -9
  40. package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
  41. package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
  42. package/components/common/monitor/advanced/table/lib/models/interfaces.ts +13 -13
  43. package/components/common/monitor/advanced/table/lib/models/types.ts +7 -7
  44. package/components/common/monitor/advanced/table/tableNew/TableNew.vue +93 -93
  45. package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +109 -109
  46. package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +25 -25
  47. package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
  48. package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +125 -125
  49. package/components/common/monitor/lib/utils/local_be.json +702 -702
  50. package/components/common/monitor/lib/utils/local_en.json +702 -702
  51. package/components/common/monitor/lib/utils/local_hy.json +702 -702
  52. package/components/common/monitor/lib/utils/local_kk.json +702 -702
  53. package/components/common/monitor/lib/utils/local_ru.json +702 -702
  54. package/components/common/monitor/lib/utils/local_zh.json +702 -702
  55. package/components/common/monitor/utilization/lib/utils/index.ts +33 -33
  56. package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
  57. package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
  58. package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
  59. package/components/common/pages/hardwareHealth/HardwareHealthNew.vue +1 -1
  60. package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +1 -1
  61. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
  62. package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
  63. package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
  64. package/components/common/pages/tasks/Tasks.vue +4 -1
  65. package/components/common/pages/tasks/table/Table.vue +24 -22
  66. package/components/common/split/vertical/New.vue +42 -8
  67. package/components/common/split/vertical/Old.vue +31 -2
  68. package/components/common/split/vertical/Vertical.vue +4 -0
  69. package/components/common/vm/actions/add/New.vue +21 -6
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +1 -1
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
  74. package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
  75. package/components/common/vm/actions/confirm/Confirm.vue +3 -0
  76. package/components/common/vm/snapshots/DetailView.vue +6 -6
  77. package/components/common/wizards/datastore/add/New.vue +6 -0
  78. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
  79. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
  80. package/components/common/wizards/network/add/Add.vue +13 -2
  81. package/components/common/wizards/network/add/AddNew.vue +22 -26
  82. package/components/common/wizards/network/add/lib/config/initialData.ts +4 -4
  83. package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
  84. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
  85. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
  86. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
  87. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
  88. package/components/common/wizards/network/add/validations/common.ts +1 -1
  89. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +31 -13
  90. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
  91. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +3 -1
  92. package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +5 -4
  93. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +4 -0
  94. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +3 -1
  95. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +8 -3
  96. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
  97. package/lib/models/store/tasks/enums.ts +3 -0
  98. package/lib/models/store/tasks/types.ts +7 -6
  99. package/package.json +2 -2
  100. package/store/tasks/actions.ts +26 -8
  101. package/store/tasks/mappers/recentTasks.ts +1 -0
@@ -1,93 +1,93 @@
1
- <template>
2
- <div class="chart-legend">
3
- <span class="title">{{
4
- localization.inventoryMonitor.performanceChartLegend
5
- }}</span>
6
- <client-only>
7
- <atoms-table-data-grid
8
- v-model:selected-row="selectedRow"
9
- v-model:column-keys="columnKeys"
10
- v-model:page-size="pageSize"
11
- v-model:page="page"
12
- :head-items="headAInfo"
13
- :body-items="dataBody"
14
- :total-items="dataBody.length"
15
- :total-pages="1"
16
- type="checkbox"
17
- class="data-table"
18
- test-id="advances-table"
19
- hide-page-size
20
- >
21
- <template #col1="{ item }">
22
- <div
23
- :style="[{ backgroundColor: item.data.color }]"
24
- class="datagrid-column-color-block"
25
- ></div>
26
- </template>
27
- </atoms-table-data-grid>
28
- </client-only>
29
- </div>
30
- </template>
31
-
32
- <script setup lang="ts">
33
- import type { UI_I_Localization } from '~/lib/models/interfaces'
34
- import type {
35
- UI_I_HeadItem,
36
- UI_I_BodyItem,
37
- UI_I_ColumnKey,
38
- } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
39
- import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
40
- import * as table from '~/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable'
41
-
42
- const localization = computed<UI_I_Localization>(() => useLocal())
43
-
44
- const props = defineProps<{
45
- data: UI_I_PerformanceItem[]
46
- }>()
47
- const emits = defineEmits<{
48
- (event: 'select', value: number[]): void
49
- }>()
50
-
51
- const selectedRow = ref<number[]>([])
52
- const pageSize = ref<number>(100)
53
- const page = ref<number>(1)
54
- const headAInfo = computed<UI_I_HeadItem[]>(() =>
55
- table.headItems(localization.value)
56
- )
57
- const columnKeys = ref<UI_I_ColumnKey[]>(table.columnKeys(localization.value))
58
- watch(localization, () => {
59
- columnKeys.value = table.columnKeys(localization.value)
60
- })
61
- const dataBody = ref<UI_I_BodyItem[][]>([])
62
-
63
- watch(
64
- () => props.data,
65
- (newValue) => {
66
- if (!newValue) return
67
-
68
- dataBody.value = table.bodyItems(newValue)
69
- },
70
- { immediate: true }
71
- )
72
- watch(
73
- selectedRow,
74
- (newValue) => {
75
- emits('select', newValue)
76
- },
77
- { deep: true }
78
- )
79
- </script>
80
-
81
- <style scoped lang="scss">
82
- .chart-legend {
83
- .title {
84
- font-weight: 700;
85
- height: 20px;
86
- }
87
-
88
- .datagrid-column-color-block {
89
- width: 16px;
90
- height: 16px;
91
- }
92
- }
93
- </style>
1
+ <template>
2
+ <div class="chart-legend">
3
+ <span class="title">{{
4
+ localization.inventoryMonitor.performanceChartLegend
5
+ }}</span>
6
+ <client-only>
7
+ <atoms-table-data-grid
8
+ v-model:selected-row="selectedRow"
9
+ v-model:column-keys="columnKeys"
10
+ v-model:page-size="pageSize"
11
+ v-model:page="page"
12
+ :head-items="headAInfo"
13
+ :body-items="dataBody"
14
+ :total-items="dataBody.length"
15
+ :total-pages="1"
16
+ type="checkbox"
17
+ class="data-table"
18
+ test-id="advances-table"
19
+ hide-page-size
20
+ >
21
+ <template #col1="{ item }">
22
+ <div
23
+ :style="[{ backgroundColor: item.data.color }]"
24
+ class="datagrid-column-color-block"
25
+ ></div>
26
+ </template>
27
+ </atoms-table-data-grid>
28
+ </client-only>
29
+ </div>
30
+ </template>
31
+
32
+ <script setup lang="ts">
33
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
34
+ import type {
35
+ UI_I_HeadItem,
36
+ UI_I_BodyItem,
37
+ UI_I_ColumnKey,
38
+ } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
39
+ import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
40
+ import * as table from '~/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable'
41
+
42
+ const localization = computed<UI_I_Localization>(() => useLocal())
43
+
44
+ const props = defineProps<{
45
+ data: UI_I_PerformanceItem[]
46
+ }>()
47
+ const emits = defineEmits<{
48
+ (event: 'select', value: number[]): void
49
+ }>()
50
+
51
+ const selectedRow = ref<number[]>([])
52
+ const pageSize = ref<number>(100)
53
+ const page = ref<number>(1)
54
+ const headAInfo = computed<UI_I_HeadItem[]>(() =>
55
+ table.headItems(localization.value)
56
+ )
57
+ const columnKeys = ref<UI_I_ColumnKey[]>(table.columnKeys(localization.value))
58
+ watch(localization, () => {
59
+ columnKeys.value = table.columnKeys(localization.value)
60
+ })
61
+ const dataBody = ref<UI_I_BodyItem[][]>([])
62
+
63
+ watch(
64
+ () => props.data,
65
+ (newValue) => {
66
+ if (!newValue) return
67
+
68
+ dataBody.value = table.bodyItems(newValue)
69
+ },
70
+ { immediate: true }
71
+ )
72
+ watch(
73
+ selectedRow,
74
+ (newValue) => {
75
+ emits('select', newValue)
76
+ },
77
+ { deep: true }
78
+ )
79
+ </script>
80
+
81
+ <style scoped lang="scss">
82
+ .chart-legend {
83
+ .title {
84
+ font-weight: 700;
85
+ height: 20px;
86
+ }
87
+
88
+ .datagrid-column-color-block {
89
+ width: 16px;
90
+ height: 16px;
91
+ }
92
+ }
93
+ </style>
@@ -1,125 +1,125 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type {
3
- UI_I_HeadItem,
4
- UI_I_BodyItem,
5
- UI_I_ColumnKey,
6
- } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
7
- import type { UI_T_PerformanceColumnKey } from '~/components/common/monitor/advanced/table/lib/models/types'
8
- import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
9
- import {
10
- constructColumnKey,
11
- constructHeadItem,
12
- } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
13
-
14
- export const performanceTableKey: UI_T_PerformanceColumnKey[] = [
15
- 'key',
16
- 'relatedDeviceName',
17
- 'description',
18
- 'units',
19
- 'maximum',
20
- 'minimum',
21
- ]
22
-
23
- const getItems = (
24
- localization: UI_I_Localization
25
- ): [string, boolean, string, string][] => {
26
- const widthCol = '113px'
27
- return [
28
- [
29
- localization.inventoryMonitor.chartColor,
30
- true,
31
- widthCol,
32
- performanceTableKey[0],
33
- ],
34
- [
35
- localization.inventoryMonitor.metricName,
36
- true,
37
- widthCol,
38
- performanceTableKey[1],
39
- ],
40
- [
41
- localization.inventoryMonitor.metricDescription,
42
- true,
43
- widthCol,
44
- performanceTableKey[2],
45
- ],
46
- [
47
- localization.inventoryMonitor.unitOfMeasurement,
48
- true,
49
- widthCol,
50
- performanceTableKey[3],
51
- ],
52
- [localization.common.maximum, true, widthCol, performanceTableKey[4]],
53
- [localization.common.minimum, true, widthCol, performanceTableKey[5]],
54
- ]
55
- }
56
-
57
- export const columnKeys = (
58
- localization: UI_I_Localization
59
- ): UI_I_ColumnKey[] => {
60
- const result: UI_I_ColumnKey[] = []
61
- getItems(localization).forEach((item, i) => {
62
- const col = `col${i + 1}`
63
- result.push(constructColumnKey(col, item[0], item[1]))
64
- })
65
-
66
- return result
67
- }
68
-
69
- export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
70
- const result: UI_I_HeadItem[] = []
71
- getItems(localization).forEach((item, i) => {
72
- const col = `col${i + 1}`
73
- result.push(
74
- constructHeadItem(col, item[0], item[3], false, item[2], '', item[3])
75
- )
76
- })
77
- return result
78
- }
79
-
80
- export const bodyItems = (data: UI_I_PerformanceItem[]): UI_I_BodyItem[][] => {
81
- const bodyItems: UI_I_BodyItem[][] = []
82
-
83
- data.forEach((performance: UI_I_PerformanceItem, key: number) => {
84
- bodyItems.push([
85
- {
86
- key: 'col1',
87
- text: '',
88
- data: { color: performance[performanceTableKey[0]] },
89
- id: key,
90
- testId: `advanced-item-${performanceTableKey[0]}-${key}`,
91
- },
92
- {
93
- key: 'col2',
94
- text: performance[performanceTableKey[1]],
95
- id: key,
96
- testId: `advanced-item-${performanceTableKey[1]}-${key}`,
97
- },
98
- {
99
- key: 'col3',
100
- text: performance[performanceTableKey[2]],
101
- id: key,
102
- testId: `advanced-item-${performanceTableKey[2]}-${key}`,
103
- },
104
- {
105
- key: 'col4',
106
- text: performance[performanceTableKey[3]],
107
- id: key,
108
- testId: `advanced-item-${performanceTableKey[3]}-${key}`,
109
- },
110
- {
111
- key: 'col5',
112
- text: performance[performanceTableKey[4]],
113
- id: key,
114
- testId: `advanced-item-${performanceTableKey[4]}-${key}`,
115
- },
116
- {
117
- key: 'col6',
118
- text: performance[performanceTableKey[5]],
119
- id: key,
120
- testId: `advanced-item-${performanceTableKey[5]}-${key}`,
121
- },
122
- ])
123
- })
124
- return bodyItems
125
- }
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type {
3
+ UI_I_HeadItem,
4
+ UI_I_BodyItem,
5
+ UI_I_ColumnKey,
6
+ } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
7
+ import type { UI_T_PerformanceColumnKey } from '~/components/common/monitor/advanced/table/lib/models/types'
8
+ import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
9
+ import {
10
+ constructColumnKey,
11
+ constructHeadItem,
12
+ } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
13
+
14
+ export const performanceTableKey: UI_T_PerformanceColumnKey[] = [
15
+ 'key',
16
+ 'relatedDeviceName',
17
+ 'description',
18
+ 'units',
19
+ 'maximum',
20
+ 'minimum',
21
+ ]
22
+
23
+ const getItems = (
24
+ localization: UI_I_Localization
25
+ ): [string, boolean, string, string][] => {
26
+ const widthCol = '113px'
27
+ return [
28
+ [
29
+ localization.inventoryMonitor.chartColor,
30
+ true,
31
+ widthCol,
32
+ performanceTableKey[0],
33
+ ],
34
+ [
35
+ localization.inventoryMonitor.metricName,
36
+ true,
37
+ widthCol,
38
+ performanceTableKey[1],
39
+ ],
40
+ [
41
+ localization.inventoryMonitor.metricDescription,
42
+ true,
43
+ widthCol,
44
+ performanceTableKey[2],
45
+ ],
46
+ [
47
+ localization.inventoryMonitor.unitOfMeasurement,
48
+ true,
49
+ widthCol,
50
+ performanceTableKey[3],
51
+ ],
52
+ [localization.common.maximum, true, widthCol, performanceTableKey[4]],
53
+ [localization.common.minimum, true, widthCol, performanceTableKey[5]],
54
+ ]
55
+ }
56
+
57
+ export const columnKeys = (
58
+ localization: UI_I_Localization
59
+ ): UI_I_ColumnKey[] => {
60
+ const result: UI_I_ColumnKey[] = []
61
+ getItems(localization).forEach((item, i) => {
62
+ const col = `col${i + 1}`
63
+ result.push(constructColumnKey(col, item[0], item[1]))
64
+ })
65
+
66
+ return result
67
+ }
68
+
69
+ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
70
+ const result: UI_I_HeadItem[] = []
71
+ getItems(localization).forEach((item, i) => {
72
+ const col = `col${i + 1}`
73
+ result.push(
74
+ constructHeadItem(col, item[0], item[3], false, item[2], '', item[3])
75
+ )
76
+ })
77
+ return result
78
+ }
79
+
80
+ export const bodyItems = (data: UI_I_PerformanceItem[]): UI_I_BodyItem[][] => {
81
+ const bodyItems: UI_I_BodyItem[][] = []
82
+
83
+ data.forEach((performance: UI_I_PerformanceItem, key: number) => {
84
+ bodyItems.push([
85
+ {
86
+ key: 'col1',
87
+ text: '',
88
+ data: { color: performance[performanceTableKey[0]] },
89
+ id: key,
90
+ testId: `advanced-item-${performanceTableKey[0]}-${key}`,
91
+ },
92
+ {
93
+ key: 'col2',
94
+ text: performance[performanceTableKey[1]],
95
+ id: key,
96
+ testId: `advanced-item-${performanceTableKey[1]}-${key}`,
97
+ },
98
+ {
99
+ key: 'col3',
100
+ text: performance[performanceTableKey[2]],
101
+ id: key,
102
+ testId: `advanced-item-${performanceTableKey[2]}-${key}`,
103
+ },
104
+ {
105
+ key: 'col4',
106
+ text: performance[performanceTableKey[3]],
107
+ id: key,
108
+ testId: `advanced-item-${performanceTableKey[3]}-${key}`,
109
+ },
110
+ {
111
+ key: 'col5',
112
+ text: performance[performanceTableKey[4]],
113
+ id: key,
114
+ testId: `advanced-item-${performanceTableKey[4]}-${key}`,
115
+ },
116
+ {
117
+ key: 'col6',
118
+ text: performance[performanceTableKey[5]],
119
+ id: key,
120
+ testId: `advanced-item-${performanceTableKey[5]}-${key}`,
121
+ },
122
+ ])
123
+ })
124
+ return bodyItems
125
+ }