bfg-common 1.4.55 → 1.4.56

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 (33) hide show
  1. package/assets/img/icons/icons-sprite-dark-6.svg +1 -190
  2. package/assets/img/icons/icons-sprite-dark-9.svg +71 -0
  3. package/assets/img/icons/icons-sprite-light-6.svg +1 -190
  4. package/assets/img/icons/icons-sprite-light-9.svg +71 -0
  5. package/assets/localization/local_be.json +14 -1
  6. package/assets/localization/local_en.json +14 -1
  7. package/assets/localization/local_hy.json +14 -1
  8. package/assets/localization/local_kk.json +14 -1
  9. package/assets/localization/local_ru.json +38 -25
  10. package/assets/localization/local_zh.json +14 -1
  11. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +31 -4
  12. package/components/atoms/table/dataGrid/lib/models/interfaces.ts +5 -0
  13. package/components/common/graph/Graph.vue +5 -4
  14. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +6 -6
  15. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +0 -1
  16. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +1 -1
  17. package/components/common/pages/hardwareHealth/HardwareHealth.vue +12 -9
  18. package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +103 -22
  19. package/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces.ts +1 -0
  20. package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +9 -4
  21. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +29 -11
  22. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +10 -5
  23. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +6 -4
  24. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +13 -13
  25. package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +4 -0
  26. package/components/common/pages/hardwareHealth/lib/config/status.ts +1 -1
  27. package/components/common/pages/hardwareHealth/tableView/TableView.vue +7 -2
  28. package/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable.ts +11 -2
  29. package/components/common/pages/hardwareHealth/tableView/lib/models/interfaces.ts +1 -0
  30. package/components/common/pages/hardwareHealth/tableView/modal/{sensorWarning.vue → SensorWarning.vue} +1 -1
  31. package/components/common/recursionTree/RecursionTree.vue +5 -1
  32. package/lib/models/interfaces.ts +2 -0
  33. package/package.json +1 -1
@@ -81,13 +81,14 @@ import * as systemLogTable from '~/components/common/pages/hardwareHealth/tableV
81
81
  import * as historyTestimonyTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable'
82
82
 
83
83
  const props = defineProps<{
84
+ selectedGraphView: string
84
85
  dataTable: UI_I_HardwareHealthSensors[]
85
86
  loading: boolean
86
87
  totalItems: number
87
88
  totalPages: number
88
89
  tableMode: UI_T_HardwareHealthTabMode
89
90
  }>()
90
- const selectedRow = defineModel<string[]>('selected')
91
+ const selectedRow = defineModel<number[]>('selectedRow')
91
92
  const localization = computed<UI_I_Localization>(() => useLocal())
92
93
 
93
94
  const table: any = {
@@ -135,7 +136,11 @@ const bodyItems = computed<UI_I_BodyItem[][]>(() => {
135
136
  break
136
137
  }
137
138
 
138
- return table[props.tableMode].bodyItems(tableData, localization.value)
139
+ return table[props.tableMode].bodyItems(
140
+ tableData,
141
+ localization.value,
142
+ props.selectedGraphView
143
+ )
139
144
  })
140
145
 
141
146
  const isShowSensorWarningDetails = ref<boolean>(false)
@@ -79,7 +79,8 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
79
79
 
80
80
  export const bodyItems = (
81
81
  data: UI_I_HardwareHealthSensors[],
82
- localization: UI_I_Localization
82
+ localization: UI_I_Localization,
83
+ selectedGraphView: string
83
84
  ): UI_I_BodyItem[][] => {
84
85
  const bodyItems: UI_I_BodyItem[][] = []
85
86
  data.forEach((sensor: UI_I_HardwareHealthSensors, key) => {
@@ -89,7 +90,15 @@ export const bodyItems = (
89
90
  warning: sensor.warning,
90
91
  }
91
92
 
92
- if (!['disk health'].includes(sensor.category.toLowerCase()))
93
+ const isCurrentItem =
94
+ selectedGraphView !== 'all'
95
+ ? selectedGraphView === sensor.category.toLowerCase()
96
+ : true
97
+
98
+ if (
99
+ !['disk health'].includes(sensor.category.toLowerCase()) &&
100
+ isCurrentItem
101
+ )
93
102
  bodyItems.push([
94
103
  {
95
104
  key: 'col0',
@@ -8,6 +8,7 @@ export interface UI_I_HardwareHealthSensors {
8
8
  reading: string
9
9
  category: string
10
10
  lastUpdated: string
11
+ hidden: boolean
11
12
  mainName?: string
12
13
  path?: string
13
14
  warning?: string
@@ -3,7 +3,7 @@
3
3
  show
4
4
  width="580px"
5
5
  class="feedback-field"
6
- :title="localization.common.theOperationFailed"
6
+ :title="localization.common.problem"
7
7
  test-id="feedback-filed-modal"
8
8
  @hide="onCloseModal"
9
9
  >
@@ -1,6 +1,10 @@
1
1
  <template>
2
2
  <div class="recursion-tree">
3
- <div v-for="node in nodes" :key="`${node.type}_${node.id}`">
3
+ <div
4
+ v-for="node in nodes"
5
+ :key="`${node.type}_${node.id}`"
6
+ :data-id="`${node.testId}-${node.type}-root`"
7
+ >
4
8
  <div
5
9
  :id="`tree-node-${node.type}-${node.id}`"
6
10
  :data-id="node.testId"
@@ -31,6 +31,8 @@ export interface UI_I_Localization {
31
31
  inventoryTabs: UI_I_ArbitraryObject<string>
32
32
  snapshots: UI_I_ArbitraryObject<string>
33
33
  importVms: UI_I_ArbitraryObject<string>
34
+ storageDevice: UI_I_ArbitraryObject<string>
35
+ scheduledTasks: UI_I_ArbitraryObject<string>
34
36
  }
35
37
  export interface UI_I_SendTaskParams {
36
38
  method: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.55",
4
+ "version": "1.4.56",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",