bfg-common 1.4.723 → 1.4.725

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.
Files changed (35) hide show
  1. package/assets/localization/local_be.json +5 -2
  2. package/assets/localization/local_en.json +5 -2
  3. package/assets/localization/local_hy.json +5 -2
  4. package/assets/localization/local_kk.json +5 -2
  5. package/assets/localization/local_ru.json +5 -2
  6. package/assets/localization/local_zh.json +5 -2
  7. package/assets/scss/clarity/local_ar.json +2916 -0
  8. package/assets/scss/common/normalize.scss +6 -0
  9. package/components/common/browse/blocks/contents/Files.vue +1 -1
  10. package/components/common/layout/theHeader/lib/models/enums.ts +1 -0
  11. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +5 -2
  12. package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +36 -20
  13. package/components/common/monitor/advanced/Advanced.vue +244 -244
  14. package/components/common/monitor/advanced/tools/Tools.vue +447 -447
  15. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +511 -511
  16. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +108 -108
  17. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +95 -95
  18. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +544 -544
  19. package/components/common/monitor/overview/filters/Filters.vue +235 -235
  20. package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +250 -250
  21. package/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker.ts +62 -62
  22. package/components/common/pages/hardwareHealth/HardwareHealth.vue +213 -213
  23. package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +456 -456
  24. package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +387 -387
  25. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +494 -494
  26. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +96 -96
  27. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +68 -68
  28. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +544 -544
  29. package/components/common/recursionTree/RecursionTree.vue +29 -18
  30. package/components/common/selectLanguage/lib/config/config.ts +5 -0
  31. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +17 -2
  32. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +11 -3
  33. package/composables/useLocal.ts +5 -0
  34. package/layouts/auth.vue +1 -0
  35. package/package.json +1 -1
