bfg-common 1.6.112 → 1.6.113
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/assets/img/icons/icons-sprite-dark-4.svg +17 -38
- package/assets/img/icons/icons-sprite-light-4.svg +17 -49
- package/assets/localization/local_be.json +3 -31
- package/assets/localization/local_en.json +3 -31
- package/assets/localization/local_hy.json +3 -31
- package/assets/localization/local_kk.json +3 -31
- package/assets/localization/local_ru.json +3 -31
- package/assets/localization/local_zh.json +3 -31
- package/components/common/graph/Graph.vue +8 -19
- package/components/common/graph/{new/New.vue → graphNew/GraphNew.vue} +3 -3
- package/components/common/graph/lib/utils/renderGraph.ts +393 -0
- package/components/common/modals/confirmation/Confirmation.vue +0 -1
- package/components/common/monitor/advanced/Advanced.vue +49 -9
- package/components/common/monitor/advanced/graphView/GraphView.vue +12 -8
- package/components/common/monitor/advanced/graphView/{New.vue → GraphViewNew.vue} +1 -1
- package/components/common/monitor/advanced/table/Table.vue +8 -9
- package/components/common/monitor/advanced/table/{new/New.vue → tableNew/TableNew.vue} +5 -6
- package/components/common/monitor/advanced/table/{new → tableNew}/lib/config/options.ts +1 -1
- package/components/common/monitor/advanced/table/{old/Old.vue → tableOld/TableOld.vue} +3 -6
- package/components/common/monitor/advanced/tools/Tools.vue +53 -11
- package/components/common/monitor/advanced/tools/{New.vue → ToolsNew.vue} +0 -4
- package/components/common/monitor/advanced/tools/{Old.vue → ToolsOld.vue} +0 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/{notification/Notification.vue → Notification.vue} +6 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/{notification/New.vue → NotificationNew.vue} +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/{notification/Old.vue → NotificationOld.vue} +5 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +13 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/{New.vue → ActionsNew.vue} +3 -6
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +44 -12
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +7 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new/New.vue → tableNew/TableNew.vue} +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new → tableNew}/config/tableData.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{old/Old.vue → tableOld/TableOld.vue} +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{old → tableOld}/lib/config/tableConfig.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +36 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +9 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new/New.vue → objectNew/ObjectNew.vue} +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new → objectNew}/lib/config/tableData.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{old/Old.vue → objectOld/ObjectOld.vue} +2 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +7 -8
- package/components/common/monitor/overview/OverviewNew.vue +1 -1
- package/components/common/monitor/overview/OverviewOld.vue +1 -1
- package/components/common/monitor/overview/filters/FiltersNew.vue +0 -1
- package/components/common/monitor/overview/filters/FiltersOld.vue +0 -1
- package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +2 -2
- package/lib/models/interfaces.ts +0 -1
- package/package.json +1 -1
- /package/components/common/graph/{Old.vue → GraphOld.vue} +0 -0
- /package/components/common/graph/{new → graphNew}/EmptyBlock.vue +0 -0
- /package/components/common/graph/{new → graphNew}/lib/models/enums.ts +0 -0
- /package/components/common/monitor/advanced/{New.vue → AdvancedNew.vue} +0 -0
- /package/components/common/monitor/advanced/{Old.vue → AdvancedOld.vue} +0 -0
- /package/components/common/monitor/advanced/graphView/{Old.vue → GraphViewOld.vue} +0 -0
- /package/components/common/monitor/advanced/table/{new → tableNew}/lib/utils/constructBody.ts +0 -0
- /package/components/common/monitor/advanced/table/{old → tableOld}/lib/config/performanceDatatable.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/{New.vue → ChartOptionsModalNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/{Old.vue → ChartOptionsModalOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/actions/{Old.vue → ActionsOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/{New.vue → CountersNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/{Old.vue → CountersOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new → tableNew}/config/options.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new → tableNew}/utils/constructTable.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{old → tableOld}/lib/models/types.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/{New.vue → TimespanNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/{Old.vue → TimespanOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new → objectNew}/lib/config/options.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new → objectNew}/lib/utils/constructTable.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/{New.vue → MetricsNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/{Old.vue → MetricsOld.vue} +0 -0
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
2
|
+
<common-monitor-advanced-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:selected-timespan-type="localSelectedTimespanType"
|
|
5
|
+
:type="props.type"
|
|
6
|
+
:is-empty="props.isEmpty"
|
|
7
|
+
:advanced-loading="props.advancedLoading"
|
|
8
|
+
:data="props.data"
|
|
9
|
+
:export-graph-type="exportGraphType"
|
|
10
|
+
:table-data="props.tableData"
|
|
11
|
+
:language="props.language"
|
|
12
|
+
:dark-mode="props.darkMode"
|
|
13
|
+
:selected-counters-keys="props.selectedCountersKeys"
|
|
14
|
+
:selected-metric="props.selectedMetric"
|
|
15
|
+
:selected-chart-type="props.selectedChartType"
|
|
16
|
+
:units-count="props.unitsCount"
|
|
17
|
+
:period-type="props.periodType"
|
|
18
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
19
|
+
:selected-chart-option-name="props.selectedChartOptionName"
|
|
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="totalCores"
|
|
25
|
+
:host-id="props.hostId"
|
|
26
|
+
:objects-loading="props.objectsLoading"
|
|
27
|
+
:objects-data="props.objectsData"
|
|
28
|
+
:valid-date-end="props.validDateEnd"
|
|
29
|
+
:format-date="props.formatDate"
|
|
30
|
+
:selected-table-row="selectedTableRow"
|
|
31
|
+
:selected-node-name="props.selectedNodeName"
|
|
32
|
+
:project="props.project"
|
|
33
|
+
:power-data="props.powerData"
|
|
34
|
+
:temperature-data="props.temperatureData"
|
|
35
|
+
@update-tools="emits('update-tools', $event)"
|
|
36
|
+
@export-graph="onExporting"
|
|
37
|
+
@open-advanced-page="emits('open-advanced-page')"
|
|
38
|
+
@select-row="emits('select-row', $event)"
|
|
39
|
+
@select-metric-local="emits('select-metric-local', $event)"
|
|
40
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
41
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
42
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
43
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
44
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
45
|
+
@delete-option="emits('delete-option')"
|
|
46
|
+
@submit-options="emits('submit-options', $event)"
|
|
47
|
+
@selected-table-row="onSelectTableRow"
|
|
48
|
+
/>
|
|
49
|
+
<common-monitor-advanced-old
|
|
50
|
+
v-else
|
|
4
51
|
v-model:selected-timespan-type="localSelectedTimespanType"
|
|
5
52
|
:type="props.type"
|
|
6
53
|
:is-empty="props.isEmpty"
|
|
@@ -31,7 +78,6 @@
|
|
|
31
78
|
:project="props.project"
|
|
32
79
|
:power-data="props.powerData"
|
|
33
80
|
:temperature-data="props.temperatureData"
|
|
34
|
-
:selected-node-name="props.selectedNodeName"
|
|
35
81
|
@update-tools="emits('update-tools', $event)"
|
|
36
82
|
@export-graph="onExporting"
|
|
37
83
|
@open-advanced-page="emits('open-advanced-page')"
|
|
@@ -124,12 +170,6 @@ const { $store }: any = useNuxtApp()
|
|
|
124
170
|
|
|
125
171
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
126
172
|
|
|
127
|
-
const currentComponent = computed(() =>
|
|
128
|
-
isNewView.value
|
|
129
|
-
? defineAsyncComponent(() => import('./New.vue'))
|
|
130
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
131
|
-
)
|
|
132
|
-
|
|
133
173
|
const localSelectedTimespanType = computed<string>({
|
|
134
174
|
get() {
|
|
135
175
|
return props.selectedTimespanType
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div ref="chartsView">
|
|
3
|
-
<
|
|
4
|
-
|
|
3
|
+
<common-monitor-advanced-graph-view-new
|
|
4
|
+
v-if="isNewView"
|
|
5
|
+
:loading="props.loading"
|
|
6
|
+
:is-loading="isLoading"
|
|
7
|
+
:chart-data="chartData"
|
|
8
|
+
:chart="chart"
|
|
9
|
+
:chart-helper="chartHelper"
|
|
10
|
+
:export-type="props.export"
|
|
11
|
+
:selected-row="props.selectedRow"
|
|
12
|
+
/>
|
|
13
|
+
<common-monitor-advanced-graph-view-old
|
|
14
|
+
v-else
|
|
5
15
|
:loading="props.loading"
|
|
6
16
|
:is-loading="isLoading"
|
|
7
17
|
:chart-data="chartData"
|
|
@@ -41,12 +51,6 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
41
51
|
|
|
42
52
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
43
53
|
|
|
44
|
-
const currentComponent = computed(() =>
|
|
45
|
-
isNewView.value
|
|
46
|
-
? defineAsyncComponent(() => import('./New.vue'))
|
|
47
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
48
|
-
)
|
|
49
|
-
|
|
50
54
|
const isLoading = ref<boolean>(true)
|
|
51
55
|
|
|
52
56
|
const chartData = ref<I_LineGraph | null>(null)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="['advanced-graph-container', { loading: props.isLoading }]">
|
|
3
|
-
<common-graph-new-empty-block v-if="!props.loading && !props.chartData" />
|
|
3
|
+
<common-graph-graph-new-empty-block v-if="!props.loading && !props.chartData" />
|
|
4
4
|
<ui-skeleton-long-metric
|
|
5
5
|
v-if="props.isLoading && props.loading"
|
|
6
6
|
height="336px"
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
:data="props.data"
|
|
2
|
+
<common-monitor-advanced-table-table-new
|
|
3
|
+
v-if="isNewView"
|
|
5
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"
|
|
6
11
|
@select="emits('select', $event)"
|
|
7
12
|
/>
|
|
8
13
|
</template>
|
|
@@ -21,12 +26,6 @@ const emits = defineEmits<{
|
|
|
21
26
|
const { $store }: any = useNuxtApp()
|
|
22
27
|
|
|
23
28
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
24
|
-
|
|
25
|
-
const currentComponent = computed(() =>
|
|
26
|
-
isNewView.value
|
|
27
|
-
? defineAsyncComponent(() => import('./new/New.vue'))
|
|
28
|
-
: defineAsyncComponent(() => import('./old/Old.vue'))
|
|
29
|
-
)
|
|
30
29
|
</script>
|
|
31
30
|
|
|
32
31
|
<style scoped lang="scss"></style>
|
|
@@ -37,22 +37,21 @@ import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/
|
|
|
37
37
|
import {
|
|
38
38
|
bodyOptions,
|
|
39
39
|
headOptions,
|
|
40
|
-
} from '~/components/common/monitor/advanced/table/
|
|
40
|
+
} from '~/components/common/monitor/advanced/table/tableNew/lib/config/options'
|
|
41
41
|
import { tableTextsFunc } from '~/lib/config/uiTable'
|
|
42
42
|
|
|
43
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
44
|
+
|
|
43
45
|
const props = defineProps<{
|
|
44
46
|
loading: boolean
|
|
45
|
-
|
|
47
|
+
items: UI_I_PerformanceItem[]
|
|
46
48
|
}>()
|
|
47
|
-
|
|
48
49
|
const emits = defineEmits<{
|
|
49
50
|
(event: 'select', value: number[]): void
|
|
50
51
|
}>()
|
|
51
52
|
|
|
52
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
53
|
-
|
|
54
53
|
const data = computed<UI_I_DataTable>(() =>
|
|
55
|
-
bodyOptions(localization.value, props.
|
|
54
|
+
bodyOptions(localization.value, props.items)
|
|
56
55
|
)
|
|
57
56
|
|
|
58
57
|
const options = computed<UI_I_DataTableOptions>(() => headOptions())
|
|
@@ -2,7 +2,7 @@ import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/data
|
|
|
2
2
|
import type { UI_I_DataTableOptions } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
3
3
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
4
4
|
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
5
|
-
import { constructUsersAndGroupsTableItems } from '~/components/common/monitor/advanced/table/
|
|
5
|
+
import { constructUsersAndGroupsTableItems } from '~/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody'
|
|
6
6
|
|
|
7
7
|
export const bodyOptions = (
|
|
8
8
|
localization: UI_I_Localization,
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
:body-items="dataBody"
|
|
14
14
|
:total-items="dataBody.length"
|
|
15
15
|
:total-pages="1"
|
|
16
|
-
:loading="props.loading"
|
|
17
16
|
type="checkbox"
|
|
18
17
|
class="data-table"
|
|
19
18
|
test-id="advances-table"
|
|
@@ -38,19 +37,17 @@ import type {
|
|
|
38
37
|
UI_I_ColumnKey,
|
|
39
38
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
40
39
|
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
41
|
-
import * as table from '~/components/common/monitor/advanced/table/
|
|
40
|
+
import * as table from '~/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable'
|
|
41
|
+
|
|
42
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
42
43
|
|
|
43
44
|
const props = defineProps<{
|
|
44
45
|
data: UI_I_PerformanceItem[]
|
|
45
|
-
loading: boolean
|
|
46
46
|
}>()
|
|
47
|
-
|
|
48
47
|
const emits = defineEmits<{
|
|
49
48
|
(event: 'select', value: number[]): void
|
|
50
49
|
}>()
|
|
51
50
|
|
|
52
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
53
|
-
|
|
54
51
|
const selectedRow = ref<number[]>([])
|
|
55
52
|
const pageSize = ref<number>(100)
|
|
56
53
|
const page = ref<number>(1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
2
|
+
<common-monitor-advanced-tools-new
|
|
3
|
+
v-if="isNewView"
|
|
4
4
|
v-model:selected-view="selectedView"
|
|
5
5
|
v-model:is-show-modal-local="isShowModal"
|
|
6
6
|
v-model:selected-period="selectedPeriod"
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
:selected-metric="props.selectedMetric"
|
|
13
13
|
:disabled-period="props.disabledPeriod"
|
|
14
14
|
:disabled-view="props.disabledView"
|
|
15
|
+
:selected-chart-type="props.selectedChartType"
|
|
15
16
|
:units-count="props.unitsCount"
|
|
16
17
|
:period-type="props.periodType"
|
|
17
18
|
:selected-custom-time="props.selectedCustomTime"
|
|
@@ -29,17 +30,62 @@
|
|
|
29
30
|
:format-date="props.formatDate"
|
|
30
31
|
:view-options="viewOptions"
|
|
31
32
|
:period-options="periodOptions"
|
|
33
|
+
:selected-node-name="props.selectedNodeName"
|
|
32
34
|
:power-data="props.powerData"
|
|
33
35
|
:temperature-data="props.temperatureData"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
@save-option-name="onSaveOptionName"
|
|
37
|
+
@change-period="updateTools"
|
|
38
|
+
@change-view="updateTools"
|
|
39
|
+
@select-row="emits('select-row', $event)"
|
|
40
|
+
@select-metric-local="emits('select-metric-local', $event)"
|
|
41
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
42
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
43
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
44
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
45
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
46
|
+
@delete-option="onDeleteOption"
|
|
47
|
+
@submit-options="emits('submit-options', $event)"
|
|
48
|
+
/>
|
|
49
|
+
<common-monitor-advanced-tools-old
|
|
50
|
+
v-else
|
|
51
|
+
v-model:selected-view="selectedView"
|
|
52
|
+
v-model:is-show-modal-local="isShowModal"
|
|
53
|
+
v-model:selected-period="selectedPeriod"
|
|
54
|
+
:selected-timespan-type="localSelectedTimespanType"
|
|
55
|
+
:type="props.type"
|
|
36
56
|
:chart-title="props.chartTitle"
|
|
57
|
+
:chart-title-date="chartTitleDate"
|
|
58
|
+
:language="props.language"
|
|
59
|
+
:selected-counters-keys="props.selectedCountersKeys"
|
|
60
|
+
:selected-metric="props.selectedMetric"
|
|
61
|
+
:disabled-period="props.disabledPeriod"
|
|
62
|
+
:disabled-view="props.disabledView"
|
|
63
|
+
:selected-chart-type="props.selectedChartType"
|
|
64
|
+
:units-count="props.unitsCount"
|
|
65
|
+
:period-type="props.periodType"
|
|
66
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
67
|
+
:selected-chart-option-name="props.selectedChartOptionName"
|
|
68
|
+
:custom-date-from="props.customDateFrom"
|
|
69
|
+
:custom-date-to="props.customDateTo"
|
|
70
|
+
:custom-time-from="props.customTimeFrom"
|
|
71
|
+
:custom-time-to="props.customTimeTo"
|
|
72
|
+
:total-cores="totalCores"
|
|
73
|
+
:host-id="props.hostId"
|
|
74
|
+
:project="props.project"
|
|
75
|
+
:objects-loading="props.objectsLoading"
|
|
76
|
+
:objects-data="props.objectsData"
|
|
77
|
+
:valid-date-end="props.validDateEnd"
|
|
78
|
+
:format-date="props.formatDate"
|
|
79
|
+
:view-options="viewOptions"
|
|
80
|
+
:period-options="periodOptions"
|
|
81
|
+
:power-data="props.powerData"
|
|
82
|
+
:temperature-data="props.temperatureData"
|
|
37
83
|
@save-option-name="onSaveOptionName"
|
|
38
84
|
@change-period="updateTools"
|
|
39
85
|
@change-view="updateTools"
|
|
40
86
|
@exporting="emits('exporting', $event)"
|
|
41
|
-
@select-row="emits('select-row', $event)"
|
|
42
87
|
@open-advanced-page="emits('open-advanced-page')"
|
|
88
|
+
@select-row="emits('select-row', $event)"
|
|
43
89
|
@select-metric-local="emits('select-metric-local', $event)"
|
|
44
90
|
@update-chart-type="emits('update-chart-type', $event)"
|
|
45
91
|
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
@@ -132,13 +178,9 @@ const { $store, $formattedDatetime }: any = useNuxtApp()
|
|
|
132
178
|
|
|
133
179
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
134
180
|
|
|
135
|
-
const
|
|
181
|
+
const routeType = '' + useRoute().params.type
|
|
136
182
|
|
|
137
|
-
const
|
|
138
|
-
isNewView.value
|
|
139
|
-
? defineAsyncComponent(() => import('./New.vue'))
|
|
140
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
141
|
-
)
|
|
183
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
142
184
|
|
|
143
185
|
const updateTimeFormatAndInterfaceLang = computed<number>(
|
|
144
186
|
() => $store.getters['main/getUpdateTimeFormatAndInterfaceLang']
|
|
@@ -132,13 +132,11 @@ const props = withDefaults(
|
|
|
132
132
|
temperatureData: UI_I_AdvancedCounterItem[]
|
|
133
133
|
disabledPeriod?: boolean
|
|
134
134
|
disabledView?: boolean
|
|
135
|
-
chartTitle?: string // For Console Warning
|
|
136
135
|
selectedNodeName?: string
|
|
137
136
|
}>(),
|
|
138
137
|
{
|
|
139
138
|
disabledPeriod: undefined,
|
|
140
139
|
disabledView: undefined,
|
|
141
|
-
chartTitle: undefined,
|
|
142
140
|
selectedNodeName: undefined,
|
|
143
141
|
}
|
|
144
142
|
)
|
|
@@ -151,8 +149,6 @@ const emits = defineEmits<{
|
|
|
151
149
|
(event: 'save-option-name'): void
|
|
152
150
|
(event: 'change-period'): void
|
|
153
151
|
(event: 'change-view'): void
|
|
154
|
-
(event: 'exporting', value: string): void // For Console Warning
|
|
155
|
-
(event: 'open-advanced-page'): void // For Console Warning
|
|
156
152
|
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
157
153
|
(event: 'select-metric-local', value: string): void
|
|
158
154
|
(event: 'update-chart-type', value: string): void
|
|
@@ -179,12 +179,10 @@ const props = withDefaults(
|
|
|
179
179
|
temperatureData: UI_I_AdvancedCounterItem[]
|
|
180
180
|
disabledPeriod?: boolean
|
|
181
181
|
disabledView?: boolean
|
|
182
|
-
selectedNodeName?: string // For Console Warning
|
|
183
182
|
}>(),
|
|
184
183
|
{
|
|
185
184
|
disabledPeriod: undefined,
|
|
186
185
|
disabledView: undefined,
|
|
187
|
-
selectedNodeName: undefined,
|
|
188
186
|
}
|
|
189
187
|
)
|
|
190
188
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
2
|
+
<common-monitor-advanced-tools-chart-options-modal-notification-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
:alerts="props.alerts"
|
|
5
|
+
/>
|
|
6
|
+
<common-monitor-advanced-tools-chart-options-modal-notification-old
|
|
7
|
+
v-else
|
|
4
8
|
:alerts="props.alerts"
|
|
5
9
|
@remove="emits('remove-alerts')"
|
|
6
10
|
/>
|
|
@@ -18,12 +22,6 @@ const emits = defineEmits<{
|
|
|
18
22
|
const { $store }: any = useNuxtApp()
|
|
19
23
|
|
|
20
24
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
21
|
-
|
|
22
|
-
const currentComponent = computed(() =>
|
|
23
|
-
isNewView.value
|
|
24
|
-
? defineAsyncComponent(() => import('./New.vue'))
|
|
25
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
26
|
-
)
|
|
27
25
|
</script>
|
|
28
26
|
|
|
29
27
|
<style scoped lang="scss"></style>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
status="alert-danger"
|
|
6
6
|
class="notification"
|
|
7
7
|
test-id="notification-alert"
|
|
8
|
-
@remove="
|
|
8
|
+
@remove="onRemove"
|
|
9
9
|
>
|
|
10
10
|
</atoms-alert>
|
|
11
11
|
</template>
|
|
@@ -18,6 +18,10 @@ const props = defineProps<{
|
|
|
18
18
|
const emits = defineEmits<{
|
|
19
19
|
(event: 'remove-alerts'): void
|
|
20
20
|
}>()
|
|
21
|
+
|
|
22
|
+
const onRemove = (): void => {
|
|
23
|
+
emits('remove-alerts')
|
|
24
|
+
}
|
|
21
25
|
</script>
|
|
22
26
|
|
|
23
27
|
<style scoped lang="scss"></style>
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
2
|
+
<common-monitor-advanced-tools-chart-options-modal-actions-new
|
|
3
|
+
v-if="isNewView"
|
|
4
4
|
v-model:is-confirm-modal="isConfirmModal"
|
|
5
5
|
v-model:local-selected-chart-option="localSelectedChartOption"
|
|
6
6
|
:chart-options="chartOptions"
|
|
7
7
|
:is-disabled-delete-action="isDisabledDeleteAction"
|
|
8
|
-
:is-show-save-options-modal="isShowSaveOptionsModal"
|
|
9
8
|
@save-options="onSaveOptions"
|
|
10
9
|
@delete-action="onDeleteAction"
|
|
11
10
|
@apply-delete="onApplyDelete"
|
|
11
|
+
/>
|
|
12
|
+
<common-monitor-advanced-tools-chart-options-modal-actions-old
|
|
13
|
+
v-else
|
|
14
|
+
v-model:is-confirm-modal="isConfirmModal"
|
|
15
|
+
v-model:local-selected-chart-option="localSelectedChartOption"
|
|
16
|
+
:chart-options="chartOptions"
|
|
17
|
+
:is-show-save-options-modal="isShowSaveOptionsModal"
|
|
18
|
+
:is-disabled-delete-action="isDisabledDeleteAction"
|
|
12
19
|
@show-save-options-modal="onShowSaveOptionsModal"
|
|
13
20
|
@hide-save-options-modal="onHideSaveOptionsModal"
|
|
21
|
+
@save-options="onSaveOptions"
|
|
22
|
+
@delete-action="onDeleteAction"
|
|
23
|
+
@apply-delete="onApplyDelete"
|
|
14
24
|
/>
|
|
15
25
|
</template>
|
|
16
26
|
|
|
@@ -36,12 +46,6 @@ const { $store }: any = useNuxtApp()
|
|
|
36
46
|
|
|
37
47
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
38
48
|
|
|
39
|
-
const currentComponent = computed(() =>
|
|
40
|
-
isNewView.value
|
|
41
|
-
? defineAsyncComponent(() => import('./New.vue'))
|
|
42
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
43
|
-
)
|
|
44
|
-
|
|
45
49
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
46
50
|
|
|
47
51
|
const localSelectedChartOption = ref<string>('select_options')
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
:label="localization.common.options"
|
|
7
7
|
:margin-between-trigger="4"
|
|
8
8
|
select-width="100%"
|
|
9
|
-
test-id="chart-options-select"
|
|
10
9
|
show-text
|
|
10
|
+
test-id="chart-options-select"
|
|
11
11
|
/>
|
|
12
12
|
<ui-input
|
|
13
13
|
v-model="newChartName"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@click="onSaveNewName"
|
|
28
28
|
>
|
|
29
29
|
<template #icon>
|
|
30
|
-
<ui-icon name="check" width="18" height="18"
|
|
30
|
+
<ui-icon name="check" width="18" height="18"></ui-icon>
|
|
31
31
|
</template>
|
|
32
32
|
<span>{{ localization.common.save }}</span>
|
|
33
33
|
</ui-button>
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
@click="emits('delete-action')"
|
|
43
43
|
>
|
|
44
44
|
<template #icon>
|
|
45
|
-
<ui-icon name="delete" width="18" height="18"
|
|
45
|
+
<ui-icon name="delete" width="18" height="18"></ui-icon>
|
|
46
46
|
</template>
|
|
47
47
|
<span>{{ localization.common.delete }}</span>
|
|
48
48
|
</ui-button>
|
|
@@ -75,13 +75,10 @@ const isConfirmModalLocal = defineModel<boolean>('isConfirmModal', {
|
|
|
75
75
|
|
|
76
76
|
const props = defineProps<{
|
|
77
77
|
chartOptions: UI_I_OptionItem[]
|
|
78
|
-
isShowSaveOptionsModal: boolean // For Console Warning
|
|
79
78
|
isDisabledDeleteAction: boolean
|
|
80
79
|
}>()
|
|
81
80
|
|
|
82
81
|
const emits = defineEmits<{
|
|
83
|
-
(event: 'show-save-options-modal'): void // For Console Warning
|
|
84
|
-
(event: 'hide-save-options-modal'): void // For Console Warning
|
|
85
82
|
(event: 'save-options', value: string): void
|
|
86
83
|
(event: 'delete-action'): void
|
|
87
84
|
(event: 'apply-delete'): void
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
2
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-new
|
|
3
|
+
v-if="isNewView"
|
|
4
4
|
v-model:total-metric-items="totalMetricItems"
|
|
5
5
|
:chart="props.chart"
|
|
6
6
|
:language="props.language"
|
|
@@ -21,15 +21,53 @@
|
|
|
21
21
|
:objects-loading="props.objectsLoading"
|
|
22
22
|
:objects-data="props.objectsData"
|
|
23
23
|
:valid-date-end="props.validDateEnd"
|
|
24
|
-
:project="props.project"
|
|
25
|
-
:power-data="props.powerData"
|
|
26
|
-
:temperature-data="props.temperatureData"
|
|
27
|
-
:current-selected-objects="props.currentSelectedObjects"
|
|
28
24
|
:error-last-input="props.errorLastInput"
|
|
29
25
|
:error-date-from="props.errorDateFrom"
|
|
30
26
|
:error-time-from="props.errorTimeFrom"
|
|
31
27
|
:error-date-to="props.errorDateTo"
|
|
32
28
|
:error-time-to="props.errorTimeTo"
|
|
29
|
+
:project="props.project"
|
|
30
|
+
:power-data="props.powerData"
|
|
31
|
+
:temperature-data="props.temperatureData"
|
|
32
|
+
:current-selected-objects="props.currentSelectedObjects"
|
|
33
|
+
@select-row="emits('select-row', $event)"
|
|
34
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
35
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
36
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
37
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
38
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
39
|
+
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
40
|
+
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
41
|
+
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
42
|
+
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
43
|
+
@select-objects="emits('select-objects', $event)"
|
|
44
|
+
/>
|
|
45
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-old
|
|
46
|
+
v-else
|
|
47
|
+
v-model:total-metric-items="totalMetricItems"
|
|
48
|
+
:chart="props.chart"
|
|
49
|
+
:language="props.language"
|
|
50
|
+
:type="props.type"
|
|
51
|
+
:selected-keys="props.selectedKeys"
|
|
52
|
+
:selected-chart-type="props.selectedChartType"
|
|
53
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
54
|
+
:units-count="props.unitsCount"
|
|
55
|
+
:period-type="props.periodType"
|
|
56
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
57
|
+
:custom-date-from="props.customDateFrom"
|
|
58
|
+
:custom-date-to="props.customDateTo"
|
|
59
|
+
:custom-time-from="props.customTimeFrom"
|
|
60
|
+
:custom-time-to="props.customTimeTo"
|
|
61
|
+
:total-cores="props.totalCores"
|
|
62
|
+
:host-id="props.hostId"
|
|
63
|
+
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
64
|
+
:objects-loading="props.objectsLoading"
|
|
65
|
+
:objects-data="props.objectsData"
|
|
66
|
+
:valid-date-end="props.validDateEnd"
|
|
67
|
+
:project="props.project"
|
|
68
|
+
:power-data="props.powerData"
|
|
69
|
+
:temperature-data="props.temperatureData"
|
|
70
|
+
:current-selected-objects="props.currentSelectedObjects"
|
|
33
71
|
@select-row="emits('select-row', $event)"
|
|
34
72
|
@update-chart-type="emits('update-chart-type', $event)"
|
|
35
73
|
@update-custom-time="emits('update-custom-time', $event)"
|
|
@@ -112,12 +150,6 @@ const { $store }: any = useNuxtApp()
|
|
|
112
150
|
|
|
113
151
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
114
152
|
|
|
115
|
-
const currentComponent = computed(() =>
|
|
116
|
-
isNewView.value
|
|
117
|
-
? defineAsyncComponent(() => import('./New.vue'))
|
|
118
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
119
|
-
)
|
|
120
|
-
|
|
121
153
|
const totalMetricItems = ref<number>(0)
|
|
122
154
|
</script>
|
|
123
155
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
2
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-table-table-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:selected-counters="selectedCounters"
|
|
5
|
+
:counters="counters"
|
|
6
|
+
/>
|
|
7
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-table-table-old
|
|
8
|
+
v-else
|
|
4
9
|
v-model:selected-counters="selectedCounters"
|
|
5
10
|
v-model:pagination="pagination"
|
|
6
11
|
:counters="counters"
|
|
@@ -39,12 +44,6 @@ const { $store }: any = useNuxtApp()
|
|
|
39
44
|
|
|
40
45
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
41
46
|
|
|
42
|
-
const currentComponent = computed(() =>
|
|
43
|
-
isNewView.value
|
|
44
|
-
? defineAsyncComponent(() => import('./new/New.vue'))
|
|
45
|
-
: defineAsyncComponent(() => import('./old/Old.vue'))
|
|
46
|
-
)
|
|
47
|
-
|
|
48
47
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
49
48
|
|
|
50
49
|
const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
|
|
@@ -15,8 +15,8 @@ import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/data
|
|
|
15
15
|
import type { UI_I_DataTableBody } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
16
16
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
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/
|
|
19
|
-
import { tableDataFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/
|
|
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
20
|
|
|
21
21
|
const selectedCountersLocal = defineModel<number[]>('selectedCounters', {
|
|
22
22
|
required: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
2
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
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/
|
|
4
|
+
import { constructTable } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/utils/constructTable'
|
|
5
5
|
|
|
6
6
|
export const tableDataFunc = (
|
|
7
7
|
localization: UI_I_Localization,
|
|
@@ -32,7 +32,7 @@ import type {
|
|
|
32
32
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
33
33
|
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
34
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/
|
|
35
|
+
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig'
|
|
36
36
|
|
|
37
37
|
const selectedCountersLocal = defineModel<number[]>('selectedCounters', {
|
|
38
38
|
required: true,
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
UI_I_BodyItem,
|
|
5
5
|
UI_I_ColumnKey,
|
|
6
6
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
7
|
-
import type { UI_T_AdvancedCountersColumnKey } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/
|
|
7
|
+
import type { UI_T_AdvancedCountersColumnKey } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/models/types'
|
|
8
8
|
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
9
9
|
import {
|
|
10
10
|
constructColumnKey,
|