bfg-common 1.4.853 → 1.4.855
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.
- package/.idea/inspectionProfiles/Project_Default.xml +1 -2
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +1 -2
- package/assets/localization/local_en.json +1 -2
- package/assets/localization/local_hy.json +1 -2
- package/assets/localization/local_kk.json +1 -2
- package/assets/localization/local_ru.json +1 -2
- package/assets/localization/local_zh.json +1 -2
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/chartOptionsModal/counters/timespan/form/Form.vue +313 -40
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/monitor/advanced/Advanced.vue +3 -0
- package/components/common/monitor/advanced/AdvancedNew.vue +2 -0
- package/components/common/monitor/advanced/AdvancedOld.vue +2 -0
- package/components/common/monitor/advanced/tools/Tools.vue +3 -0
- package/components/common/monitor/advanced/tools/ToolsNew.vue +2 -0
- package/components/common/monitor/advanced/tools/ToolsOld.vue +2 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +114 -113
- package/components/common/monitor/advanced/tools/chartOptionsModal/Notification.vue +20 -13
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +73 -30
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +56 -75
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +58 -19
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{tableOld/lib → lib}/config/tableConfig.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1040 -1040
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +47 -71
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +26 -21
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +29 -17
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalNew.vue +3 -8
- package/components/common/pages/tasks/Tasks.vue +14 -0
- package/components/common/pages/tasks/table/Table.vue +43 -0
- package/components/common/pages/tasks/table/lib/config/config.ts +1 -1
- package/package.json +2 -2
- package/components/common/chartOptionsModal/counters/timespan/form/FormNew.vue +0 -254
- package/components/common/chartOptionsModal/counters/timespan/form/FormOld.vue +0 -372
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +0 -190
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +0 -189
- package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationNew.vue +0 -20
- package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationOld.vue +0 -27
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsNew.vue +0 -145
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +0 -108
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +0 -97
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersOld.vue +0 -110
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +0 -46
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/options.ts +0 -19
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/tableData.ts +0 -71
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/utils/constructTable.ts +0 -29
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/TableOld.vue +0 -85
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +0 -150
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +0 -95
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/ObjectNew.vue +0 -56
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/options.ts +0 -25
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/tableData.ts +0 -47
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/utils/constructTable.ts +0 -22
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectOld/ObjectOld.vue +0 -84
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/MetricsOld.vue +0 -32
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/MetricsNew.vue +0 -101
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/lib/utils/constructAccordion.ts +0 -32
- package/lib/utils/date.ts +0 -12
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{tableOld/lib → lib}/models/types.ts +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-container">
|
|
3
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-table
|
|
4
|
-
:chart="props.chart"
|
|
5
|
-
:type="props.type"
|
|
6
|
-
:selected-keys="props.selectedKeys"
|
|
7
|
-
:total-cores="props.totalCores"
|
|
8
|
-
@select-row="emits('select-row', $event)"
|
|
9
|
-
@total-items="totalMetricItemsLocal = $event"
|
|
10
|
-
/>
|
|
11
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-timespan
|
|
12
|
-
:type="props.type"
|
|
13
|
-
:chart="props.chart"
|
|
14
|
-
:language="props.language"
|
|
15
|
-
:selected-chart-type="props.selectedChartType"
|
|
16
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
17
|
-
:units-count="props.unitsCount"
|
|
18
|
-
:period-type="props.periodType"
|
|
19
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
20
|
-
:custom-date-from="props.customDateFrom"
|
|
21
|
-
:custom-date-to="props.customDateTo"
|
|
22
|
-
:custom-time-from="props.customTimeFrom"
|
|
23
|
-
:custom-time-to="props.customTimeTo"
|
|
24
|
-
:total-cores="props.totalCores"
|
|
25
|
-
:host-id="props.hostId"
|
|
26
|
-
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
27
|
-
:total-metric-items="totalMetricItemsLocal"
|
|
28
|
-
:selected-objects="props.selectedObjects"
|
|
29
|
-
:objects-loading="props.objectsLoading"
|
|
30
|
-
:objects-data="props.objectsData"
|
|
31
|
-
:valid-date-end="props.validDateEnd"
|
|
32
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
33
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
34
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
35
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
36
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
37
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
38
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
39
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
40
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
41
|
-
@select-objects="emits('select-objects', $event)"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script setup lang="ts">
|
|
47
|
-
import type {
|
|
48
|
-
UI_T_ChartHost,
|
|
49
|
-
UI_T_ChartVm,
|
|
50
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
51
|
-
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
52
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
53
|
-
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
54
|
-
|
|
55
|
-
const totalMetricItemsLocal = defineModel<number>('totalMetricItems', {
|
|
56
|
-
required: true,
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
const props = defineProps<{
|
|
60
|
-
language: string
|
|
61
|
-
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
62
|
-
type: UI_T_AdvancedType
|
|
63
|
-
selectedKeys: number[]
|
|
64
|
-
selectedChartType: string
|
|
65
|
-
selectedTimespanType: string
|
|
66
|
-
unitsCount: number
|
|
67
|
-
periodType: string
|
|
68
|
-
selectedCustomTime: string
|
|
69
|
-
customDateFrom: string
|
|
70
|
-
customDateTo: string
|
|
71
|
-
customTimeFrom: string
|
|
72
|
-
customTimeTo: string
|
|
73
|
-
totalCores: number
|
|
74
|
-
hostId: string
|
|
75
|
-
selectedMetricsKeys: number[]
|
|
76
|
-
selectedObjects: string
|
|
77
|
-
objectsLoading: boolean
|
|
78
|
-
objectsData: UI_I_ObjectItem[]
|
|
79
|
-
validDateEnd: number
|
|
80
|
-
}>()
|
|
81
|
-
|
|
82
|
-
const emits = defineEmits<{
|
|
83
|
-
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
84
|
-
(event: 'update-chart-type', value: string): void
|
|
85
|
-
(event: 'update-custom-time', value: string): void
|
|
86
|
-
(event: 'update-timespan-type', value: string): void
|
|
87
|
-
(event: 'update-unit-count', value: number): void
|
|
88
|
-
(event: 'update-period-type', value: string): void
|
|
89
|
-
(event: 'update-custom-date-from', value: string): void
|
|
90
|
-
(event: 'update-custom-date-to', value: string): void
|
|
91
|
-
(event: 'update-custom-time-from', value: string): void
|
|
92
|
-
(event: 'update-custom-time-to', value: string): void
|
|
93
|
-
(event: 'select-objects', value: string): void
|
|
94
|
-
}>()
|
|
95
|
-
</script>
|
|
96
|
-
|
|
97
|
-
<style scoped lang="scss">
|
|
98
|
-
.chart-option-counters-container {
|
|
99
|
-
margin-top: 20px;
|
|
100
|
-
flex-basis: 80%;
|
|
101
|
-
padding-left: 15px;
|
|
102
|
-
max-width: 80%;
|
|
103
|
-
}
|
|
104
|
-
@media (max-width: 1024px) {
|
|
105
|
-
.chart-option-counters-container {
|
|
106
|
-
max-width: unset;
|
|
107
|
-
padding-left: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
</style>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="chart-options-table-container">
|
|
3
|
-
<ui-data-table
|
|
4
|
-
test-id="chart-options-table"
|
|
5
|
-
:data="dataLocal"
|
|
6
|
-
:options="options"
|
|
7
|
-
size="sm"
|
|
8
|
-
@select-row="onSelectRow"
|
|
9
|
-
/>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script setup lang="ts">
|
|
14
|
-
import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
15
|
-
import type { UI_I_DataTableBody } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
16
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
18
|
-
import { options } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/options'
|
|
19
|
-
import { tableDataFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/tableData'
|
|
20
|
-
|
|
21
|
-
const selectedCountersLocal = defineModel<number[]>('selectedCounters', {
|
|
22
|
-
required: true,
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
const props = defineProps<{
|
|
26
|
-
counters: UI_I_AdvancedCounterItem[]
|
|
27
|
-
}>()
|
|
28
|
-
|
|
29
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
30
|
-
|
|
31
|
-
const dataLocal = computed<UI_I_DataTable>(() =>
|
|
32
|
-
tableDataFunc(localization.value, props.counters, selectedCountersLocal.value)
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
36
|
-
selectedCountersLocal.value = value.map((item) => item.row)
|
|
37
|
-
}
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<style scoped lang="scss">
|
|
41
|
-
.chart-options-table-container {
|
|
42
|
-
:deep(.bottom-grid-content) {
|
|
43
|
-
max-height: 235px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DataTableOptions } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const options: UI_I_DataTableOptions = {
|
|
4
|
-
perPageOptions: [
|
|
5
|
-
{ text: '10', value: 10 },
|
|
6
|
-
{ text: '25', value: 25 },
|
|
7
|
-
{ text: '50', value: 50 },
|
|
8
|
-
{ text: '100', value: 100 },
|
|
9
|
-
],
|
|
10
|
-
isSelectable: true,
|
|
11
|
-
showPagination: false,
|
|
12
|
-
showPageInfo: false,
|
|
13
|
-
isSortable: true,
|
|
14
|
-
server: false,
|
|
15
|
-
isResizable: true,
|
|
16
|
-
showSearch: false,
|
|
17
|
-
showColumnManager: false,
|
|
18
|
-
inBlock: true,
|
|
19
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
4
|
-
import { constructTable } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/utils/constructTable'
|
|
5
|
-
|
|
6
|
-
export const tableDataFunc = (
|
|
7
|
-
localization: UI_I_Localization,
|
|
8
|
-
items: UI_I_AdvancedCounterItem[],
|
|
9
|
-
selectedKeys: number[]
|
|
10
|
-
): UI_I_DataTable => {
|
|
11
|
-
const currentBody = constructTable(items)
|
|
12
|
-
const selectedRows: number[] = []
|
|
13
|
-
|
|
14
|
-
currentBody.forEach((item) => {
|
|
15
|
-
if (selectedKeys.includes(item.row)) {
|
|
16
|
-
selectedRows.push(item.row)
|
|
17
|
-
}
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
return {
|
|
21
|
-
id: 'chart-options-table',
|
|
22
|
-
selectedRows,
|
|
23
|
-
isAllSelected: false,
|
|
24
|
-
title: `${localization.common.counters} (${items.length})`,
|
|
25
|
-
subTitle: '',
|
|
26
|
-
header: [
|
|
27
|
-
{
|
|
28
|
-
col: 'col0',
|
|
29
|
-
colName: 'name',
|
|
30
|
-
text: localization.common.name,
|
|
31
|
-
isSortable: true,
|
|
32
|
-
sort: 'asc',
|
|
33
|
-
width: '20%',
|
|
34
|
-
show: true,
|
|
35
|
-
filter: true,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
col: 'col1',
|
|
39
|
-
colName: 'description',
|
|
40
|
-
text: localization.common.description,
|
|
41
|
-
isSortable: true,
|
|
42
|
-
sort: 'asc',
|
|
43
|
-
width: '50%',
|
|
44
|
-
show: true,
|
|
45
|
-
filter: true,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
col: 'col2',
|
|
49
|
-
colName: 'measurement',
|
|
50
|
-
text: localization.common.measurement,
|
|
51
|
-
isSortable: true,
|
|
52
|
-
sort: 'asc',
|
|
53
|
-
width: '20%',
|
|
54
|
-
show: true,
|
|
55
|
-
filter: true,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
col: 'col3',
|
|
59
|
-
colName: 'units',
|
|
60
|
-
text: localization.common.units,
|
|
61
|
-
isSortable: true,
|
|
62
|
-
sort: 'asc',
|
|
63
|
-
width: '10%',
|
|
64
|
-
show: true,
|
|
65
|
-
filter: true,
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
|
|
69
|
-
body: currentBody,
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DataTableBody } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
3
|
-
|
|
4
|
-
export const constructTable = (
|
|
5
|
-
items: UI_I_AdvancedCounterItem[]
|
|
6
|
-
): UI_I_DataTableBody[] =>
|
|
7
|
-
items.map((item, key) => {
|
|
8
|
-
return {
|
|
9
|
-
row: key,
|
|
10
|
-
data: [
|
|
11
|
-
{
|
|
12
|
-
col: 'col0',
|
|
13
|
-
text: item.name,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
col: 'col1',
|
|
17
|
-
text: item.description,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
col: 'col2',
|
|
21
|
-
text: item.measurement,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
col: 'col3',
|
|
25
|
-
text: item.units,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
}
|
|
29
|
-
})
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
-
<span class="chart-options-grid-title">{{
|
|
4
|
-
localization.inventoryMonitor.selectCountersForThisChart
|
|
5
|
-
}}</span>
|
|
6
|
-
|
|
7
|
-
<atoms-table-data-grid
|
|
8
|
-
v-model:selected-row="selectedCountersLocal"
|
|
9
|
-
v-model:column-keys="columnItems"
|
|
10
|
-
v-model:page-size="paginationLocal.pageSize"
|
|
11
|
-
v-model:page="paginationLocal.page"
|
|
12
|
-
type="checkbox"
|
|
13
|
-
class="data-table"
|
|
14
|
-
test-id="chart-options-table"
|
|
15
|
-
:head-items="headItems"
|
|
16
|
-
:body-items="bodyItems"
|
|
17
|
-
:total-items="props.totalItems"
|
|
18
|
-
:total-pages="props.totalPages"
|
|
19
|
-
hide-footer
|
|
20
|
-
server-off
|
|
21
|
-
@change="emits('change-row', $event)"
|
|
22
|
-
/>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script setup lang="ts">
|
|
27
|
-
import type {
|
|
28
|
-
UI_I_HeadItem,
|
|
29
|
-
UI_I_BodyItem,
|
|
30
|
-
UI_I_ColumnKey,
|
|
31
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
32
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
33
|
-
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
34
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
35
|
-
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig'
|
|
36
|
-
|
|
37
|
-
const selectedCountersLocal = defineModel<number[]>('selectedCounters', {
|
|
38
|
-
required: true,
|
|
39
|
-
})
|
|
40
|
-
const paginationLocal = defineModel<UI_I_Pagination>('pagination', {
|
|
41
|
-
required: true,
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
const props = defineProps<{
|
|
45
|
-
counters: UI_I_AdvancedCounterItem[]
|
|
46
|
-
totalItems: number
|
|
47
|
-
totalPages: number
|
|
48
|
-
}>()
|
|
49
|
-
|
|
50
|
-
const emits = defineEmits<{
|
|
51
|
-
(event: 'change-row', value: number[]): void
|
|
52
|
-
}>()
|
|
53
|
-
|
|
54
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
-
|
|
56
|
-
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
57
|
-
table.columnKeys(localization.value)
|
|
58
|
-
)
|
|
59
|
-
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
60
|
-
table.headItems(localization.value)
|
|
61
|
-
)
|
|
62
|
-
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
63
|
-
watch(
|
|
64
|
-
() => props.counters,
|
|
65
|
-
(newValue) => {
|
|
66
|
-
if (!newValue.length) return
|
|
67
|
-
|
|
68
|
-
bodyItems.value = table.bodyItems(newValue)
|
|
69
|
-
},
|
|
70
|
-
{ deep: true, immediate: true }
|
|
71
|
-
)
|
|
72
|
-
</script>
|
|
73
|
-
|
|
74
|
-
<style scoped lang="scss">
|
|
75
|
-
.chart-option-counters-vertical-split {
|
|
76
|
-
.chart-options-grid-title {
|
|
77
|
-
display: block;
|
|
78
|
-
margin-bottom: -20px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:deep(.datagrid-table-wrapper) {
|
|
82
|
-
max-height: 176px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</style>
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="timespan-container">
|
|
3
|
-
<common-chart-options-modal-counters-timespan-form
|
|
4
|
-
:language="props.language"
|
|
5
|
-
:selected-chart-type="props.selectedChartType"
|
|
6
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
-
:units-count="props.unitsCount"
|
|
8
|
-
:period-type="props.periodType"
|
|
9
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
-
:custom-date-from="props.customDateFrom"
|
|
11
|
-
:custom-date-to="props.customDateTo"
|
|
12
|
-
:custom-time-from="props.customTimeFrom"
|
|
13
|
-
:custom-time-to="props.customTimeTo"
|
|
14
|
-
:valid-date-end="props.validDateEnd"
|
|
15
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
16
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
17
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
18
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
19
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
20
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
21
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
22
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
23
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
24
|
-
/>
|
|
25
|
-
<div class="timespan-object-container">
|
|
26
|
-
<div class="chart-type-container">
|
|
27
|
-
<p class="title-block">{{ localization.inventoryMonitor.chartType }}</p>
|
|
28
|
-
<div class="radio-buttons-container">
|
|
29
|
-
<ui-radio
|
|
30
|
-
v-model="chartTypeLocal"
|
|
31
|
-
:label="localization.inventoryMonitor.lineGraph"
|
|
32
|
-
test-id="line-graph"
|
|
33
|
-
value="spline"
|
|
34
|
-
size="sm"
|
|
35
|
-
/>
|
|
36
|
-
<ui-radio
|
|
37
|
-
v-model="chartTypeLocal"
|
|
38
|
-
:label="localization.inventoryMonitor.stackedGraph"
|
|
39
|
-
test-id="stacked-graph"
|
|
40
|
-
value="area"
|
|
41
|
-
size="sm"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-timespan-object
|
|
46
|
-
:type="props.type"
|
|
47
|
-
:chart="props.chart"
|
|
48
|
-
:total-cores="props.totalCores"
|
|
49
|
-
:host-id="props.hostId"
|
|
50
|
-
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
51
|
-
:total-metric-items="props.totalMetricItems"
|
|
52
|
-
:selected-objects="props.selectedObjects"
|
|
53
|
-
:loading="props.objectsLoading"
|
|
54
|
-
:current-items="props.objectsData"
|
|
55
|
-
@select-objects="emits('select-objects', $event)"
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</template>
|
|
60
|
-
|
|
61
|
-
<script setup lang="ts">
|
|
62
|
-
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
63
|
-
import type {
|
|
64
|
-
UI_T_ChartHost,
|
|
65
|
-
UI_T_ChartVm,
|
|
66
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
67
|
-
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
68
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
69
|
-
|
|
70
|
-
const props = defineProps<{
|
|
71
|
-
type: UI_T_AdvancedType
|
|
72
|
-
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
73
|
-
language: string
|
|
74
|
-
selectedChartType: string
|
|
75
|
-
selectedTimespanType: string
|
|
76
|
-
unitsCount: number
|
|
77
|
-
periodType: string
|
|
78
|
-
selectedCustomTime: string
|
|
79
|
-
customDateFrom: string
|
|
80
|
-
customDateTo: string
|
|
81
|
-
customTimeFrom: string
|
|
82
|
-
customTimeTo: string
|
|
83
|
-
totalCores: number
|
|
84
|
-
hostId: string
|
|
85
|
-
selectedMetricsKeys: number[]
|
|
86
|
-
totalMetricItems: number
|
|
87
|
-
selectedObjects: string
|
|
88
|
-
objectsLoading: boolean
|
|
89
|
-
objectsData: UI_I_ObjectItem[]
|
|
90
|
-
validDateEnd: number
|
|
91
|
-
}>()
|
|
92
|
-
|
|
93
|
-
const emits = defineEmits<{
|
|
94
|
-
(event: 'update-chart-type', value: string): void
|
|
95
|
-
(event: 'update-custom-time', value: string): void
|
|
96
|
-
(event: 'update-timespan-type', value: string): void
|
|
97
|
-
(event: 'update-unit-count', value: number): void
|
|
98
|
-
(event: 'update-period-type', value: string): void
|
|
99
|
-
(event: 'update-custom-date-from', value: string): void
|
|
100
|
-
(event: 'update-custom-date-to', value: string): void
|
|
101
|
-
(event: 'update-custom-time-from', value: string): void
|
|
102
|
-
(event: 'update-custom-time-to', value: string): void
|
|
103
|
-
(event: 'select-objects', value: string): void
|
|
104
|
-
}>()
|
|
105
|
-
|
|
106
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
107
|
-
|
|
108
|
-
const chartTypeLocal = computed<string>({
|
|
109
|
-
get() {
|
|
110
|
-
return props.selectedChartType
|
|
111
|
-
},
|
|
112
|
-
set(newValue) {
|
|
113
|
-
emits('update-chart-type', newValue)
|
|
114
|
-
},
|
|
115
|
-
})
|
|
116
|
-
</script>
|
|
117
|
-
|
|
118
|
-
<style scoped lang="scss">
|
|
119
|
-
.timespan-container {
|
|
120
|
-
display: grid;
|
|
121
|
-
grid-template-columns: 55% 45%;
|
|
122
|
-
grid-gap: 12px;
|
|
123
|
-
margin-top: 12px;
|
|
124
|
-
|
|
125
|
-
.timespan-object-container {
|
|
126
|
-
display: grid;
|
|
127
|
-
grid-template-rows: max-content 1fr;
|
|
128
|
-
grid-gap: 12px;
|
|
129
|
-
|
|
130
|
-
.chart-type-container {
|
|
131
|
-
padding: 12px;
|
|
132
|
-
background: var(--chart-options-timespan-blocks-bg);
|
|
133
|
-
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.0784313725);
|
|
134
|
-
border-radius: 8px;
|
|
135
|
-
|
|
136
|
-
.title-block {
|
|
137
|
-
color: var(--chart-options-timespan-blocks-title-color);
|
|
138
|
-
font-size: 14px;
|
|
139
|
-
font-weight: 500;
|
|
140
|
-
margin-bottom: 16px;
|
|
141
|
-
}
|
|
142
|
-
.radio-buttons-container {
|
|
143
|
-
display: flex;
|
|
144
|
-
flex-direction: column;
|
|
145
|
-
grid-gap: 12px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
</style>
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="timespan-objects-section-direction">
|
|
3
|
-
<common-chart-options-modal-counters-timespan-form
|
|
4
|
-
:language="props.language"
|
|
5
|
-
:selected-chart-type="props.selectedChartType"
|
|
6
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
-
:units-count="props.unitsCount"
|
|
8
|
-
:period-type="props.periodType"
|
|
9
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
-
:custom-date-from="props.customDateFrom"
|
|
11
|
-
:custom-date-to="props.customDateTo"
|
|
12
|
-
:custom-time-from="props.customTimeFrom"
|
|
13
|
-
:custom-time-to="props.customTimeTo"
|
|
14
|
-
:valid-date-end="props.validDateEnd"
|
|
15
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
16
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
17
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
18
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
19
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
20
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
21
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
22
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
23
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
24
|
-
/>
|
|
25
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-timespan-object
|
|
26
|
-
:type="props.type"
|
|
27
|
-
:chart="props.chart"
|
|
28
|
-
:total-cores="props.totalCores"
|
|
29
|
-
:host-id="props.hostId"
|
|
30
|
-
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
31
|
-
:total-metric-items="props.totalMetricItems"
|
|
32
|
-
:selected-objects="props.selectedObjects"
|
|
33
|
-
:loading="props.objectsLoading"
|
|
34
|
-
:current-items="props.objectsData"
|
|
35
|
-
@select-objects="emits('select-objects', $event)"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script setup lang="ts">
|
|
41
|
-
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
42
|
-
import type {
|
|
43
|
-
UI_T_ChartHost,
|
|
44
|
-
UI_T_ChartVm,
|
|
45
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
46
|
-
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
47
|
-
|
|
48
|
-
const props = defineProps<{
|
|
49
|
-
type: UI_T_AdvancedType
|
|
50
|
-
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
51
|
-
language: string
|
|
52
|
-
selectedChartType: string
|
|
53
|
-
selectedTimespanType: string
|
|
54
|
-
unitsCount: number
|
|
55
|
-
periodType: string
|
|
56
|
-
selectedCustomTime: string
|
|
57
|
-
customDateFrom: string
|
|
58
|
-
customDateTo: string
|
|
59
|
-
customTimeFrom: string
|
|
60
|
-
customTimeTo: string
|
|
61
|
-
totalCores: number
|
|
62
|
-
hostId: string
|
|
63
|
-
selectedMetricsKeys: number[]
|
|
64
|
-
totalMetricItems: number
|
|
65
|
-
selectedObjects: string
|
|
66
|
-
objectsLoading: boolean
|
|
67
|
-
objectsData: UI_I_ObjectItem[]
|
|
68
|
-
validDateEnd: number
|
|
69
|
-
}>()
|
|
70
|
-
|
|
71
|
-
const emits = defineEmits<{
|
|
72
|
-
(event: 'update-chart-type', value: string): void
|
|
73
|
-
(event: 'update-custom-time', value: string): void
|
|
74
|
-
(event: 'update-timespan-type', value: string): void
|
|
75
|
-
(event: 'update-unit-count', value: number): void
|
|
76
|
-
(event: 'update-period-type', value: string): void
|
|
77
|
-
(event: 'update-custom-date-from', value: string): void
|
|
78
|
-
(event: 'update-custom-date-to', value: string): void
|
|
79
|
-
(event: 'update-custom-time-from', value: string): void
|
|
80
|
-
(event: 'update-custom-time-to', value: string): void
|
|
81
|
-
(event: 'select-objects', value: string): void
|
|
82
|
-
}>()
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped lang="scss">
|
|
86
|
-
.timespan-objects-section-direction {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
}
|
|
90
|
-
@media (max-width: 1024px) {
|
|
91
|
-
.timespan-objects-section-direction {
|
|
92
|
-
flex-direction: column;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="object-table-container">
|
|
3
|
-
<ui-data-table
|
|
4
|
-
test-id="object-table"
|
|
5
|
-
:data="dataLocal"
|
|
6
|
-
:options="optionsData"
|
|
7
|
-
:loading="props.loading"
|
|
8
|
-
size="sm"
|
|
9
|
-
@select-row="onSelectRow"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type {
|
|
16
|
-
UI_I_DataTable,
|
|
17
|
-
UI_I_DataTableBody,
|
|
18
|
-
UI_I_DataTableOptions,
|
|
19
|
-
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
20
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
21
|
-
import type { UI_T_DataGridType } from '~/components/atoms/table/dataGrid/lib/models/types'
|
|
22
|
-
import type { UI_I_BodyItem } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
23
|
-
import { options } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/options'
|
|
24
|
-
import { tableDataFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/tableData'
|
|
25
|
-
|
|
26
|
-
const selectedRowLocal = defineModel<number[] | number>('selectedRow', {
|
|
27
|
-
required: true,
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const props = defineProps<{
|
|
31
|
-
tableType: UI_T_DataGridType
|
|
32
|
-
loading: boolean
|
|
33
|
-
bodyItems: UI_I_BodyItem[][]
|
|
34
|
-
}>()
|
|
35
|
-
|
|
36
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
37
|
-
|
|
38
|
-
const optionsData = computed<UI_I_DataTableOptions>(() =>
|
|
39
|
-
options(props.tableType)
|
|
40
|
-
)
|
|
41
|
-
const dataLocal = computed<UI_I_DataTable>(() =>
|
|
42
|
-
tableDataFunc(localization.value, props.bodyItems, selectedRowLocal.value)
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
46
|
-
selectedRowLocal.value = value.map((item) => item.row)
|
|
47
|
-
}
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
<style scoped lang="scss">
|
|
51
|
-
.object-table-container {
|
|
52
|
-
:deep(.bottom-grid-content) {
|
|
53
|
-
height: 170px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
</style>
|