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,189 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="chart-options-modal">
|
|
3
|
-
<atoms-modal
|
|
4
|
-
width="1150px"
|
|
5
|
-
:show="true"
|
|
6
|
-
:title="localization.inventoryMonitor.chartOptions"
|
|
7
|
-
:disabled-submit="props.isDisabledSubmit"
|
|
8
|
-
@hide="emits('hide-main-modal')"
|
|
9
|
-
@submit="emits('submit-main-modal')"
|
|
10
|
-
>
|
|
11
|
-
<template #modalBody>
|
|
12
|
-
<common-monitor-advanced-tools-chart-options-modal-notification
|
|
13
|
-
v-show="props.isShowAlerts"
|
|
14
|
-
:alerts="props.alerts"
|
|
15
|
-
@remove="emits('remove-alerts')"
|
|
16
|
-
/>
|
|
17
|
-
<div>
|
|
18
|
-
<common-monitor-advanced-tools-chart-options-modal-actions
|
|
19
|
-
:is-disabled-save="!selectedRowsLocal.length"
|
|
20
|
-
:options-names="props.optionsNames"
|
|
21
|
-
:selected-chart-option-name="props.localSelectedChartOptionName"
|
|
22
|
-
@save="emits('save-options', $event)"
|
|
23
|
-
@check-validation="emits('check-validations')"
|
|
24
|
-
@select-local-option-name="
|
|
25
|
-
emits('select-local-option-name', $event)
|
|
26
|
-
"
|
|
27
|
-
@delete-chart-name="emits('delete-chart-name', $event)"
|
|
28
|
-
/>
|
|
29
|
-
|
|
30
|
-
<div class="horizontal-flex-container chart-options-content">
|
|
31
|
-
<common-monitor-advanced-tools-chart-options-modal-metrics
|
|
32
|
-
v-model:selected-metric="localSelectedMetricLocal"
|
|
33
|
-
:metrics-items="props.metricsItems"
|
|
34
|
-
/>
|
|
35
|
-
<common-monitor-advanced-tools-chart-options-modal-counters
|
|
36
|
-
:chart="localSelectedMetricLocal"
|
|
37
|
-
:language="props.language"
|
|
38
|
-
:type="props.type"
|
|
39
|
-
:selected-keys="props.localSelectedCountersKeys"
|
|
40
|
-
:selected-chart-type="props.localSelectedChartType"
|
|
41
|
-
:selected-timespan-type="props.localSelectedTimespanType"
|
|
42
|
-
:units-count="props.localUnitsCount"
|
|
43
|
-
:period-type="localPeriodTypeLocal"
|
|
44
|
-
:selected-custom-time="customTimeLocal"
|
|
45
|
-
:custom-date-from="props.customDateFrom"
|
|
46
|
-
:custom-date-to="props.customDateTo"
|
|
47
|
-
:custom-time-from="props.customTimeFrom"
|
|
48
|
-
:custom-time-to="props.customTimeTo"
|
|
49
|
-
:total-cores="props.totalCores"
|
|
50
|
-
:host-id="props.hostId"
|
|
51
|
-
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
52
|
-
:selected-objects="props.selectedObjects"
|
|
53
|
-
:objects-loading="props.objectsLoading"
|
|
54
|
-
:objects-data="props.objectsData"
|
|
55
|
-
:valid-date-end="props.validDateEnd"
|
|
56
|
-
@select-row="selectedRowsLocal = $event"
|
|
57
|
-
@update-chart-type="localSelectedChartTypeLocal = $event"
|
|
58
|
-
@update-custom-time="customTimeLocal = $event"
|
|
59
|
-
@update-timespan-type="timespanTypeLocal = $event"
|
|
60
|
-
@update-unit-count="unitCountLocal = $event"
|
|
61
|
-
@update-period-type="localPeriodTypeLocal = $event"
|
|
62
|
-
@update-custom-date-from="
|
|
63
|
-
emits('update-custom-date-from', $event)
|
|
64
|
-
"
|
|
65
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
66
|
-
@update-custom-time-from="
|
|
67
|
-
emits('update-custom-time-from', $event)
|
|
68
|
-
"
|
|
69
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
70
|
-
@select-objects="emits('local-selected-objects', $event)"
|
|
71
|
-
/>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</template>
|
|
75
|
-
</atoms-modal>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
|
|
79
|
-
<script setup lang="ts">
|
|
80
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
81
|
-
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
82
|
-
import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
83
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
84
|
-
import type {
|
|
85
|
-
UI_T_ChartHost,
|
|
86
|
-
UI_T_ChartVm,
|
|
87
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
88
|
-
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
89
|
-
|
|
90
|
-
const props = defineProps<{
|
|
91
|
-
type: UI_T_AdvancedType
|
|
92
|
-
language: string
|
|
93
|
-
optionsNames: string[]
|
|
94
|
-
localSelectedChartOptionName: string
|
|
95
|
-
customDateFrom: string
|
|
96
|
-
customDateTo: string
|
|
97
|
-
customTimeFrom: string
|
|
98
|
-
customTimeTo: string
|
|
99
|
-
totalCores: number
|
|
100
|
-
hostId: string
|
|
101
|
-
selectedObjects: string
|
|
102
|
-
objectsLoading: boolean
|
|
103
|
-
objectsData: UI_I_ObjectItem[]
|
|
104
|
-
validDateEnd: number
|
|
105
|
-
isDisabledSubmit: boolean
|
|
106
|
-
isShowAlerts: boolean
|
|
107
|
-
alerts: string[]
|
|
108
|
-
metricsItems: UI_I_VerticalTabs[]
|
|
109
|
-
localSelectedCountersKeys: number[]
|
|
110
|
-
localSelectedChartType: string
|
|
111
|
-
localSelectedTimespanType: string
|
|
112
|
-
localUnitsCount: number
|
|
113
|
-
selectedMetricsKeys: number[]
|
|
114
|
-
}>()
|
|
115
|
-
|
|
116
|
-
const selectedRowsLocal = defineModel<UI_I_AdvancedCounterItem[]>(
|
|
117
|
-
'selectedRows',
|
|
118
|
-
{ required: true }
|
|
119
|
-
)
|
|
120
|
-
const localSelectedMetricLocal = defineModel<UI_T_ChartHost | UI_T_ChartVm>(
|
|
121
|
-
'selectedMetricLocal',
|
|
122
|
-
{ required: true }
|
|
123
|
-
)
|
|
124
|
-
const localPeriodTypeLocal = defineModel<string>('localPeriodType', {
|
|
125
|
-
required: true,
|
|
126
|
-
})
|
|
127
|
-
const customTimeLocal = defineModel<string>('localCustomTime', {
|
|
128
|
-
required: true,
|
|
129
|
-
})
|
|
130
|
-
const localSelectedChartTypeLocal = defineModel<string>(
|
|
131
|
-
'selectedChartTypeLocal',
|
|
132
|
-
{
|
|
133
|
-
required: true,
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
const timespanTypeLocal = defineModel<string>('timespanType', {
|
|
137
|
-
required: true,
|
|
138
|
-
})
|
|
139
|
-
const unitCountLocal = defineModel<number>('unitCount', {
|
|
140
|
-
required: true,
|
|
141
|
-
})
|
|
142
|
-
|
|
143
|
-
const emits = defineEmits<{
|
|
144
|
-
(event: 'hide-main-modal'): void
|
|
145
|
-
(event: 'submit-main-modal'): void
|
|
146
|
-
(event: 'remove-alerts'): void
|
|
147
|
-
(event: 'save-options', value: string): void
|
|
148
|
-
(event: 'check-validations'): void
|
|
149
|
-
(event: 'select-local-option-name', value: string): void
|
|
150
|
-
(event: 'delete-chart-name', value: string): void
|
|
151
|
-
(event: 'update-custom-date-from', value: string): void
|
|
152
|
-
(event: 'update-custom-date-to', value: string): void
|
|
153
|
-
(event: 'update-custom-time-from', value: string): void
|
|
154
|
-
(event: 'update-custom-time-to', value: string): void
|
|
155
|
-
(event: 'local-selected-objects', value: string): void
|
|
156
|
-
}>()
|
|
157
|
-
|
|
158
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
159
|
-
</script>
|
|
160
|
-
|
|
161
|
-
<style scoped lang="scss">
|
|
162
|
-
.chart-options-modal {
|
|
163
|
-
.loader-on :deep(.modal-body) {
|
|
164
|
-
display: flex;
|
|
165
|
-
align-items: center;
|
|
166
|
-
justify-content: center;
|
|
167
|
-
}
|
|
168
|
-
:deep(.modal-title) {
|
|
169
|
-
text-transform: capitalize;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
#loader {
|
|
173
|
-
min-height: 90px;
|
|
174
|
-
text-align: center;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.chart-options-content {
|
|
178
|
-
display: flex;
|
|
179
|
-
flex-direction: row;
|
|
180
|
-
flex-basis: 90%;
|
|
181
|
-
overflow-y: hidden;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
@media (max-width: 1024px) {
|
|
185
|
-
.chart-options-content {
|
|
186
|
-
flex-direction: column !important;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
</style>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-alert
|
|
3
|
-
:messages="props.alerts"
|
|
4
|
-
test-id="chart-options-alerts"
|
|
5
|
-
class="chart-options-alerts"
|
|
6
|
-
hide-close-button
|
|
7
|
-
/>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
const props = defineProps<{
|
|
12
|
-
alerts: string[]
|
|
13
|
-
}>()
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<style scoped lang="scss">
|
|
17
|
-
.chart-options-alerts {
|
|
18
|
-
margin-bottom: 24px;
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<atoms-alert
|
|
3
|
-
v-show="props.alerts.length"
|
|
4
|
-
status="alert-danger"
|
|
5
|
-
:items="props.alerts"
|
|
6
|
-
class="notification"
|
|
7
|
-
test-id="notification-alert"
|
|
8
|
-
@remove="onRemove"
|
|
9
|
-
>
|
|
10
|
-
</atoms-alert>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script setup lang="ts">
|
|
14
|
-
const props = defineProps<{
|
|
15
|
-
alerts: string[]
|
|
16
|
-
}>()
|
|
17
|
-
|
|
18
|
-
const emits = defineEmits<{
|
|
19
|
-
(event: 'remove-alerts'): void
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const onRemove = (): void => {
|
|
23
|
-
emits('remove-alerts')
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<style scoped lang="scss"></style>
|
|
@@ -1,145 +0,0 @@
|
|
|
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.deletingSavedSettings"
|
|
53
|
-
:description="props.confirmModalDesc"
|
|
54
|
-
@hide-modal="isConfirmModalLocal = false"
|
|
55
|
-
@confirm="onApplyDelete"
|
|
56
|
-
/>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<script setup lang="ts">
|
|
60
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
61
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
62
|
-
|
|
63
|
-
const localSelectedChartOptionLocal = defineModel<string>(
|
|
64
|
-
'localSelectedChartOption',
|
|
65
|
-
{
|
|
66
|
-
required: true,
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
const isConfirmModalLocal = defineModel<boolean>('isConfirmModal', {
|
|
70
|
-
required: true,
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
const props = defineProps<{
|
|
74
|
-
chartOptions: UI_I_OptionItem[]
|
|
75
|
-
isDisabledDeleteAction: boolean
|
|
76
|
-
confirmModalDesc: string
|
|
77
|
-
}>()
|
|
78
|
-
|
|
79
|
-
const emits = defineEmits<{
|
|
80
|
-
(event: 'save-options', value: string): void
|
|
81
|
-
(event: 'delete-action'): void
|
|
82
|
-
(event: 'apply-delete'): void
|
|
83
|
-
}>()
|
|
84
|
-
|
|
85
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
86
|
-
|
|
87
|
-
const newChartName = ref<string>('')
|
|
88
|
-
watch(
|
|
89
|
-
() => props.isDisabledDeleteAction,
|
|
90
|
-
(newValue) => {
|
|
91
|
-
newChartName.value = newValue ? localSelectedChartOptionLocal.value : ''
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
const newChartNameError = ref<string>('')
|
|
96
|
-
|
|
97
|
-
const onSaveNewName = (): void => {
|
|
98
|
-
if (!newChartName.value) {
|
|
99
|
-
newChartNameError.value = localization.value.common.fieldRequired
|
|
100
|
-
} else {
|
|
101
|
-
newChartNameError.value = ''
|
|
102
|
-
emits('save-options', newChartName.value)
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const onApplyDelete = (): void => {
|
|
107
|
-
emits('apply-delete')
|
|
108
|
-
newChartName.value = ''
|
|
109
|
-
}
|
|
110
|
-
</script>
|
|
111
|
-
|
|
112
|
-
<style>
|
|
113
|
-
:root {
|
|
114
|
-
--chart-options-name-actions-seperate-border-color: #e9ebeda3;
|
|
115
|
-
}
|
|
116
|
-
:root.dark-theme {
|
|
117
|
-
--chart-options-name-actions-seperate-border-color: #e9ebed1f;
|
|
118
|
-
}
|
|
119
|
-
</style>
|
|
120
|
-
<style scoped lang="scss">
|
|
121
|
-
.chart-options-actions {
|
|
122
|
-
display: grid;
|
|
123
|
-
grid-template-columns: 2fr 2fr max-content max-content max-content;
|
|
124
|
-
align-items: center;
|
|
125
|
-
grid-gap: 16px;
|
|
126
|
-
|
|
127
|
-
& > :first-child {
|
|
128
|
-
margin-top: -16px;
|
|
129
|
-
}
|
|
130
|
-
& > :nth-child(2) {
|
|
131
|
-
height: 36px;
|
|
132
|
-
}
|
|
133
|
-
.seperator-name-actions {
|
|
134
|
-
border: 1px solid var(--chart-options-name-actions-seperate-border-color);
|
|
135
|
-
height: 24px;
|
|
136
|
-
}
|
|
137
|
-
#delete-option-name {
|
|
138
|
-
color: #ea3223;
|
|
139
|
-
|
|
140
|
-
&:disabled {
|
|
141
|
-
color: #bdc3c7;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
</style>
|
|
@@ -1,108 +0,0 @@
|
|
|
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="props.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
|
-
confirmModalDesc: string
|
|
75
|
-
}>()
|
|
76
|
-
|
|
77
|
-
const emits = defineEmits<{
|
|
78
|
-
(event: 'show-save-options-modal'): void
|
|
79
|
-
(event: 'hide-save-options-modal'): void
|
|
80
|
-
(event: 'save-options', value: string): void
|
|
81
|
-
(event: 'delete-action'): void
|
|
82
|
-
(event: 'apply-delete'): void
|
|
83
|
-
}>()
|
|
84
|
-
|
|
85
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
86
|
-
</script>
|
|
87
|
-
|
|
88
|
-
<style scoped lang="scss">
|
|
89
|
-
.horizontal-flex-container {
|
|
90
|
-
display: flex;
|
|
91
|
-
flex-direction: row;
|
|
92
|
-
align-items: center;
|
|
93
|
-
|
|
94
|
-
.chart-options-save-button,
|
|
95
|
-
.chart-options-delete-button {
|
|
96
|
-
border: none;
|
|
97
|
-
background: unset;
|
|
98
|
-
margin: 0;
|
|
99
|
-
font-size: 11px;
|
|
100
|
-
color: var(--action-icon-color);
|
|
101
|
-
box-shadow: unset;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.chart-options-delete-button {
|
|
105
|
-
text-transform: uppercase;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
</style>
|
|
@@ -1,97 +0,0 @@
|
|
|
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>
|