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