bfg-common 1.4.61 → 1.4.63

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 (62) hide show
  1. package/assets/localization/local_be.json +216 -216
  2. package/assets/localization/local_en.json +216 -216
  3. package/assets/localization/local_hy.json +216 -216
  4. package/assets/localization/local_kk.json +216 -216
  5. package/assets/localization/local_ru.json +216 -216
  6. package/assets/localization/local_zh.json +216 -216
  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/Advanced.vue +4 -3
  14. package/components/common/monitor/advanced/GraphView.vue +1 -1
  15. package/components/common/monitor/advanced/table/Table.vue +3 -1
  16. package/components/common/monitor/advanced/tools/Tools.vue +2 -2
  17. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
  18. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +9 -8
  19. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
  20. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
  21. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +1 -1
  22. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +222 -278
  23. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +3 -3
  24. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +113 -111
  25. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +1 -1
  26. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +1 -1
  27. package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
  28. package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +16 -16
  29. package/components/common/monitor/overview/Overview.vue +1 -1
  30. package/components/common/monitor/overview/filters/Filters.vue +2 -2
  31. package/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker.ts +5 -5
  32. package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +13 -14
  33. package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -2
  34. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
  35. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +5 -5
  36. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +1 -1
  37. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
  38. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/Table.vue +1 -1
  39. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +3 -3
  40. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +115 -115
  41. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
  42. package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +6 -6
  43. package/components/common/split/horizontal/HorizontalNew.vue +321 -321
  44. package/components/common/vm/actions/add/Add.vue +598 -603
  45. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +2 -2
  46. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  47. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  48. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +57 -61
  49. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  50. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  51. package/components/common/vm/actions/common/lib/config/capabilities.ts +0 -1
  52. package/components/common/vm/actions/common/lib/models/interfaces.ts +139 -148
  53. package/components/common/vm/actions/common/select/lib/models/interfaces.ts +32 -35
  54. package/components/common/vm/actions/common/select/os/os.vue +227 -233
  55. package/components/common/wizards/datastore/add/Add.vue +437 -437
  56. package/composables/productNameLocal.ts +30 -30
  57. package/package.json +1 -1
  58. package/plugins/binary.ts +0 -4
  59. package/plugins/recursion.ts +311 -311
  60. package/public/spice-console/lib/images/bitmap.js +203 -203
  61. package/store/tasks/mappers/recentTasks.ts +45 -45
  62. package/components/common/vm/actions/common/lib/utils/capabilities.ts +0 -46
