bfg-common 1.4.884 → 1.4.886
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/localization/local_be.json +3025 -3018
- package/assets/localization/local_en.json +3029 -3022
- package/assets/localization/local_hy.json +3029 -3022
- package/assets/localization/local_kk.json +8 -1
- package/assets/localization/local_ru.json +8 -1
- package/assets/localization/local_zh.json +8 -2
- package/components/common/graph/GraphNew.vue +179 -178
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +106 -106
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsNew.vue +1 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +28 -25
- package/components/common/monitor/overview/Overview.vue +132 -224
- package/components/common/monitor/overview/OverviewNew.vue +120 -142
- package/components/common/monitor/overview/filters/Filters.vue +169 -166
- package/components/common/monitor/overview/filters/FiltersNew.vue +183 -172
- package/components/common/monitor/overview/filters/FiltersOld.vue +2 -0
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +173 -175
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalNew.vue +209 -186
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalOld.vue +2 -2
- package/package.json +2 -2
|
@@ -1,172 +1,183 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="overview-filters">
|
|
3
|
-
<div class="period-select-wrap">
|
|
4
|
-
<label for="period-select" class="label-select"
|
|
5
|
-
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
<ui-select
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
:root
|
|
128
|
-
--overview-filter-text-color: #
|
|
129
|
-
--overview-filter-edit-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="overview-filters">
|
|
3
|
+
<div class="period-select-wrap">
|
|
4
|
+
<label for="period-select" class="label-select"
|
|
5
|
+
>{{ localization.inventoryMonitor.period }}:</label
|
|
6
|
+
>
|
|
7
|
+
|
|
8
|
+
<ui-select
|
|
9
|
+
v-if="!props.disabledPeriodOptions"
|
|
10
|
+
v-model="selectedPeriod"
|
|
11
|
+
:items="props.periodOptions"
|
|
12
|
+
:margin-between-trigger="4"
|
|
13
|
+
test-id="period-select"
|
|
14
|
+
width="auto"
|
|
15
|
+
/>
|
|
16
|
+
<span v-else class="single-option">{{
|
|
17
|
+
props.periodOptions[0].text
|
|
18
|
+
}}</span>
|
|
19
|
+
<span v-if="!props.disabledPeriodOptions" class="chart-text">
|
|
20
|
+
{{ props.chartTitleDate }}
|
|
21
|
+
</span>
|
|
22
|
+
<ui-skeleton-item
|
|
23
|
+
v-if="!props.disabledPeriodOptions && !props.chartTitleDate"
|
|
24
|
+
width="320"
|
|
25
|
+
height="16"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<ui-tooltip
|
|
29
|
+
v-show="props.isShowCustomIntervalButton"
|
|
30
|
+
id="tooltip-interval-modal-button"
|
|
31
|
+
test-id="tooltip-interval-modal-button"
|
|
32
|
+
size="sm"
|
|
33
|
+
position="bottom"
|
|
34
|
+
position-by-tooltip="center"
|
|
35
|
+
>
|
|
36
|
+
<template #target>
|
|
37
|
+
<div
|
|
38
|
+
id="tooltip-interval-modal-button"
|
|
39
|
+
class="popped tooltip inline-block"
|
|
40
|
+
>
|
|
41
|
+
<ui-icon
|
|
42
|
+
name="edit"
|
|
43
|
+
width="16"
|
|
44
|
+
height="16"
|
|
45
|
+
test-id="show-interval-modal-button"
|
|
46
|
+
class="interval-modal-button"
|
|
47
|
+
@click="onShowIntervalModal"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
<template #content>
|
|
52
|
+
<span class="header-tooltip-text">
|
|
53
|
+
{{ localization.inventoryMonitor.changeCustomInterval }}
|
|
54
|
+
</span>
|
|
55
|
+
</template>
|
|
56
|
+
</ui-tooltip>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div class="view-select-wrap">
|
|
60
|
+
<label for="view-select" class="label-select"
|
|
61
|
+
>{{ localization.common.view }}:</label
|
|
62
|
+
>
|
|
63
|
+
<ui-select
|
|
64
|
+
v-model="selectedView"
|
|
65
|
+
:items="props.viewOptions"
|
|
66
|
+
:margin-between-trigger="4"
|
|
67
|
+
test-id="view-select"
|
|
68
|
+
width="auto"
|
|
69
|
+
left
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<common-monitor-overview-filters-custom-interval-modal
|
|
75
|
+
v-if="props.validDateEnd"
|
|
76
|
+
v-show="props.isShowIntervalModal"
|
|
77
|
+
:selected-periods="props.selectedPeriods"
|
|
78
|
+
:format-date="props.formatDate"
|
|
79
|
+
:current-lang="props.currentLang"
|
|
80
|
+
:valid-date-end="props.validDateEnd"
|
|
81
|
+
:selected-node-name="props.selectedNodeName"
|
|
82
|
+
@hide="onHideIntervalModal"
|
|
83
|
+
@submit="onSubmitIntervalModal"
|
|
84
|
+
/>
|
|
85
|
+
</template>
|
|
86
|
+
|
|
87
|
+
<script setup lang="ts">
|
|
88
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
89
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
90
|
+
|
|
91
|
+
const selectedPeriod = defineModel<string>('selected-period')
|
|
92
|
+
const selectedView = defineModel<string>('selected-view')
|
|
93
|
+
|
|
94
|
+
const props = defineProps<{
|
|
95
|
+
disabledPeriodOptions: boolean
|
|
96
|
+
periodOptions: UI_I_OptionItem[]
|
|
97
|
+
isShowCustomIntervalButton: boolean
|
|
98
|
+
chartTitleDate: string
|
|
99
|
+
viewOptions: UI_I_OptionItem[]
|
|
100
|
+
validDateEnd: number
|
|
101
|
+
isShowIntervalModal: boolean
|
|
102
|
+
selectedPeriods: number[]
|
|
103
|
+
formatDate: string
|
|
104
|
+
currentLang: string
|
|
105
|
+
selectedNodeName: string
|
|
106
|
+
}>()
|
|
107
|
+
const emits = defineEmits<{
|
|
108
|
+
(event: 'submit-interval-modal', value: number[]): void
|
|
109
|
+
(event: 'show-interval-modal'): void
|
|
110
|
+
(event: 'hide-interval-modal'): void
|
|
111
|
+
}>()
|
|
112
|
+
|
|
113
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
114
|
+
|
|
115
|
+
const onShowIntervalModal = (): void => {
|
|
116
|
+
emits('show-interval-modal')
|
|
117
|
+
}
|
|
118
|
+
const onHideIntervalModal = (): void => {
|
|
119
|
+
emits('hide-interval-modal')
|
|
120
|
+
}
|
|
121
|
+
const onSubmitIntervalModal = (data: number[]): void => {
|
|
122
|
+
emits('submit-interval-modal', data)
|
|
123
|
+
}
|
|
124
|
+
</script>
|
|
125
|
+
|
|
126
|
+
<style>
|
|
127
|
+
:root {
|
|
128
|
+
--overview-filter-text-color: #4d5d69;
|
|
129
|
+
--overview-filter-edit-color: #008fd6;
|
|
130
|
+
--overview-filter-edit-hover-color: #0081c1;
|
|
131
|
+
}
|
|
132
|
+
:root.dark-theme {
|
|
133
|
+
--overview-filter-text-color: #e9eaec;
|
|
134
|
+
--overview-filter-edit-color: #2ba2de;
|
|
135
|
+
--overview-filter-edit-hover-color: #008fd6;
|
|
136
|
+
}
|
|
137
|
+
</style>
|
|
138
|
+
<style scoped lang="scss">
|
|
139
|
+
.overview-filters {
|
|
140
|
+
display: flex;
|
|
141
|
+
justify-content: space-between;
|
|
142
|
+
align-items: center;
|
|
143
|
+
flex-wrap: wrap;
|
|
144
|
+
grid-column-gap: 32px;
|
|
145
|
+
grid-row-gap: 16px;
|
|
146
|
+
padding: 12px 16px 16px 6px;
|
|
147
|
+
|
|
148
|
+
.period-select-wrap {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
flex-wrap: wrap;
|
|
152
|
+
grid-row-gap: 12px;
|
|
153
|
+
|
|
154
|
+
.chart-text {
|
|
155
|
+
font-size: 13px;
|
|
156
|
+
color: var(--overview-filter-text-color);
|
|
157
|
+
margin-left: 12px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.interval-modal-button {
|
|
161
|
+
color: var(--overview-filter-edit-color);
|
|
162
|
+
margin-left: 8px;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
|
|
165
|
+
&:hover {
|
|
166
|
+
color: var(--overview-filter-edit-hover-color);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.view-select-wrap {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.label-select {
|
|
177
|
+
font-size: 13px;
|
|
178
|
+
font-weight: 500;
|
|
179
|
+
color: var(--overview-filter-text-color);
|
|
180
|
+
margin-right: 12px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
</style>
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
:format-date="props.formatDate"
|
|
60
60
|
:current-lang="props.currentLang"
|
|
61
61
|
:valid-date-end="props.validDateEnd"
|
|
62
|
+
:selected-node-name="props.selectedNodeName"
|
|
62
63
|
@hide="onHideIntervalModal"
|
|
63
64
|
@submit="onSubmitIntervalModal"
|
|
64
65
|
/>
|
|
@@ -82,6 +83,7 @@ const props = defineProps<{
|
|
|
82
83
|
selectedPeriods: number[]
|
|
83
84
|
formatDate: string
|
|
84
85
|
currentLang: string
|
|
86
|
+
selectedNodeName: string
|
|
85
87
|
}>()
|
|
86
88
|
const emits = defineEmits<{
|
|
87
89
|
(event: 'submit-interval-modal', value: number[]): void
|