bfg-common 1.4.9 → 1.4.10

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 (54) hide show
  1. package/assets/localization/local_be.json +0 -3
  2. package/assets/localization/local_en.json +0 -3
  3. package/assets/localization/local_hy.json +0 -3
  4. package/assets/localization/local_kk.json +0 -3
  5. package/assets/localization/local_ru.json +0 -3
  6. package/assets/localization/local_zh.json +2563 -2566
  7. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  8. package/components/common/browse/blocks/Title.vue +91 -91
  9. package/components/common/browse/blocks/info/Date.vue +21 -21
  10. package/components/common/context/recursion/Recursion.vue +86 -86
  11. package/components/common/context/recursion/RecursionNew.vue +198 -198
  12. package/components/common/context/recursion/RecursionOld.vue +212 -212
  13. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +1 -1
  14. package/components/common/pages/hardwareHealth/Graph.vue +84 -0
  15. package/components/common/pages/hardwareHealth/HardwareHealth.vue +62 -45
  16. package/components/common/pages/hardwareHealth/tableView/TableView.vue +10 -4
  17. package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +11 -7
  18. package/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys.ts +7 -6
  19. package/components/common/pages/hardwareHealth/tableView/lib/models/interfaces.ts +0 -2
  20. package/components/common/pages/hardwareHealth/tableView/lib/models/types.ts +4 -9
  21. package/components/common/split/horizontal/HorizontalNew.vue +321 -321
  22. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +52 -52
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  24. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  25. package/components/common/wizards/datastore/add/Add.vue +437 -437
  26. package/composables/productNameLocal.ts +30 -30
  27. package/lib/models/interfaces.ts +0 -1
  28. package/lib/models/types.ts +0 -1
  29. package/package.json +1 -1
  30. package/plugins/recursion.ts +311 -293
  31. package/public/spice-console/lib/images/bitmap.js +203 -203
  32. package/store/tasks/mappers/recentTasks.ts +45 -45
  33. package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +0 -332
  34. package/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces.ts +0 -9
  35. package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +0 -375
  36. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +0 -469
  37. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/Notification.vue +0 -30
  38. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +0 -157
  39. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +0 -81
  40. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +0 -25
  41. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +0 -89
  42. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/Table.vue +0 -174
  43. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/lib/config/tableConfig.ts +0 -89
  44. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/lib/models/types.ts +0 -5
  45. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +0 -64
  46. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +0 -539
  47. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +0 -115
  48. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/config/optionsMetrics.ts +0 -17
  49. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/interfaces.ts +0 -15
  50. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types.ts +0 -1
  51. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/Metrics.vue +0 -31
  52. package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +0 -78
  53. package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/models/interfaces.ts +0 -9
  54. package/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable.ts +0 -128
