bfg-common 1.3.247 → 1.3.249

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 (29) hide show
  1. package/components/atoms/switch/Switch.vue +111 -111
  2. package/components/atoms/table/compact/Compact.vue +526 -526
  3. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -0
  4. package/components/atoms/table/dataGrid/lib/models/interfaces.ts +1 -0
  5. package/components/atoms/table/dataGrid/lib/utils/constructDataTable.ts +3 -1
  6. package/components/common/monitor/advanced/table/lib/config/performanceDatatable.ts +15 -2
  7. package/components/common/vm/actions/clone/Clone.vue +518 -518
  8. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +269 -269
  9. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +693 -693
  10. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +59 -59
  11. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +165 -165
  12. package/components/common/vm/actions/common/select/storage/lib/config/config.ts +166 -166
  13. package/components/common/vm/actions/editSettings/EditSettings.vue +313 -313
  14. package/components/common/weekSelect/lib/config/options.ts +10 -10
  15. package/components/common/wizards/network/add/Add.vue +0 -1
  16. package/composables/useAppVersion.ts +21 -21
  17. package/composables/useEnvLanguage.ts +20 -20
  18. package/lib/utils/sendTask.ts +72 -72
  19. package/minify.js +146 -146
  20. package/package.json +1 -1
  21. package/public/spice-console/application/codec.js +257 -257
  22. package/public/spice-console/lib/rasterEngine.js +907 -907
  23. package/public/spice-console/network/spicechannel.js +369 -369
  24. package/store/main/lib/interfaces.ts +9 -9
  25. package/store/tasks/actions.ts +133 -133
  26. package/store/tasks/getters.ts +25 -25
  27. package/store/tasks/lib/models/interfaces.ts +18 -18
  28. package/store/tasks/mutations.ts +58 -58
  29. package/store/tasks/state.ts +16 -16
@@ -28,6 +28,7 @@
28
28
  <input
29
29
  :id="`${props.testId}-${item.id}`"
30
30
  v-model="item.show"
31
+ :data-id="item.testId"
31
32
  :disabled="isLast && item.show"
32
33
  type="checkbox"
33
34
  @change="change($event, key)"
@@ -43,6 +44,7 @@
43
44
  <div class="switch-footer">
44
45
  <button
45
46
  :id="`${props.testId}-select-all-button`"
47
+ :data-id="`${props.testId}-select-all-button`"
46
48
  class="btn btn-sm btn-link switch-button export-link"
47
49
  @click="selectAll"
48
50
  >
@@ -32,4 +32,5 @@ export interface UI_I_ColumnKey {
32
32
  text: string
33
33
  show: boolean
34
34
  id?: number
35
+ testId?: string
35
36
  }
@@ -6,11 +6,13 @@ import {
6
6
  export const constructColumnKey = (
7
7
  key: string,
8
8
  text: string,
9
- show: boolean
9
+ show: boolean,
10
+ testId?: string
10
11
  ): UI_I_ColumnKey => ({
11
12
  key,
12
13
  text,
13
14
  show,
15
+ testId,
14
16
  })
15
17
 
16
18
  export const constructHeadItem = (
@@ -40,7 +40,9 @@ const getItems = (
40
40
  ]
41
41
  }
42
42
 
43
- export const columnKeys = (localization: UI_I_Localization): UI_I_ColumnKey[] => {
43
+ export const columnKeys = (
44
+ localization: UI_I_Localization
45
+ ): UI_I_ColumnKey[] => {
44
46
  const result: UI_I_ColumnKey[] = []
45
47
  getItems(localization).forEach((item, i) => {
46
48
  const col = `col${i + 1}`
@@ -54,7 +56,9 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
54
56
  const result: UI_I_HeadItem[] = []
55
57
  getItems(localization).forEach((item, i) => {
56
58
  const col = `col${i + 1}`
57
- result.push(constructHeadItem(col, item[0], item[3], false, item[2]))
59
+ result.push(
60
+ constructHeadItem(col, item[0], item[3], false, item[2], '', item[3])
61
+ )
58
62
  })
59
63
  return result
60
64
  }
@@ -69,46 +73,55 @@ export const bodyItems = (data: UI_I_PerformanceItem[]): UI_I_BodyItem[][] => {
69
73
  text: '',
70
74
  data: { color: performance[performanceTableKey[0]] },
71
75
  id: key,
76
+ testId: `advanced-item-${performanceTableKey[0]}-${key}`,
72
77
  },
73
78
  {
74
79
  key: 'col2',
75
80
  text: performance[performanceTableKey[1]],
76
81
  id: key,
82
+ testId: `advanced-item-${performanceTableKey[1]}-${key}`,
77
83
  },
78
84
  {
79
85
  key: 'col3',
80
86
  text: performance[performanceTableKey[2]],
81
87
  id: key,
88
+ testId: `advanced-item-${performanceTableKey[2]}-${key}`,
82
89
  },
83
90
  {
84
91
  key: 'col4',
85
92
  text: performance[performanceTableKey[3]],
86
93
  id: key,
94
+ testId: `advanced-item-${performanceTableKey[3]}-${key}`,
87
95
  },
88
96
  {
89
97
  key: 'col5',
90
98
  text: performance[performanceTableKey[4]],
91
99
  id: key,
100
+ testId: `advanced-item-${performanceTableKey[4]}-${key}`,
92
101
  },
93
102
  {
94
103
  key: 'col6',
95
104
  text: performance[performanceTableKey[5]],
96
105
  id: key,
106
+ testId: `advanced-item-${performanceTableKey[5]}-${key}`,
97
107
  },
98
108
  {
99
109
  key: 'col7',
100
110
  text: performance[performanceTableKey[6]],
101
111
  id: key,
112
+ testId: `advanced-item-${performanceTableKey[6]}-${key}`,
102
113
  },
103
114
  {
104
115
  key: 'col8',
105
116
  text: performance[performanceTableKey[7]],
106
117
  id: key,
118
+ testId: `advanced-item-${performanceTableKey[7]}-${key}`,
107
119
  },
108
120
  {
109
121
  key: 'col9',
110
122
  text: performance[performanceTableKey[8]],
111
123
  id: key,
124
+ testId: `advanced-item-${performanceTableKey[8]}-${key}`,
112
125
  },
113
126
  ])
114
127
  })