bfg-common 1.4.838 → 1.4.839

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 (76) hide show
  1. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  2. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  3. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  5. package/assets/localization/local_be.json +5 -16
  6. package/assets/localization/local_en.json +7 -19
  7. package/assets/localization/local_hy.json +5 -16
  8. package/assets/localization/local_kk.json +5 -16
  9. package/assets/localization/local_ru.json +6 -17
  10. package/assets/localization/local_zh.json +5 -16
  11. package/components/atoms/collapse/CollapseNav.vue +4 -4
  12. package/components/atoms/dropdown/dropdown/Dropdown.vue +0 -12
  13. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
  14. package/components/atoms/table/dataGrid/lib/utils/export.ts +1 -1
  15. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  16. package/components/common/browse/lib/models/interfaces.ts +5 -5
  17. package/components/common/diagramMain/Header.vue +211 -211
  18. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  19. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  20. package/components/common/diagramMain/lib/models/types.ts +21 -21
  21. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  22. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  23. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  24. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  25. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  26. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  27. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  28. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  29. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  30. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  31. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  32. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  33. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  34. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  35. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  36. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  37. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  38. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  39. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  40. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  41. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  42. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  43. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  44. package/components/common/diagramMain/port/Ports.vue +47 -47
  45. package/components/common/graph/GraphNew.vue +176 -144
  46. package/components/common/modals/confirmByInput/ConfirmByInput.vue +177 -57
  47. package/components/common/monitor/advanced/Advanced.vue +170 -244
  48. package/components/common/monitor/advanced/AdvancedNew.vue +206 -0
  49. package/components/common/monitor/advanced/AdvancedOld.vue +243 -0
  50. package/components/common/monitor/advanced/{GraphView.vue → graphView/GraphView.vue} +170 -180
  51. package/components/common/monitor/advanced/graphView/GraphViewNew.vue +35 -0
  52. package/components/common/monitor/advanced/graphView/GraphViewOld.vue +56 -0
  53. package/components/common/monitor/advanced/table/Table.vue +31 -93
  54. package/components/common/monitor/advanced/table/tableNew/TableNew.vue +85 -0
  55. package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +139 -0
  56. package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +27 -0
  57. package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -0
  58. package/components/common/monitor/advanced/tools/Tools.vue +163 -447
  59. package/components/common/monitor/advanced/tools/ToolsNew.vue +366 -0
  60. package/components/common/monitor/advanced/tools/ToolsOld.vue +447 -0
  61. package/components/common/pages/tasks/Tasks.vue +1 -3
  62. package/components/common/pages/tasks/table/Table.vue +0 -1
  63. package/components/common/pages/tasks/table/errorInfo/ErrorInfo.vue +7 -23
  64. package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +0 -1
  65. package/components/common/pages/tasks/table/lib/config/config.ts +2 -2
  66. package/components/common/portlets/customAttributes/Portlet.vue +2 -9
  67. package/components/common/portlets/customAttributes/lib/config/config.ts +0 -7
  68. package/components/common/portlets/tag/Portlet.vue +2 -9
  69. package/components/common/portlets/tag/lib/config/config.ts +0 -7
  70. package/components/common/tools/Actions.vue +2 -5
  71. package/lib/config/uiTable.ts +20 -0
  72. package/lib/models/store/interfaces.ts +0 -1
  73. package/package.json +3 -3
  74. package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +0 -103
  75. package/components/common/modals/confirmByInput/ConfirmByInputOld.vue +0 -204
  76. /package/components/common/monitor/advanced/table/{lib → tableOld/lib}/config/performanceDatatable.ts +0 -0