@@ -1,115 +1,115 @@
1
- import type {
2
- UI_I_ArbitraryObject,
3
- UI_I_Localization,
4
- } from '~/lib/models/interfaces'
5
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
6
-
7
- export const timespanFunc = (
8
- localization: UI_I_Localization
9
- ): UI_I_OptionItem[] => [
10
- {
11
- text: localization.common.realTime,
12
- value: 'real_time',
13
- },
14
- {
15
- text: localization.common.lastDay,
16
- value: 'last_day',
17
- },
18
- {
19
- text: localization.common.lastWeek,
20
- value: 'last_week',
21
- },
22
- {
23
- text: localization.common.lastMonth,
24
- value: 'last_month',
25
- },
26
- // {
27
- // text: localization.common.lastYear,
28
- // value: 'last_year',
29
- // },
30
- {
31
- text: localization.common.customInterval,
32
- value: 'custom_interval',
33
- },
34
- ]
35
-
36
- export const customTimeFunc = (
37
- localization: UI_I_Localization,
38
- value: number,
39
- lang: string
40
- ): UI_I_OptionItem[] => {
41
- const isLangRu = lang === 'ru_RU'
42
-
43
- const hourText = isLangRu
44
- ? getCorrectRuForm(value, 'hour')
45
- : localization.common.hours2
46
- const dayText = isLangRu
47
- ? getCorrectRuForm(value, 'day')
48
- : localization.common.days2
49
- const weekText = isLangRu
50
- ? getCorrectRuForm(value, 'week')
51
- : localization.common.weeks2
52
- const monthText = isLangRu
53
- ? getCorrectRuForm(value, 'month')
54
- : localization.common.months2
55
-
56
- return [
57
- {
58
- text: hourText,
59
- value: 'hours',
60
- },
61
- {
62
- text: dayText,
63
- value: 'days',
64
- },
65
- {
66
- text: weekText,
67
- value: 'weeks',
68
- },
69
- {
70
- text: monthText,
71
- value: 'months',
72
- },
73
- ]
74
- }
75
-
76
- export const chartTypeFunc = (
77
- localization: UI_I_Localization
78
- ): UI_I_OptionItem[] => [
79
- {
80
- text: localization.common.lineGraph,
81
- value: 'line_graph',
82
- },
83
- {
84
- text: localization.common.stackedGraph,
85
- value: 'stacked_graph',
86
- },
87
- ]
88
-
89
- const getCorrectRuForm = (value: number, type: string): string => {
90
- const forms: UI_I_ArbitraryObject<string[]> = {
91
- hour: ['Час', 'Часа', 'Часов'],
92
- day: ['День', 'Дня', 'Дней'],
93
- week: ['Неделя', 'Недели', 'Недель'],
94
- month: ['Месяц', 'Месяца', 'Месяцев'],
95
- }
96
-
97
- let text: string
98
-
99
- if (!value) {
100
- return getCorrectRuForm[type]
101
- }
102
-
103
- if (value % 10 === 1 && value % 100 !== 11) {
104
- text = forms[type][0]
105
- } else if (
106
- [2, 3, 4].includes(value % 10) &&
107
- ![12, 13, 14].includes(value % 100)
108
- ) {
109
- text = forms[type][1]
110
- } else {
111
- text = forms[type][2]
112
- }
113
- getCorrectRuForm[type] = text
114
- return text
115
- }
1
+ import type {
2
+ UI_I_ArbitraryObject,
3
+ UI_I_Localization,
4
+ } from '~/lib/models/interfaces'
5
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
6
+
7
+ export const timespanFunc = (
8
+ localization: UI_I_Localization
9
+ ): UI_I_OptionItem[] => [
10
+ {
11
+ text: localization.inventoryMonitor.realTime,
12
+ value: 'real_time',
13
+ },
14
+ {
15
+ text: localization.inventoryMonitor.lastDay,
16
+ value: 'last_day',
17
+ },
18
+ {
19
+ text: localization.inventoryMonitor.lastWeek,
20
+ value: 'last_week',
21
+ },
22
+ {
23
+ text: localization.inventoryMonitor.lastMonth,
24
+ value: 'last_month',
25
+ },
26
+ // {
27
+ // text: localization.inventoryMonitor.lastYear,
28
+ // value: 'last_year',
29
+ // },
30
+ {
31
+ text: localization.inventoryMonitor.customInterval,
32
+ value: 'custom_interval',
33
+ },
34
+ ]
35
+
36
+ export const customTimeFunc = (
37
+ localization: UI_I_Localization,
38
+ value: number,
39
+ lang: string
40
+ ): UI_I_OptionItem[] => {
41
+ const isLangRu = lang === 'ru_RU'
42
+
43
+ const hourText = isLangRu
44
+ ? getCorrectRuForm(value, 'hour')
45
+ : localization.common.hours2
46
+ const dayText = isLangRu
47
+ ? getCorrectRuForm(value, 'day')
48
+ : localization.common.days2
49
+ const weekText = isLangRu
50
+ ? getCorrectRuForm(value, 'week')
51
+ : localization.common.weeks2
52
+ const monthText = isLangRu
53
+ ? getCorrectRuForm(value, 'month')
54
+ : localization.common.months2
55
+
56
+ return [
57
+ {
58
+ text: hourText,
59
+ value: 'hours',
60
+ },
61
+ {
62
+ text: dayText,
63
+ value: 'days',
64
+ },
65
+ {
66
+ text: weekText,
67
+ value: 'weeks',
68
+ },
69
+ {
70
+ text: monthText,
71
+ value: 'months',
72
+ },
73
+ ]
74
+ }
75
+
76
+ export const chartTypeFunc = (
77
+ localization: UI_I_Localization
78
+ ): UI_I_OptionItem[] => [
79
+ {
80
+ text: localization.inventoryMonitor.lineGraph,
81
+ value: 'line_graph',
82
+ },
83
+ {
84
+ text: localization.inventoryMonitor.stackedGraph,
85
+ value: 'stacked_graph',
86
+ },
87
+ ]
88
+
89
+ const getCorrectRuForm = (value: number, type: string): string => {
90
+ const forms: UI_I_ArbitraryObject<string[]> = {
91
+ hour: ['Час', 'Часа', 'Часов'],
92
+ day: ['День', 'Дня', 'Дней'],
93
+ week: ['Неделя', 'Недели', 'Недель'],
94
+ month: ['Месяц', 'Месяца', 'Месяцев'],
95
+ }
96
+
97
+ let text: string
98
+
99
+ if (!value) {
100
+ return getCorrectRuForm[type]
101
+ }
102
+
103
+ if (value % 10 === 1 && value % 100 !== 11) {
104
+ text = forms[type][0]
105
+ } else if (
106
+ [2, 3, 4].includes(value % 10) &&
107
+ ![12, 13, 14].includes(value % 100)
108
+ ) {
109
+ text = forms[type][1]
110
+ } else {
111
+ text = forms[type][2]
112
+ }
113
+ getCorrectRuForm[type] = text
114
+ return text
115
+ }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="chart-option-groups-container">
3
- <span>{{ localization.common.chartMetrics }}</span>
3
+ <span>{{ localization.inventoryMonitor.chartMetrics }}</span>
4
4
  <atoms-tabs-vertical-tabs
5
5
  v-model="selectedMetric"
6
6
  :items="props.metricsItems"
@@ -7,30 +7,30 @@ export const periodFunc = (
7
7
  ): UI_I_OptionItem[] => {
8
8
  const result = [
9
9
  {
10
- text: localization.common.realTime,
10
+ text: localization.inventoryMonitor.realTime,
11
11
  value: 'real_time',
12
12
  },
13
13
  {
14
- text: localization.common.lastDay,
14
+ text: localization.inventoryMonitor.lastDay,
15
15
  value: 'last_day',
16
16
  },
17
17
  {
18
- text: localization.common.lastWeek,
18
+ text: localization.inventoryMonitor.lastWeek,
19
19
  value: 'last_week',
20
20
  },
21
21
  {
22
- text: localization.common.lastMonth,
22
+ text: localization.inventoryMonitor.lastMonth,
23
23
  value: 'last_month',
24
24
  },
25
25
  // {
26
- // text: localization.common.lastYear,
26
+ // text: localization.inventoryMonitor.lastYear,
27
27
  // value: 'last_year',
28
28
  // },
29
29
  ]
30
30
 
31
31
  if (selectedTimespanType === 'custom_interval') {
32
32
  result.push({
33
- text: localization.common.customInterval,
33
+ text: localization.inventoryMonitor.customInterval,
34
34
  value: 'custom_interval',
35
35
  })
36
36
  }