bfg-common 1.5.435 → 1.5.436

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.
@@ -626,7 +626,7 @@ const isCompatibilityAlertWrapperEmpty = ref<boolean>(false)
626
626
  &.customize-hardware {
627
627
  height: inherit;
628
628
  max-height: 100%;
629
- padding-bottom: 16px;
629
+ //padding-bottom: 16px;
630
630
 
631
631
  :deep(.tabs-wrapper) {
632
632
  overflow-y: auto;
@@ -41,6 +41,7 @@
41
41
  </div>
42
42
 
43
43
  <common-vm-actions-common-customize-hardware-virtual-hardware-cpu-tooltip
44
+ v-model:selected-tooltip="selectedTooltip"
44
45
  :vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
45
46
  />
46
47
  </div>
@@ -112,6 +113,7 @@
112
113
  v-model:cpu-model="cpuModel"
113
114
  v-model:passthrough-host-cpu="passthroughHostCpu"
114
115
  v-model:host-model-cpu="hostModelCpu"
116
+ v-model:selected-tooltip="selectedTooltip"
115
117
  :cpu-models="props.cpuModels"
116
118
  :is-edit="props.isEdit"
117
119
  :error-validation-fields="props.errorValidationFields"
@@ -180,6 +182,8 @@ const emits = defineEmits<{
180
182
  }>()
181
183
 
182
184
  const localization = computed<UI_I_Localization>(() => useLocal())
185
+
186
+ const selectedTooltip = ref<string>('')
183
187
  </script>
184
188
 
185
189
  <style scoped lang="scss"></style>
@@ -16,6 +16,7 @@
16
16
  v-else
17
17
  v-model:passthrough-host-cpu="passthroughHostCpuLocal"
18
18
  v-model:host-model-cpu="hostModelCpuLocal"
19
+ v-model:selected-tooltip="selectedTooltip"
19
20
  :cpu-model="props.cpuModel"
20
21
  :cpu-model-options="cpuModelOptions"
21
22
  :disabled="props.disabled"
@@ -34,6 +35,8 @@ import type {
34
35
  import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
35
36
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
36
37
 
38
+ const selectedTooltip = defineModel<string>('selectedTooltip', { required: true })
39
+
37
40
  const props = defineProps<{
38
41
  cpuModel: string
39
42
  passthroughHostCpu: boolean
@@ -57,13 +57,13 @@
57
57
  height="24px"
58
58
  name="info-circle"
59
59
  class="cursor-pointer"
60
- @click.stop="isShowPassthroughHost = !isShowPassthroughHost"
60
+ @click.stop="selectedTooltip = selectedTooltip === 'passthroughHostCpu' ? '' : 'passthroughHostCpu'"
61
61
  />
62
62
  <Teleport to="body">
63
63
  <atoms-tooltip-signpost
64
- v-if="isShowPassthroughHost"
64
+ v-if="selectedTooltip === 'passthroughHostCpu'"
65
65
  elem-id="passthrough-help-icon"
66
- @hide="isShowPassthroughHost = false"
66
+ @hide="selectedTooltip = ''"
67
67
  >
68
68
  <h3 class="passthrough-help-title">
69
69
  {{ localization.mainNavigation.help }}
@@ -99,13 +99,13 @@
99
99
  name="info-circle"
100
100
  class="cursor-pointer"
101
101
  data-id="show-host-model-help-icon"
102
- @click.stop="isShowHostModel = !isShowHostModel"
102
+ @click.stop="selectedTooltip = selectedTooltip === 'hostModel' ? '' : 'hostModel'"
103
103
  />
104
104
  <Teleport to="body">
105
105
  <atoms-tooltip-signpost
106
- v-if="isShowHostModel"
106
+ v-if="selectedTooltip === 'hostModel'"
107
107
  elem-id="host-model-help-icon"
108
- @hide="isShowHostModel = false"
108
+ @hide="selectedTooltip = ''"
109
109
  >
110
110
  <h3 class="host-model-help-title">
111
111
  {{ localization.mainNavigation.help }}
@@ -135,6 +135,7 @@ import type {
135
135
  } from '~/lib/models/interfaces'
136
136
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
137
137
 
138
+ const selectedTooltip = defineModel<string>('selectedTooltip', { required: true })
138
139
  const passthroughHostCpu = defineModel<boolean>('passthroughHostCpu')
139
140
  const hostModelCpu = defineModel<boolean>('hostModelCpu')
140
141
 
@@ -153,8 +154,6 @@ const emits = defineEmits<{
153
154
 
154
155
  const localization = computed<UI_I_Localization>(() => useLocal())
155
156
 
156
- const isShowPassthroughHost = ref<boolean>(false)
157
- const isShowHostModel = ref<boolean>(false)
158
157
  </script>
159
158
 
160
159
  <style scoped lang="scss">
@@ -5,11 +5,15 @@
5
5
  />
6
6
  <common-vm-actions-common-customize-hardware-virtual-hardware-cpu-tooltip-old
7
7
  v-else
8
+ v-model:selected-tooltip="selectedTooltip"
8
9
  :description="props.vmCpuHelpTextSecond"
9
10
  />
10
11
  </template>
11
12
 
12
13
  <script lang="ts" setup>
14
+
15
+ const selectedTooltip = defineModel<string>('selectedTooltip', { required: true })
16
+
13
17
  const props = defineProps<{
14
18
  vmCpuHelpTextSecond: string
15
19
  }>()
@@ -6,13 +6,13 @@
6
6
  height="24px"
7
7
  name="info-circle"
8
8
  data-id="show-cpu-help-icon"
9
- @click.stop="isShowCpuHelp = !isShowCpuHelp"
9
+ @click.stop="selectedTooltip = selectedTooltip === 'cpu' ? '' : 'cpu'"
10
10
  />
11
11
  <Teleport to="body">
12
12
  <atoms-tooltip-signpost
13
- v-if="isShowCpuHelp"
13
+ v-if="selectedTooltip === 'cpu'"
14
14
  elem-id="cpu-help-icon"
15
- @hide="isShowCpuHelp = false"
15
+ @hide="selectedTooltip = ''"
16
16
  >
17
17
  <h3 class="cpu-help-title">
18
18
  {{ localization.mainNavigation.help }}
@@ -47,13 +47,13 @@
47
47
  <script lang="ts" setup>
48
48
  import type { UI_I_Localization } from '~/lib/models/interfaces'
49
49
 
50
+ const selectedTooltip = defineModel<string>('selectedTooltip', { required: true })
50
51
  const props = defineProps<{
51
52
  description: string
52
53
  }>()
53
54
 
54
55
  const localization = computed<UI_I_Localization>(() => useLocal())
55
56
 
56
- const isShowCpuHelp = ref<boolean>(false)
57
57
  </script>
58
58
 
59
59
  <style lang="scss" scoped></style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="select-compatibility pt-4">
2
+ <div class="select-compatibility py-4">
3
3
  <Teleport to="#compatibility-alert-wrapper">
4
4
  <ui-alert
5
5
  v-show="props.apiError.length"
@@ -13,7 +13,7 @@
13
13
  <h3 class="select-compatibility-description pb-4">
14
14
  {{ props.description }}
15
15
  </h3>
16
- <div class="version-select-wrap">
16
+ <div :class="['version-select-wrap', `elements-count-${versionsLocal.length}`]">
17
17
  <div
18
18
  v-for="item in versionsLocal"
19
19
  :key="item.value"
@@ -128,9 +128,13 @@ const versionsLocal = computed(() => {
128
128
 
129
129
  .version-select-wrap {
130
130
  display: grid;
131
- grid-template-columns: repeat(3, 32.3%);
131
+ grid-template-columns: repeat(2, 50%);
132
132
  gap: 12px;
133
133
 
134
+ &.elements-count-3 {
135
+ grid-template-columns: repeat(3, 32.3%);
136
+ }
137
+
134
138
  .version-select {
135
139
  background-color: var(--select-compatibility-bg-color);
136
140
  box-shadow: inset 0 0 0 1px var(--select-compatibility-border-color);
@@ -107,6 +107,8 @@ const localization = computed<UI_I_Localization>(() => useLocal())
107
107
  }
108
108
  }
109
109
  .content-signpost {
110
+ user-select: none;
111
+
110
112
  .icon-show-help {
111
113
  cursor: pointer;
112
114
  }
@@ -19,6 +19,7 @@
19
19
  :loading="props.isDatastoreLoading"
20
20
  :default-layout="false"
21
21
  :texts="tableTexts"
22
+ :skeleton="skeletonData"
22
23
  test-id="select-storage-data-table"
23
24
  server-off
24
25
  size="sm"
@@ -84,7 +85,10 @@
84
85
  </template>
85
86
 
86
87
  <script setup lang="ts">
87
- import type { UI_I_DataTableOptions } from 'bfg-uikit/components/ui/dataTable/models/interfaces'
88
+ import type {
89
+ UI_I_DataTableOptions,
90
+ UI_I_DataTableSkeleton,
91
+ } from 'bfg-uikit/components/ui/dataTable/models/interfaces'
88
92
  import type {
89
93
  UI_I_DataTable,
90
94
  UI_I_TableTexts,
@@ -169,6 +173,12 @@ const onSelectRow = (selectedData: UI_I_DataTable): void => {
169
173
 
170
174
  emits('change-storage', selectedItemIndex)
171
175
  }
176
+
177
+ const skeletonData = ref<UI_I_DataTableSkeleton>({
178
+ columnsCount: 5,
179
+ headColumns: [],
180
+ bodyColumns: [],
181
+ })
172
182
  </script>
173
183
 
174
184
  <style>
@@ -321,7 +321,7 @@ const isStorageAlertWrapperEmpty = ref<boolean>(false)
321
321
  &.customize-hardware {
322
322
  height: inherit;
323
323
  max-height: 100%;
324
- padding-bottom: 16px;
324
+ //padding-bottom: 16px;
325
325
 
326
326
  :deep(.tabs-wrapper) {
327
327
  overflow-y: auto;
@@ -48,6 +48,7 @@ const tabsLocal = computed<UI_I_CollapseNavItem[]>(() =>
48
48
  .host-accessibility {
49
49
  &__tab {
50
50
  padding: 16px 0;
51
+ overflow-x: auto;
51
52
  }
52
53
  }
53
54
  </style>
@@ -103,6 +103,12 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
103
103
  <style lang="scss" scoped>
104
104
  .host-accessibility-table {
105
105
  margin-bottom: 10px;
106
+ :deep(.column-manager-button.sm span) {
107
+ font-weight: 500;
108
+ }
109
+ :deep(.table-title .title-container h6) {
110
+ font-size: 12px;
111
+ }
106
112
  &__icon {
107
113
  margin-right: 4px;
108
114
  }
@@ -146,19 +146,14 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
146
146
  }
147
147
  </script>
148
148
 
149
- <style>
150
- :root {
151
- --select-storage-border-color: #e9ebed;
152
- --select-storage-bg-color: #ffffff;
153
- }
154
- :root.dark-theme {
155
- --select-storage-border-color: #e9ebed1f;
156
- --select-storage-bg-color: var(--wizard-right-bg);
157
- }
158
- </style>
159
-
160
149
  <style lang="scss" scoped>
161
150
  .device-table-container {
151
+ :deep(.column-manager-button.sm span) {
152
+ font-weight: 500;
153
+ }
154
+ :deep(.table-title .title-container h6) {
155
+ font-size: 12px;
156
+ }
162
157
  .device-table {
163
158
  &__icon {
164
159
  margin-right: 4px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.435",
4
+ "version": "1.5.436",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",