@@ -1,93 +1,31 @@
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
- type="checkbox"
13
- class="data-table"
14
- test-id="advances-table"
15
- :head-items="headAInfo"
16
- :body-items="dataBody"
17
- :total-items="dataBody.length"
18
- :total-pages="1"
19
- hide-page-size
20
- >
21
- <template #col1="{ item }">
22
- <div
23
- class="datagrid-column-color-block"
24
- :style="[{ backgroundColor: item.data.color }]"
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/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', str: 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
+ <common-monitor-advanced-table-table-new
3
+ v-if="isNewView"
4
+ :loading="props.loading"
5
+ :items="props.data"
6
+ @select="emits('select', $event)"
7
+ />
8
+ <common-monitor-advanced-table-table-old
9
+ v-else
10
+ :data="props.data"
11
+ @select="emits('select', $event)"
12
+ />
13
+ </template>
14
+
15
+ <script setup lang="ts">
16
+ import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
17
+
18
+ const props = defineProps<{
19
+ loading: boolean
20
+ data: UI_I_PerformanceItem[]
21
+ }>()
22
+ const emits = defineEmits<{
23
+ (event: 'select', str: number[]): void
24
+ }>()
25
+
26
+ const { $store }: any = useNuxtApp()
27
+
28
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
29
+ </script>
30
+
31
+ <style scoped lang="scss"></style>
@@ -0,0 +1,85 @@
1
+ <template>
2
+ <div class="advanced-main-table">
3
+ <ui-data-table
4
+ test-id="advanced-table"
5
+ :data="data"
6
+ :options="options"
7
+ :loading="props.loading"
8
+ :texts="tableTexts"
9
+ @select-row="onSelectRow"
10
+ >
11
+ <template #icon="{ item }">
12
+ <div
13
+ class="color-circle"
14
+ :style="{ backgroundColor: item.data.color }"
15
+ ></div>
16
+ </template>
17
+ <template #zone="{ item }">
18
+ <span class="zone-item-block">
19
+ <span class="icon vsphere-icon-vcenter"></span>
20
+ <span>{{ item.text }}</span>
21
+ </span>
22
+ </template>
23
+ </ui-data-table>
24
+ </div>
25
+ </template>
26
+
27
+ <script setup lang="ts">
28
+ import type {
29
+ UI_I_DataTable,
30
+ UI_I_DataTableOptions,
31
+ UI_I_DataTableBody,
32
+ UI_I_TableTexts,
33
+ } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
34
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
35
+ import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
36
+ import {
37
+ bodyOptions,
38
+ headOptions,
39
+ } from '~/components/common/monitor/advanced/table/tableNew/lib/config/options'
40
+ import { tableTextsFunc } from '~/lib/config/uiTable'
41
+
42
+ const localization = computed<UI_I_Localization>(() => useLocal())
43
+
44
+ const props = defineProps<{
45
+ loading: boolean
46
+ items: UI_I_PerformanceItem[]
47
+ }>()
48
+ const emits = defineEmits<{
49
+ (event: 'select', str: number[]): void
50
+ }>()
51
+
52
+ const data = computed<UI_I_DataTable>(() =>
53
+ bodyOptions(localization.value, props.items)
54
+ )
55
+
56
+ const options = computed<UI_I_DataTableOptions>(() => headOptions())
57
+
58
+ const onSelectRow = (data: UI_I_DataTableBody[]): void => {
59
+ emits(
60
+ 'select',
61
+ data.map((item) => item.row)
62
+ )
63
+ }
64
+
65
+ const tableTexts = computed<UI_I_TableTexts>(() =>
66
+ tableTextsFunc(localization.value)
67
+ )
68
+ </script>
69
+
70
+ <style scoped lang="scss">
71
+ .advanced-main-table {
72
+ margin: 12px 6px 0 6px;
73
+
74
+ .color-circle {
75
+ width: 18px;
76
+ height: 18px;
77
+ border-radius: 32px;
78
+ }
79
+ .zone-item-block {
80
+ display: flex;
81
+ align-items: center;
82
+ column-gap: 4px;
83
+ }
84
+ }
85
+ </style>
@@ -0,0 +1,139 @@
1
+ import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
2
+ import type { UI_I_DataTableOptions } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
3
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
4
+ import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
5
+ import { constructUsersAndGroupsTableItems } from '~/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody'
6
+
7
+ export const bodyOptions = (
8
+ localization: UI_I_Localization,
9
+ items: UI_I_PerformanceItem[]
10
+ ): UI_I_DataTable => {
11
+ const currentBody = constructUsersAndGroupsTableItems(items)
12
+
13
+ return {
14
+ id: 'find-user-or-group-modal-table-config',
15
+ title: `${localization.inventoryMonitor.performanceChartLegend} (${items.length})`,
16
+ selectedRows: [],
17
+ isAllSelected: false,
18
+ header: [
19
+ {
20
+ col: 'col0',
21
+ colName: 'key',
22
+ text: localization.common.key,
23
+ width: '150px',
24
+ isSortable: false,
25
+ sort: 'asc',
26
+ show: true,
27
+ filter: false,
28
+ },
29
+ {
30
+ col: 'col1',
31
+ colName: 'object',
32
+ text: localization.common.object,
33
+ width: '150px',
34
+ isSortable: true,
35
+ sort: 'asc',
36
+ show: true,
37
+ filter: true,
38
+ },
39
+ {
40
+ col: 'col2',
41
+ colName: 'measurement',
42
+ text: localization.common.measurement,
43
+ width: '150px',
44
+ isSortable: true,
45
+ sort: 'asc',
46
+ show: true,
47
+ filter: true,
48
+ },
49
+ {
50
+ col: 'col3',
51
+ colName: 'rollup',
52
+ text: localization.common.rollup,
53
+ width: '150px',
54
+ isSortable: true,
55
+ sort: 'asc',
56
+ show: true,
57
+ filter: true,
58
+ },
59
+ {
60
+ col: 'col4',
61
+ colName: 'units',
62
+ text: localization.common.units,
63
+ width: '150px',
64
+ isSortable: true,
65
+ sort: 'asc',
66
+ show: true,
67
+ filter: true,
68
+ },
69
+ {
70
+ col: 'col5',
71
+ colName: 'latest',
72
+ text: localization.common.latest,
73
+ width: '150px',
74
+ isSortable: true,
75
+ sort: 'asc',
76
+ show: true,
77
+ filter: true,
78
+ },
79
+ {
80
+ col: 'col6',
81
+ colName: 'maximum',
82
+ text: localization.common.maximum,
83
+ width: '150px',
84
+ isSortable: true,
85
+ sort: 'asc',
86
+ show: true,
87
+ filter: true,
88
+ },
89
+ {
90
+ col: 'col7',
91
+ colName: 'minimum',
92
+ text: localization.common.minimum,
93
+ width: '150px',
94
+ isSortable: true,
95
+ sort: 'asc',
96
+ show: true,
97
+ filter: true,
98
+ },
99
+ {
100
+ col: 'col8',
101
+ colName: 'average',
102
+ text: localization.common.average,
103
+ width: '150px',
104
+ isSortable: true,
105
+ sort: 'asc',
106
+ show: true,
107
+ filter: true,
108
+ },
109
+ {
110
+ col: 'col9',
111
+ colName: 'default-actions',
112
+ text: '',
113
+ show: true,
114
+ },
115
+ ],
116
+
117
+ body: currentBody,
118
+ }
119
+ }
120
+
121
+ export const headOptions = (): UI_I_DataTableOptions => {
122
+ return {
123
+ selectType: 'checkbox',
124
+ perPageOptions: [
125
+ { text: '20', value: 20, default: true },
126
+ { text: '50', value: 50 },
127
+ { text: '100', value: 100 },
128
+ ],
129
+ inBlock: true,
130
+ isSelectable: true,
131
+ showPagination: false,
132
+ showPageInfo: false,
133
+ isSortable: true,
134
+ server: false,
135
+ isResizable: true,
136
+ showSearch: false,
137
+ showColumnManager: true,
138
+ }
139
+ }
@@ -0,0 +1,27 @@
1
+ import type { UI_I_DataTableBody } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
2
+ import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
3
+
4
+ export const constructUsersAndGroupsTableItems = (
5
+ items: UI_I_PerformanceItem[]
6
+ ): UI_I_DataTableBody[] => {
7
+ const result: UI_I_DataTableBody[] = []
8
+
9
+ items.forEach((item: UI_I_PerformanceItem, key: number) => {
10
+ result.push({
11
+ row: key,
12
+ data: [
13
+ { col: 'col0', key: 'icon', text: '', data: { color: item.key } },
14
+ { col: 'col1', key: 'zone', text: item.relatedDeviceName },
15
+ { col: 'col2', text: item.measurement },
16
+ { col: 'col3', text: item.rollupType },
17
+ { col: 'col4', text: item.units },
18
+ { col: 'col5', text: String(item.latest) },
19
+ { col: 'col6', text: String(item.maximum) },
20
+ { col: 'col7', text: String(item.minimum) },
21
+ { col: 'col8', text: String(item.average) },
22
+ ],
23
+ })
24
+ })
25
+
26
+ return result
27
+ }
@@ -0,0 +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
+ type="checkbox"
13
+ class="data-table"
14
+ test-id="advances-table"
15
+ :head-items="headAInfo"
16
+ :body-items="dataBody"
17
+ :total-items="dataBody.length"
18
+ :total-pages="1"
19
+ hide-page-size
20
+ >
21
+ <template #col1="{ item }">
22
+ <div
23
+ class="datagrid-column-color-block"
24
+ :style="[{ backgroundColor: item.data.color }]"
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', str: 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>