@@ -1,31 +0,0 @@
1
- <template>
2
- <div class="chart-option-groups-container">
3
- <span>{{ localization.common.chartMetrics }}</span>
4
- <atoms-tabs-vertical-tabs
5
- v-model="selectedMetric"
6
- :items="props.metricsItems"
7
- />
8
- </div>
9
- </template>
10
-
11
- <script setup lang="ts">
12
- import type { UI_I_Localization } from '~/lib/models/interfaces'
13
- import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
14
- import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
15
-
16
- const props = defineProps<{
17
- metricsItems: UI_I_VerticalTabs[]
18
- }>()
19
-
20
- const localization = computed<UI_I_Localization>(() => useLocal())
21
-
22
- const selectedMetric = defineModel<UI_T_Chart>('selectedMetric')
23
- </script>
24
-
25
- <style scoped lang="scss">
26
- .chart-option-groups-container {
27
- margin-top: 10px;
28
- flex-basis: 20%;
29
- //min-width: 20%;
30
- }
31
- </style>
@@ -1,78 +0,0 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
3
-
4
- export const periodFunc = (
5
- localization: UI_I_Localization,
6
- selectedTimespanType: string
7
- ): UI_I_OptionItem[] => {
8
- const result = [
9
- {
10
- text: localization.common.realTime,
11
- value: 'real_time',
12
- },
13
- {
14
- text: localization.common.lastDay,
15
- value: 'last_day',
16
- },
17
- {
18
- text: localization.common.lastWeek,
19
- value: 'last_week',
20
- },
21
- {
22
- text: localization.common.lastMonth,
23
- value: 'last_month',
24
- },
25
- // {
26
- // text: localization.common.lastYear,
27
- // value: 'last_year',
28
- // },
29
- ]
30
-
31
- if (selectedTimespanType === 'custom_interval') {
32
- result.push({
33
- text: localization.common.customInterval,
34
- value: 'custom_interval',
35
- })
36
- }
37
-
38
- return result
39
- }
40
-
41
- export const viewFunc = (
42
- localization: UI_I_Localization,
43
- optionsNames: string[]
44
- ): UI_I_OptionItem[] => {
45
- const result = [
46
- {
47
- text: localization.common.power,
48
- value: 'power',
49
- },
50
- {
51
- text: localization.inventoryMonitor.temperature,
52
- value: 'temperature',
53
- },
54
- ]
55
-
56
- if (optionsNames) {
57
- optionsNames.forEach((item) => {
58
- result.push({
59
- text: item,
60
- value: item,
61
- })
62
- })
63
- }
64
-
65
- return result
66
- }
67
-
68
- export const getCurrentOptionsStorageFunc = (): string[] => {
69
- const optionsNames = []
70
- for (const key of Object.entries(localStorage)) {
71
- if (key[0].includes('ChartOptionsSensors')) {
72
- if (key[0].includes('ChartOptionsSensors')) {
73
- optionsNames.push(key[0].replace('ChartOptionsSensors', ''))
74
- }
75
- }
76
- }
77
- return optionsNames
78
- }
@@ -1,9 +0,0 @@
1
- import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
2
-
3
- export interface UI_I_SensorsGraphPayload {
4
- fields: string
5
- period: number[]
6
- periodName: string
7
- view: string
8
- metricType: UI_T_Chart
9
- }
@@ -1,128 +0,0 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import { UI_E_SensorsCategoryIcon } from '~/components/common/pages/hardwareHealth/lib/models/enums'
3
- import {
4
- constructHeadItem,
5
- constructColumnKey,
6
- } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
7
- import {
8
- sensorsLocalizationByStatus,
9
- sensorsIconByStatus,
10
- } from '~/components/common/pages/hardwareHealth/lib/config/status'
11
- import { hardwareHealthHistoryTestimonyTableKeys } from '~/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys'
12
- import type {
13
- UI_I_BodyItem,
14
- UI_I_ColumnKey,
15
- UI_I_HeadItem,
16
- } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
17
- import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
18
-
19
- const getItems = (
20
- localization: UI_I_Localization
21
- ): [string, boolean, string, string][] => {
22
- return [
23
- [
24
- localization.common.sensors,
25
- true,
26
- '330px',
27
- hardwareHealthHistoryTestimonyTableKeys[0],
28
- ],
29
- [
30
- localization.common.status,
31
- true,
32
- '140px',
33
- hardwareHealthHistoryTestimonyTableKeys[1],
34
- ],
35
- [
36
- localization.common.categories,
37
- true,
38
- '130px',
39
- hardwareHealthHistoryTestimonyTableKeys[2],
40
- ],
41
- [
42
- localization.common.path,
43
- true,
44
- '130px',
45
- hardwareHealthHistoryTestimonyTableKeys[3],
46
- ],
47
- ]
48
- }
49
- export const columnKeys = (
50
- localization: UI_I_Localization
51
- ): UI_I_ColumnKey[] => {
52
- const result: UI_I_ColumnKey[] = []
53
- getItems(localization).forEach((item, i) => {
54
- const col = i === 1 || i === 2 ? 'icon' : `col${i}`
55
- result.push(
56
- constructColumnKey(col, item[0], item[1], `show-column-${item[3]}`)
57
- )
58
- })
59
- return result
60
- }
61
- export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
62
- const result: UI_I_HeadItem[] = []
63
- getItems(localization).forEach((item, i) => {
64
- const col = i === 1 || i === 2 ? 'icon' : `col${i}`
65
- result.push(
66
- constructHeadItem(
67
- col,
68
- item[0],
69
- item[3],
70
- true,
71
- item[2],
72
- undefined,
73
- item[3]
74
- )
75
- )
76
- })
77
- return result
78
- }
79
-
80
- export const bodyItems = (
81
- data: UI_I_HardwareHealthSensors[],
82
- localization: UI_I_Localization
83
- ): UI_I_BodyItem[][] => {
84
- const bodyItems: UI_I_BodyItem[][] = []
85
- data.forEach((sensor: UI_I_HardwareHealthSensors, key) => {
86
- const statusData = {
87
- iconClassName: sensorsIconByStatus[sensor.status],
88
- isSprite: false,
89
- warning: sensor.warning,
90
- }
91
-
92
- if (!['disk health'].includes(sensor.category.toLowerCase()))
93
- bodyItems.push([
94
- {
95
- key: 'col0',
96
- text: sensor[hardwareHealthHistoryTestimonyTableKeys[0]],
97
- id: key,
98
- },
99
- {
100
- key: 'icon',
101
- text: localization[
102
- sensorsLocalizationByStatus[
103
- sensor[hardwareHealthHistoryTestimonyTableKeys[1]]
104
- ]
105
- ],
106
- id: key,
107
- data: statusData,
108
- },
109
- {
110
- key: 'icon',
111
- text: sensor[hardwareHealthHistoryTestimonyTableKeys[2]],
112
- id: key,
113
- data: {
114
- iconClassName:
115
- UI_E_SensorsCategoryIcon[sensor.category.toLowerCase()],
116
- isSprite: true,
117
- },
118
- },
119
- {
120
- key: 'col3',
121
- text: sensor[hardwareHealthHistoryTestimonyTableKeys[3]],
122
- id: key,
123
- },
124
- ])
125
- })
126
-
127
- return bodyItems
128
- }