bfg-common 1.4.861 → 1.4.862
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 +2 -1
- package/assets/localization/local_be.json +3012 -3009
- package/assets/localization/local_en.json +5 -2
- package/assets/localization/local_hy.json +5 -2
- package/assets/localization/local_kk.json +5 -2
- package/assets/localization/local_ru.json +5 -2
- package/assets/localization/local_zh.json +5 -2
- package/components/common/chartOptionsModal/counters/timespan/form/Form.vue +40 -313
- package/components/common/chartOptionsModal/counters/timespan/form/FormNew.vue +241 -0
- package/components/common/chartOptionsModal/counters/timespan/form/FormOld.vue +372 -0
- package/components/common/graph/GraphOld.vue +50 -31
- package/components/common/monitor/advanced/Advanced.vue +0 -3
- package/components/common/monitor/advanced/AdvancedNew.vue +0 -2
- package/components/common/monitor/advanced/AdvancedOld.vue +0 -2
- package/components/common/monitor/advanced/graphView/GraphView.vue +16 -18
- package/components/common/monitor/advanced/tools/Tools.vue +0 -3
- package/components/common/monitor/advanced/tools/ToolsNew.vue +0 -2
- package/components/common/monitor/advanced/tools/ToolsOld.vue +0 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +113 -114
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +190 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +189 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/Notification.vue +13 -20
- package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationNew.vue +20 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationOld.vue +27 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +28 -79
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsNew.vue +160 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +114 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +75 -56
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +97 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersOld.vue +110 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +19 -58
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +46 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/options.ts +19 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/tableData.ts +71 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/utils/constructTable.ts +29 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/TableOld.vue +85 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{lib → tableOld/lib}/config/tableConfig.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +71 -47
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +150 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +95 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +21 -26
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/ObjectNew.vue +56 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/options.ts +25 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/tableData.ts +47 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/utils/constructTable.ts +22 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectOld/ObjectOld.vue +84 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +17 -29
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/MetricsOld.vue +32 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/MetricsNew.vue +101 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/lib/utils/constructAccordion.ts +32 -0
- package/components/common/monitor/overview/Overview.vue +224 -221
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalNew.vue +186 -181
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +26 -30
- package/lib/utils/date.ts +12 -0
- package/package.json +2 -2
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{lib → tableOld/lib}/models/types.ts +0 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="chart-options-actions">
|
|
3
|
+
<ui-select
|
|
4
|
+
v-model="localSelectedChartOptionLocal"
|
|
5
|
+
:items="props.chartOptions"
|
|
6
|
+
:label="localization.common.options"
|
|
7
|
+
select-width="100%"
|
|
8
|
+
show-text
|
|
9
|
+
test-id="chart-options-select"
|
|
10
|
+
/>
|
|
11
|
+
<ui-input
|
|
12
|
+
v-model="newChartName"
|
|
13
|
+
:placeholder="localization.common.name"
|
|
14
|
+
:label="localization.common.name"
|
|
15
|
+
:error="newChartNameError"
|
|
16
|
+
test-id="chart-name"
|
|
17
|
+
type="text"
|
|
18
|
+
input-style="rounded"
|
|
19
|
+
/>
|
|
20
|
+
<ui-button
|
|
21
|
+
test-id="save-option-name"
|
|
22
|
+
type="primary"
|
|
23
|
+
variant="text"
|
|
24
|
+
size="md"
|
|
25
|
+
is-without-sizes
|
|
26
|
+
@click="onSaveNewName"
|
|
27
|
+
>
|
|
28
|
+
<template #icon>
|
|
29
|
+
<ui-icon name="check" width="18" height="18"></ui-icon>
|
|
30
|
+
</template>
|
|
31
|
+
<span>{{ localization.common.save }}</span>
|
|
32
|
+
</ui-button>
|
|
33
|
+
<span class="seperator-name-actions"></span>
|
|
34
|
+
<ui-button
|
|
35
|
+
:disabled="!props.isDisabledDeleteAction"
|
|
36
|
+
test-id="delete-option-name"
|
|
37
|
+
type="primary"
|
|
38
|
+
variant="text"
|
|
39
|
+
size="md"
|
|
40
|
+
is-without-sizes
|
|
41
|
+
@click="emits('delete-action')"
|
|
42
|
+
>
|
|
43
|
+
<template #icon>
|
|
44
|
+
<ui-icon name="delete" width="18" height="18"></ui-icon>
|
|
45
|
+
</template>
|
|
46
|
+
<span>{{ localization.common.delete }}</span>
|
|
47
|
+
</ui-button>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<common-modals-confirmation
|
|
51
|
+
v-if="isConfirmModalLocal"
|
|
52
|
+
:headline="localization.inventoryMonitor.deleteConfirmationChartOption"
|
|
53
|
+
:description="confirmModalDesc"
|
|
54
|
+
:modal-texts="modalTexts"
|
|
55
|
+
@hide-modal="isConfirmModalLocal = false"
|
|
56
|
+
@confirm="onApplyDelete"
|
|
57
|
+
/>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script setup lang="ts">
|
|
61
|
+
import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
|
|
62
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
63
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
64
|
+
|
|
65
|
+
const localSelectedChartOptionLocal = defineModel<string>(
|
|
66
|
+
'localSelectedChartOption',
|
|
67
|
+
{
|
|
68
|
+
required: true,
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
const isConfirmModalLocal = defineModel<boolean>('isConfirmModal', {
|
|
72
|
+
required: true,
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
const props = defineProps<{
|
|
76
|
+
chartOptions: UI_I_OptionItem[]
|
|
77
|
+
isDisabledDeleteAction: boolean
|
|
78
|
+
}>()
|
|
79
|
+
|
|
80
|
+
const emits = defineEmits<{
|
|
81
|
+
(event: 'save-options', value: string): void
|
|
82
|
+
(event: 'delete-action'): void
|
|
83
|
+
(event: 'apply-delete'): void
|
|
84
|
+
}>()
|
|
85
|
+
|
|
86
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
87
|
+
|
|
88
|
+
const modalTexts = computed<UI_I_ModalTexts>(() => {
|
|
89
|
+
return {
|
|
90
|
+
button1: localization.value.common.cancel,
|
|
91
|
+
button2: localization.value.common.delete,
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
const newChartName = ref<string>('')
|
|
96
|
+
watch(
|
|
97
|
+
() => props.isDisabledDeleteAction,
|
|
98
|
+
(newValue) => {
|
|
99
|
+
newChartName.value = newValue ? localSelectedChartOptionLocal.value : ''
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
const newChartNameError = ref<string>('')
|
|
104
|
+
|
|
105
|
+
const onSaveNewName = (): void => {
|
|
106
|
+
if (!newChartName.value) {
|
|
107
|
+
newChartNameError.value = localization.value.common.fieldRequired
|
|
108
|
+
} else {
|
|
109
|
+
newChartNameError.value = ''
|
|
110
|
+
emits('save-options', newChartName.value)
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const onApplyDelete = (): void => {
|
|
115
|
+
emits('apply-delete')
|
|
116
|
+
newChartName.value = ''
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const confirmModalDesc = computed<string>(() =>
|
|
120
|
+
localization.value.inventoryMonitor.deleteConfirmationChartOptionDesc.replace(
|
|
121
|
+
'{0}',
|
|
122
|
+
localSelectedChartOptionLocal.value
|
|
123
|
+
)
|
|
124
|
+
)
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
<style>
|
|
128
|
+
:root {
|
|
129
|
+
--chart-options-name-actions-seperate-border-color: #e9ebeda3;
|
|
130
|
+
}
|
|
131
|
+
:root.dark-theme {
|
|
132
|
+
--chart-options-name-actions-seperate-border-color: #e9ebed1f;
|
|
133
|
+
}
|
|
134
|
+
</style>
|
|
135
|
+
<style scoped lang="scss">
|
|
136
|
+
.chart-options-actions {
|
|
137
|
+
display: grid;
|
|
138
|
+
grid-template-columns: 2fr 2fr max-content max-content max-content;
|
|
139
|
+
align-items: center;
|
|
140
|
+
grid-gap: 16px;
|
|
141
|
+
|
|
142
|
+
& > :first-child {
|
|
143
|
+
margin-top: -16px;
|
|
144
|
+
}
|
|
145
|
+
& > :nth-child(2) {
|
|
146
|
+
height: 36px;
|
|
147
|
+
}
|
|
148
|
+
.seperator-name-actions {
|
|
149
|
+
border: 1px solid var(--chart-options-name-actions-seperate-border-color);
|
|
150
|
+
height: 24px;
|
|
151
|
+
}
|
|
152
|
+
#delete-option-name {
|
|
153
|
+
color: #ea3223;
|
|
154
|
+
|
|
155
|
+
&:disabled {
|
|
156
|
+
color: #bdc3c7;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
</style>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="horizontal-flex-container">
|
|
3
|
+
<div class="horizontal-flex-container">
|
|
4
|
+
<label for="chartOptionsSelect" class="label-select"
|
|
5
|
+
>{{ localization.inventoryMonitor.chartOptions }}:</label
|
|
6
|
+
>
|
|
7
|
+
<div class="select">
|
|
8
|
+
<select
|
|
9
|
+
id="chartOptionsSelect"
|
|
10
|
+
v-model="localSelectedChartOptionLocal"
|
|
11
|
+
data-id="chart-options-select"
|
|
12
|
+
>
|
|
13
|
+
<option
|
|
14
|
+
v-for="item in props.chartOptions"
|
|
15
|
+
:key="item.value"
|
|
16
|
+
:value="item.value"
|
|
17
|
+
>
|
|
18
|
+
{{ item.text }}
|
|
19
|
+
</option>
|
|
20
|
+
</select>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div>
|
|
24
|
+
<button
|
|
25
|
+
class="btn chart-options-save-button"
|
|
26
|
+
data-id="chart-options-save-button"
|
|
27
|
+
@click="emits('show-save-options-modal')"
|
|
28
|
+
>
|
|
29
|
+
{{ localization.inventoryMonitor.saveOptionsAs }}...
|
|
30
|
+
</button>
|
|
31
|
+
<common-monitor-advanced-tools-chart-options-modal-actions-save-options-modal
|
|
32
|
+
v-if="props.isShowSaveOptionsModal"
|
|
33
|
+
@hide="emits('hide-save-options-modal')"
|
|
34
|
+
@save="emits('save-options', $event)"
|
|
35
|
+
/>
|
|
36
|
+
<button
|
|
37
|
+
class="btn chart-options-delete-button"
|
|
38
|
+
:disabled="!props.isDisabledDeleteAction"
|
|
39
|
+
data-id="chart-options-delete-button"
|
|
40
|
+
@click="emits('delete-action')"
|
|
41
|
+
>
|
|
42
|
+
{{ localization.inventoryMonitor.deleteOptions }}
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<common-modals-confirmation
|
|
48
|
+
v-if="isConfirmModalLocal"
|
|
49
|
+
:headline="localization.inventoryMonitor.deletingSavedSettings"
|
|
50
|
+
:description="confirmModalDesc"
|
|
51
|
+
@hide-modal="isConfirmModalLocal = false"
|
|
52
|
+
@confirm="emits('apply-delete')"
|
|
53
|
+
/>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script setup lang="ts">
|
|
57
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
58
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
59
|
+
|
|
60
|
+
const localSelectedChartOptionLocal = defineModel<string>(
|
|
61
|
+
'localSelectedChartOption',
|
|
62
|
+
{
|
|
63
|
+
required: true,
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
const isConfirmModalLocal = defineModel<boolean>('isConfirmModal', {
|
|
67
|
+
required: true,
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
const props = defineProps<{
|
|
71
|
+
chartOptions: UI_I_OptionItem[]
|
|
72
|
+
isShowSaveOptionsModal: boolean
|
|
73
|
+
isDisabledDeleteAction: boolean
|
|
74
|
+
}>()
|
|
75
|
+
|
|
76
|
+
const emits = defineEmits<{
|
|
77
|
+
(event: 'show-save-options-modal'): void
|
|
78
|
+
(event: 'hide-save-options-modal'): void
|
|
79
|
+
(event: 'save-options', value: string): void
|
|
80
|
+
(event: 'delete-action'): void
|
|
81
|
+
(event: 'apply-delete'): void
|
|
82
|
+
}>()
|
|
83
|
+
|
|
84
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
85
|
+
|
|
86
|
+
const confirmModalDesc = computed<string>(() =>
|
|
87
|
+
localization.value.inventoryMonitor.deletingSavedSettingsDesc.replace(
|
|
88
|
+
'{0}',
|
|
89
|
+
localSelectedChartOptionLocal.value
|
|
90
|
+
)
|
|
91
|
+
)
|
|
92
|
+
</script>
|
|
93
|
+
|
|
94
|
+
<style scoped lang="scss">
|
|
95
|
+
.horizontal-flex-container {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: row;
|
|
98
|
+
align-items: center;
|
|
99
|
+
|
|
100
|
+
.chart-options-save-button,
|
|
101
|
+
.chart-options-delete-button {
|
|
102
|
+
border: none;
|
|
103
|
+
background: unset;
|
|
104
|
+
margin: 0;
|
|
105
|
+
font-size: 11px;
|
|
106
|
+
color: var(--action-icon-color);
|
|
107
|
+
box-shadow: unset;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.chart-options-delete-button {
|
|
111
|
+
text-transform: uppercase;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
</style>
|
|
@@ -1,46 +1,74 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:total-metric-items="totalMetricItems"
|
|
5
|
+
:chart="props.chart"
|
|
6
|
+
:language="props.language"
|
|
7
|
+
:type="props.type"
|
|
8
|
+
:selected-keys="props.selectedKeys"
|
|
9
|
+
:selected-chart-type="props.selectedChartType"
|
|
10
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
11
|
+
:units-count="props.unitsCount"
|
|
12
|
+
:period-type="props.periodType"
|
|
13
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
14
|
+
:custom-date-from="props.customDateFrom"
|
|
15
|
+
:custom-date-to="props.customDateTo"
|
|
16
|
+
:custom-time-from="props.customTimeFrom"
|
|
17
|
+
:custom-time-to="props.customTimeTo"
|
|
18
|
+
:total-cores="props.totalCores"
|
|
19
|
+
:host-id="props.hostId"
|
|
20
|
+
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
21
|
+
:selected-objects="props.selectedObjects"
|
|
22
|
+
:objects-loading="props.objectsLoading"
|
|
23
|
+
:objects-data="props.objectsData"
|
|
24
|
+
:valid-date-end="props.validDateEnd"
|
|
25
|
+
@select-row="emits('select-row', $event)"
|
|
26
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
27
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
28
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
29
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
30
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
31
|
+
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
32
|
+
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
33
|
+
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
34
|
+
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
35
|
+
@select-objects="emits('select-objects', $event)"
|
|
36
|
+
/>
|
|
37
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-old
|
|
38
|
+
v-else
|
|
39
|
+
v-model:total-metric-items="totalMetricItems"
|
|
40
|
+
:chart="props.chart"
|
|
41
|
+
:language="props.language"
|
|
42
|
+
:type="props.type"
|
|
43
|
+
:selected-keys="props.selectedKeys"
|
|
44
|
+
:selected-chart-type="props.selectedChartType"
|
|
45
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
46
|
+
:units-count="props.unitsCount"
|
|
47
|
+
:period-type="props.periodType"
|
|
48
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
49
|
+
:custom-date-from="props.customDateFrom"
|
|
50
|
+
:custom-date-to="props.customDateTo"
|
|
51
|
+
:custom-time-from="props.customTimeFrom"
|
|
52
|
+
:custom-time-to="props.customTimeTo"
|
|
53
|
+
:total-cores="props.totalCores"
|
|
54
|
+
:host-id="props.hostId"
|
|
55
|
+
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
56
|
+
:selected-objects="props.selectedObjects"
|
|
57
|
+
:objects-loading="props.objectsLoading"
|
|
58
|
+
:objects-data="props.objectsData"
|
|
59
|
+
:valid-date-end="props.validDateEnd"
|
|
60
|
+
@select-row="emits('select-row', $event)"
|
|
61
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
62
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
63
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
64
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
65
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
66
|
+
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
67
|
+
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
68
|
+
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
69
|
+
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
70
|
+
@select-objects="emits('select-objects', $event)"
|
|
71
|
+
/>
|
|
44
72
|
</template>
|
|
45
73
|
|
|
46
74
|
<script setup lang="ts">
|
|
@@ -89,20 +117,11 @@ const emits = defineEmits<{
|
|
|
89
117
|
(event: 'select-objects', value: string): void
|
|
90
118
|
}>()
|
|
91
119
|
|
|
120
|
+
const { $store }: any = useNuxtApp()
|
|
121
|
+
|
|
122
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
123
|
+
|
|
92
124
|
const totalMetricItems = ref<number>(0)
|
|
93
125
|
</script>
|
|
94
126
|
|
|
95
|
-
<style scoped lang="scss">
|
|
96
|
-
.chart-option-counters-container {
|
|
97
|
-
margin-top: 20px;
|
|
98
|
-
flex-basis: 80%;
|
|
99
|
-
padding-left: 15px;
|
|
100
|
-
max-width: 80%;
|
|
101
|
-
}
|
|
102
|
-
@media (max-width: 1024px) {
|
|
103
|
-
.chart-option-counters-container {
|
|
104
|
-
max-width: unset;
|
|
105
|
-
padding-left: 0;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
</style>
|
|
127
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="chart-options-bottom-right-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"></style>
|
|
@@ -0,0 +1,110 @@
|
|
|
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>
|