@@ -1,235 +1,235 @@
1
- <template>
2
- <div class="horizontal-flex-container overview-chart-title-bar">
3
- <div class="horizontal-flex-container">
4
- <label for="periodSelect" class="label-select"
5
- >{{ localization.inventoryMonitor.period }}:</label
6
- >
7
- <div v-if="!disabledPeriodOptions" class="select">
8
- <select
9
- id="periodSelect"
10
- v-model="selectedPeriod"
11
- data-id="period-select"
12
- >
13
- <option
14
- v-for="(item, index) in periodOptions"
15
- :key="index"
16
- :value="item.value"
17
- >
18
- {{ item.text }}
19
- </option>
20
- </select>
21
- </div>
22
- <span v-else class="single-option">{{ periodOptions[0].text }}</span>
23
- </div>
24
- <div v-show="isShowCustomIntervalButton">
25
- <a
26
- id="show-interval-modal-button"
27
- data-id="show-interval-modal-button"
28
- @click="onShowIntervalModal"
29
- >{{ localization.inventoryMonitor.changeCustomInterval }}</a
30
- >
31
- </div>
32
- <div v-if="!disabledPeriodOptions" class="chart-title">
33
- {{ chartTitleDate }}
34
- </div>
35
- <div class="view-select-label horizontal-flex-container">
36
- <label for="viewSelect" class="label-select"
37
- >{{ localization.common.view }}:</label
38
- >
39
- <div class="select">
40
- <select id="viewSelect" v-model="selectedView" data-id="view-select">
41
- <option
42
- v-for="(item, index) in viewOptions"
43
- :key="index"
44
- :value="item.value"
45
- >
46
- {{ item.text }}
47
- </option>
48
- </select>
49
- </div>
50
- </div>
51
- </div>
52
-
53
- <common-monitor-overview-filters-custom-interval-modal
54
- v-if="props.validDateEnd"
55
- v-show="isShowIntervalModal"
56
- :selected-periods="props.selectedPeriods"
57
- :format-date="props.formatDate"
58
- :current-lang="props.currentLang"
59
- :valid-date-end="props.validDateEnd"
60
- @hide="onHideIntervalModal"
61
- @submit="onSubmitIntervalModal"
62
- />
63
- </template>
64
-
65
- <script setup lang="ts">
66
- import type { UI_I_Localization } from '~/lib/models/interfaces'
67
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
68
- import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
69
- import type { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/lib/models/types'
70
- import {
71
- periodFunc,
72
- viewFunc,
73
- } from '~/components/common/monitor/overview/filters/lib/config/filterOptions'
74
- import { getValidDateByOptionFunc } from '~/components/common/monitor/lib/config/getValidDateByOption'
75
-
76
- const localization = computed<UI_I_Localization>(() => useLocal())
77
- const { $formattedDatetime } = useNuxtApp()
78
-
79
- const props = defineProps<{
80
- startDate: number
81
- endDate: number
82
- chartType: 'spline' | 'pie'
83
- view: UI_T_OverviewViewType
84
- selectedPeriods: number[]
85
- formatDate: string
86
- currentLang: string
87
- validDateEnd: number
88
- formatTime?: string
89
- }>()
90
-
91
- const emits = defineEmits<{
92
- (event: 'update-filters', value: UI_I_MonitorGraphPayload): void
93
- (event: 'update-custom-date', value: number[]): void
94
- }>()
95
-
96
- const selectedPeriod = ref<string>('')
97
- const periodOptions = computed<UI_I_OptionItem[]>(() =>
98
- periodFunc(localization.value)
99
- )
100
- watch(
101
- () => periodOptions.value,
102
- (newValue: UI_I_OptionItem[]) => {
103
- if (newValue) selectedPeriod.value = newValue[0].value
104
- },
105
- { immediate: true }
106
- )
107
-
108
- const isShowCustomIntervalButton = computed<boolean>(
109
- () => selectedPeriod.value === 'custom_interval'
110
- )
111
-
112
- const isShowIntervalModal = ref<boolean>(false)
113
- const onShowIntervalModal = (): void => {
114
- isShowIntervalModal.value = true
115
- }
116
- const onHideIntervalModal = (): void => {
117
- isShowIntervalModal.value = false
118
- }
119
- const onSubmitIntervalModal = (customDates: number[]): void => {
120
- customDatesData.value = customDates
121
- sendUpdatedFilters()
122
- onHideIntervalModal()
123
- emits('update-custom-date', customDates)
124
- }
125
-
126
- const chartTitleDate = computed<string>(() => {
127
- const startValue = props.startDate
128
- const endValue = props.endDate
129
- if (!startValue && !endValue) return ''
130
-
131
- const start = $formattedDatetime(
132
- startValue,
133
- props.formatDate,
134
- true,
135
- '',
136
- props.formatTime
137
- )
138
- const end = $formattedDatetime(
139
- endValue,
140
- props.formatDate,
141
- true,
142
- '',
143
- props.formatTime
144
- )
145
- return `${start} - ${end}`
146
- })
147
-
148
- // const disabledPeriodOptions = computed<boolean>(
149
- // () => props.chartType === 'pie' || !chartTitleDate.value
150
- // )
151
-
152
- const disabledPeriodOptions = computed<boolean>(() => props.chartType === 'pie')
153
-
154
- const selectedView = ref<string>('')
155
- const viewOptions = computed<UI_I_OptionItem[]>(() =>
156
- viewFunc(localization.value, props.view)
157
- )
158
- watch(
159
- () => viewOptions.value,
160
- (newValue: UI_I_OptionItem[]) => {
161
- if (newValue) selectedView.value = newValue[0].value
162
- },
163
- { immediate: true }
164
- )
165
-
166
- const customDatesData = ref<number[]>([])
167
- const sendUpdatedFilters = (): void => {
168
- const currentPeriod =
169
- selectedPeriod.value === 'custom_interval'
170
- ? customDatesData.value
171
- : getValidDateByOptionFunc(selectedPeriod.value)
172
- const filters: UI_I_MonitorGraphPayload = {
173
- period: currentPeriod,
174
- view: selectedView.value,
175
- periodName: selectedPeriod.value,
176
- }
177
-
178
- emits('update-filters', filters)
179
- }
180
- watch(
181
- () => [selectedPeriod.value, selectedView.value],
182
- () => {
183
- sendUpdatedFilters()
184
- },
185
- { immediate: true }
186
- )
187
- </script>
188
-
189
- <style scoped lang="scss">
190
- .horizontal-flex-container {
191
- display: flex;
192
- flex-direction: row;
193
- align-items: center;
194
- line-height: 20px;
195
- flex-shrink: 0;
196
- padding-top: 5px;
197
-
198
- .select {
199
- position: relative;
200
-
201
- select {
202
- height: 20px;
203
- margin: 5px;
204
- color: var(--global-font-color);
205
- }
206
- }
207
- .single-option {
208
- margin-left: 5px;
209
- }
210
-
211
- .chart-title {
212
- color: var(--global-font-color);
213
- text-overflow: ellipsis;
214
- white-space: nowrap;
215
- overflow: hidden;
216
- margin: 6px;
217
- font-weight: 700;
218
- text-transform: uppercase;
219
- }
220
-
221
- #show-interval-modal-button {
222
- cursor: pointer;
223
- color: var(--dropdown-item-color);
224
- }
225
-
226
- .view-select-label {
227
- margin-left: auto;
228
- padding-right: 7px;
229
- padding-left: 7px;
230
- text-overflow: ellipsis;
231
- white-space: nowrap;
232
- align-items: center;
233
- }
234
- }
235
- </style>
1
+ <template>
2
+ <div class="horizontal-flex-container overview-chart-title-bar">
3
+ <div class="horizontal-flex-container">
4
+ <label for="periodSelect" class="label-select"
5
+ >{{ localization.inventoryMonitor.period }}:</label
6
+ >
7
+ <div v-if="!disabledPeriodOptions" class="select">
8
+ <select
9
+ id="periodSelect"
10
+ v-model="selectedPeriod"
11
+ data-id="period-select"
12
+ >
13
+ <option
14
+ v-for="(item, index) in periodOptions"
15
+ :key="index"
16
+ :value="item.value"
17
+ >
18
+ {{ item.text }}
19
+ </option>
20
+ </select>
21
+ </div>
22
+ <span v-else class="single-option">{{ periodOptions[0].text }}</span>
23
+ </div>
24
+ <div v-show="isShowCustomIntervalButton">
25
+ <a
26
+ id="show-interval-modal-button"
27
+ data-id="show-interval-modal-button"
28
+ @click="onShowIntervalModal"
29
+ >{{ localization.inventoryMonitor.changeCustomInterval }}</a
30
+ >
31
+ </div>
32
+ <div v-if="!disabledPeriodOptions" class="chart-title">
33
+ {{ chartTitleDate }}
34
+ </div>
35
+ <div class="view-select-label horizontal-flex-container">
36
+ <label for="viewSelect" class="label-select"
37
+ >{{ localization.common.view }}:</label
38
+ >
39
+ <div class="select">
40
+ <select id="viewSelect" v-model="selectedView" data-id="view-select">
41
+ <option
42
+ v-for="(item, index) in viewOptions"
43
+ :key="index"
44
+ :value="item.value"
45
+ >
46
+ {{ item.text }}
47
+ </option>
48
+ </select>
49
+ </div>
50
+ </div>
51
+ </div>
52
+
53
+ <common-monitor-overview-filters-custom-interval-modal
54
+ v-if="props.validDateEnd"
55
+ v-show="isShowIntervalModal"
56
+ :selected-periods="props.selectedPeriods"
57
+ :format-date="props.formatDate"
58
+ :current-lang="props.currentLang"
59
+ :valid-date-end="props.validDateEnd"
60
+ @hide="onHideIntervalModal"
61
+ @submit="onSubmitIntervalModal"
62
+ />
63
+ </template>
64
+
65
+ <script setup lang="ts">
66
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
67
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
68
+ import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
69
+ import type { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/lib/models/types'
70
+ import {
71
+ periodFunc,
72
+ viewFunc,
73
+ } from '~/components/common/monitor/overview/filters/lib/config/filterOptions'
74
+ import { getValidDateByOptionFunc } from '~/components/common/monitor/lib/config/getValidDateByOption'
75
+
76
+ const localization = computed<UI_I_Localization>(() => useLocal())
77
+ const { $formattedDatetime } = useNuxtApp()
78
+
79
+ const props = defineProps<{
80
+ startDate: number
81
+ endDate: number
82
+ chartType: 'spline' | 'pie'
83
+ view: UI_T_OverviewViewType
84
+ selectedPeriods: number[]
85
+ formatDate: string
86
+ currentLang: string
87
+ validDateEnd: number
88
+ formatTime?: string
89
+ }>()
90
+
91
+ const emits = defineEmits<{
92
+ (event: 'update-filters', value: UI_I_MonitorGraphPayload): void
93
+ (event: 'update-custom-date', value: number[]): void
94
+ }>()
95
+
96
+ const selectedPeriod = ref<string>('')
97
+ const periodOptions = computed<UI_I_OptionItem[]>(() =>
98
+ periodFunc(localization.value)
99
+ )
100
+ watch(
101
+ () => periodOptions.value,
102
+ (newValue: UI_I_OptionItem[]) => {
103
+ if (newValue) selectedPeriod.value = newValue[0].value
104
+ },
105
+ { immediate: true }
106
+ )
107
+
108
+ const isShowCustomIntervalButton = computed<boolean>(
109
+ () => selectedPeriod.value === 'custom_interval'
110
+ )
111
+
112
+ const isShowIntervalModal = ref<boolean>(false)
113
+ const onShowIntervalModal = (): void => {
114
+ isShowIntervalModal.value = true
115
+ }
116
+ const onHideIntervalModal = (): void => {
117
+ isShowIntervalModal.value = false
118
+ }
119
+ const onSubmitIntervalModal = (customDates: number[]): void => {
120
+ customDatesData.value = customDates
121
+ sendUpdatedFilters()
122
+ onHideIntervalModal()
123
+ emits('update-custom-date', customDates)
124
+ }
125
+
126
+ const chartTitleDate = computed<string>(() => {
127
+ const startValue = props.startDate
128
+ const endValue = props.endDate
129
+ if (!startValue && !endValue) return ''
130
+
131
+ const start = $formattedDatetime(
132
+ startValue,
133
+ props.formatDate,
134
+ true,
135
+ '',
136
+ props.formatTime
137
+ )
138
+ const end = $formattedDatetime(
139
+ endValue,
140
+ props.formatDate,
141
+ true,
142
+ '',
143
+ props.formatTime
144
+ )
145
+ return `${start} - ${end}`
146
+ })
147
+
148
+ // const disabledPeriodOptions = computed<boolean>(
149
+ // () => props.chartType === 'pie' || !chartTitleDate.value
150
+ // )
151
+
152
+ const disabledPeriodOptions = computed<boolean>(() => props.chartType === 'pie')
153
+
154
+ const selectedView = ref<string>('')
155
+ const viewOptions = computed<UI_I_OptionItem[]>(() =>
156
+ viewFunc(localization.value, props.view)
157
+ )
158
+ watch(
159
+ () => viewOptions.value,
160
+ (newValue: UI_I_OptionItem[]) => {
161
+ if (newValue) selectedView.value = newValue[0].value
162
+ },
163
+ { immediate: true }
164
+ )
165
+
166
+ const customDatesData = ref<number[]>([])
167
+ const sendUpdatedFilters = (): void => {
168
+ const currentPeriod =
169
+ selectedPeriod.value === 'custom_interval'
170
+ ? customDatesData.value
171
+ : getValidDateByOptionFunc(selectedPeriod.value)
172
+ const filters: UI_I_MonitorGraphPayload = {
173
+ period: currentPeriod,
174
+ view: selectedView.value,
175
+ periodName: selectedPeriod.value,
176
+ }
177
+
178
+ emits('update-filters', filters)
179
+ }
180
+ watch(
181
+ () => [selectedPeriod.value, selectedView.value],
182
+ () => {
183
+ sendUpdatedFilters()
184
+ },
185
+ { immediate: true }
186
+ )
187
+ </script>
188
+
189
+ <style scoped lang="scss">
190
+ .horizontal-flex-container {
191
+ display: flex;
192
+ flex-direction: row;
193
+ align-items: center;
194
+ line-height: 20px;
195
+ flex-shrink: 0;
196
+ padding-top: 5px;
197
+
198
+ .select {
199
+ position: relative;
200
+
201
+ select {
202
+ height: 20px;
203
+ margin: 5px;
204
+ color: var(--global-font-color);
205
+ }
206
+ }
207
+ .single-option {
208
+ margin-left: 5px;
209
+ }
210
+
211
+ .chart-title {
212
+ color: var(--global-font-color);
213
+ text-overflow: ellipsis;
214
+ white-space: nowrap;
215
+ overflow: hidden;
216
+ margin: 6px;
217
+ font-weight: 700;
218
+ text-transform: uppercase;
219
+ }
220
+
221
+ #show-interval-modal-button {
222
+ cursor: pointer;
223
+ color: var(--dropdown-item-color);
224
+ }
225
+
226
+ .view-select-label {
227
+ margin-left: auto;
228
+ padding-right: 7px;
229
+ padding-left: 7px;
230
+ text-overflow: ellipsis;
231
+ white-space: nowrap;
232
+ align-items: center;
233
+ }
234
+ }
235
+ </style>