bfg-common 1.5.248 → 1.5.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.
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +1 -7
- package/assets/localization/local_en.json +1 -7
- package/assets/localization/local_hy.json +1 -7
- package/assets/localization/local_kk.json +1 -7
- package/assets/localization/local_ru.json +1 -7
- package/assets/localization/local_zh.json +1 -7
- package/assets/scss/common/theme.scss +0 -16
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/table/info/lib/models/interfaces.ts +10 -10
- package/components/common/backup/storage/actions/add/New.vue +9 -4
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +18 -9
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeModeNew.vue +12 -3
- package/components/common/layout/theHeader/feedback/new/additionalDetails/Headline.vue +8 -67
- package/components/common/layout/theHeader/feedback/new/subtitle/Subtitle.vue +8 -72
- package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesOld.vue +9 -1
- package/components/common/pages/tasks/table/Table.vue +15 -7
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +15 -9
- package/components/common/tooltip/Help.vue +132 -0
- package/components/common/tooltip/lib/models/types.ts +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +10 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +52 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +32 -151
- package/components/common/vm/actions/common/select/name/New.vue +10 -70
- package/components/common/wizards/datastore/add/New.vue +8 -3
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +20 -6
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +9 -3
- package/components/common/wizards/datastore/add/steps/typeMode/TypeModeNew.vue +8 -3
- package/package.json +1 -1
- package/components/common/backup/storage/actions/add/steps/common/tooltipInfo/TooltipInfo.vue +0 -94
- package/components/common/pages/tasks/table/errorInfo/ErrorInfo.vue +0 -128
- package/components/common/wizards/datastore/add/steps/common/tooltipInfo/TooltipInfo.vue +0 -93
|
@@ -3,42 +3,15 @@
|
|
|
3
3
|
<span class="headline__label">
|
|
4
4
|
{{ localization.common.additionalDetails }}
|
|
5
5
|
</span>
|
|
6
|
-
<ui-icon
|
|
7
|
-
id="feedback-additional-details-info-icon"
|
|
8
|
-
:class="['headline__icon pointer', isShowInfo && 'active']"
|
|
9
|
-
name="info"
|
|
10
|
-
width="16"
|
|
11
|
-
height="16"
|
|
12
|
-
@click="isShowInfo = !isShowInfo"
|
|
13
|
-
/>
|
|
14
|
-
<ui-popup-window
|
|
15
|
-
v-model="isShowInfo"
|
|
16
|
-
:elem-id="'feedback-additional-details-info-icon'"
|
|
17
|
-
width="288px"
|
|
18
|
-
is-priority-right-position
|
|
19
|
-
>
|
|
20
|
-
<div class="common-widget-info">
|
|
21
|
-
<div class="flex justify-between">
|
|
22
|
-
<div class="flex">
|
|
23
|
-
<ui-icon-icon3 name="info-2" width="16px" height="16px" />
|
|
24
|
-
<span class="title">
|
|
25
|
-
{{ localization.feedback.additionalDetailsHelp }}
|
|
26
|
-
</span>
|
|
27
|
-
</div>
|
|
28
|
-
<ui-icon
|
|
29
|
-
name="close"
|
|
30
|
-
class="pointer hide-icon"
|
|
31
|
-
width="16px"
|
|
32
|
-
height="16px"
|
|
33
|
-
@click="isShowInfo = false"
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
6
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
7
|
+
<common-tooltip-help
|
|
8
|
+
test-id="feedback-additional-details-help"
|
|
9
|
+
help-id="feedback-additional-details-info-icon"
|
|
10
|
+
dropdown-width="288px"
|
|
11
|
+
:title="localization.feedback.additionalDetailsHelp"
|
|
12
|
+
:help-text="localization.feedback.additionalDetailsTooltip"
|
|
13
|
+
dropdown-left
|
|
14
|
+
/>
|
|
42
15
|
</div>
|
|
43
16
|
</template>
|
|
44
17
|
|
|
@@ -47,7 +20,6 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
47
20
|
|
|
48
21
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
49
22
|
|
|
50
|
-
const isShowInfo = ref<boolean>(false)
|
|
51
23
|
</script>
|
|
52
24
|
|
|
53
25
|
<style lang="scss" scoped>
|
|
@@ -56,15 +28,6 @@ const isShowInfo = ref<boolean>(false)
|
|
|
56
28
|
@include flex($align: center);
|
|
57
29
|
margin: 32px 0 16px;
|
|
58
30
|
|
|
59
|
-
&__icon {
|
|
60
|
-
color: var(--feedback-tooltip-trigger-color);
|
|
61
|
-
&:hover {
|
|
62
|
-
color: var(--feedback-tooltip-hover-trigger-color);
|
|
63
|
-
}
|
|
64
|
-
&.active {
|
|
65
|
-
color: var(--feedback-tooltip-acctive-trigger-color);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
31
|
&__label {
|
|
69
32
|
line-height: 19.36px;
|
|
70
33
|
font-size: 16px;
|
|
@@ -72,27 +35,5 @@ const isShowInfo = ref<boolean>(false)
|
|
|
72
35
|
color: var(--feedback-text-color);
|
|
73
36
|
margin-right: 8px;
|
|
74
37
|
}
|
|
75
|
-
.common-widget-info {
|
|
76
|
-
padding: 16px;
|
|
77
|
-
.title {
|
|
78
|
-
font-size: 14px;
|
|
79
|
-
font-weight: 500;
|
|
80
|
-
line-height: 16.94px;
|
|
81
|
-
color: var(--feedback-text-color);
|
|
82
|
-
margin-left: 8px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.common-widget-info-description {
|
|
86
|
-
font-size: 13px;
|
|
87
|
-
line-height: 15.73px;
|
|
88
|
-
color: var(--feedback-text-color);
|
|
89
|
-
margin-top: 12px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
svg {
|
|
93
|
-
color: var(--feedback-tooltip-close-color);
|
|
94
|
-
min-width: 16px;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
38
|
}
|
|
98
39
|
</style>
|
|
@@ -3,41 +3,15 @@
|
|
|
3
3
|
<span class="subtitle__label">
|
|
4
4
|
{{ localization.common.helpUsImprove }}
|
|
5
5
|
</span>
|
|
6
|
-
<ui-icon
|
|
7
|
-
id="feedback-description-info-icon"
|
|
8
|
-
name="info"
|
|
9
|
-
width="16"
|
|
10
|
-
height="16"
|
|
11
|
-
:class="['subtitle__icon pointer', isShowInfo && 'active']"
|
|
12
|
-
@click="isShowInfo = !isShowInfo"
|
|
13
|
-
/>
|
|
14
|
-
<ui-popup-window
|
|
15
|
-
v-model="isShowInfo"
|
|
16
|
-
:elem-id="'feedback-description-info-icon'"
|
|
17
|
-
width="320px"
|
|
18
|
-
class="subtitle__tooltip"
|
|
19
|
-
is-priority-right-position
|
|
20
|
-
>
|
|
21
|
-
<div class="common-widget-info">
|
|
22
|
-
<div class="headline justify-between flex-align-start">
|
|
23
|
-
<div class="flex-align-start">
|
|
24
|
-
<ui-icon name="info-2" width="16px" height="16px" />
|
|
25
|
-
<span class="title">{{ localization.common.feedbackHelp }}</span>
|
|
26
|
-
</div>
|
|
27
|
-
<ui-icon
|
|
28
|
-
name="close"
|
|
29
|
-
class="pointer hide-icon"
|
|
30
|
-
width="16px"
|
|
31
|
-
height="16px"
|
|
32
|
-
@click="isShowInfo = false"
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
6
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
7
|
+
<common-tooltip-help
|
|
8
|
+
test-id="feedback-description-help"
|
|
9
|
+
help-id="feedback-description-info-icon"
|
|
10
|
+
dropdown-width="320px"
|
|
11
|
+
:title="localization.common.feedbackHelp"
|
|
12
|
+
:help-text="localization.common.anyFeedbackYouProvideMay"
|
|
13
|
+
dropdown-left
|
|
14
|
+
/>
|
|
41
15
|
</div>
|
|
42
16
|
</template>
|
|
43
17
|
|
|
@@ -46,7 +20,6 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
46
20
|
|
|
47
21
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
48
22
|
|
|
49
|
-
const isShowInfo = ref<boolean>(false)
|
|
50
23
|
</script>
|
|
51
24
|
|
|
52
25
|
<style lang="scss" scoped>
|
|
@@ -56,48 +29,11 @@ const isShowInfo = ref<boolean>(false)
|
|
|
56
29
|
border-bottom: 1px solid var(--horizontal-line);
|
|
57
30
|
padding: 24px 0 12px;
|
|
58
31
|
|
|
59
|
-
&__icon {
|
|
60
|
-
color: var(--feedback-tooltip-trigger-color);
|
|
61
|
-
&:hover {
|
|
62
|
-
color: var(--feedback-tooltip-hover-trigger-color);
|
|
63
|
-
}
|
|
64
|
-
&.active {
|
|
65
|
-
color: var(--feedback-tooltip-acctive-trigger-color);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
&__tooltip {
|
|
69
|
-
.flex-align-center {
|
|
70
|
-
height: 16px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
32
|
&__label {
|
|
75
33
|
font-size: 12px;
|
|
76
34
|
font-weight: 400;
|
|
77
35
|
line-height: 14.52px;
|
|
78
36
|
color: #9da6ad;
|
|
79
37
|
}
|
|
80
|
-
.common-widget-info {
|
|
81
|
-
padding: 16px;
|
|
82
|
-
.title {
|
|
83
|
-
font-size: 14px;
|
|
84
|
-
font-weight: 500;
|
|
85
|
-
line-height: 16.94px;
|
|
86
|
-
color: var(--feedback-text-color);
|
|
87
|
-
margin-left: 8px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.common-widget-info-description {
|
|
91
|
-
font-size: 13px;
|
|
92
|
-
line-height: 15.73px;
|
|
93
|
-
color: var(--feedback-text-color);
|
|
94
|
-
margin-top: 12px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
svg {
|
|
98
|
-
flex: none;
|
|
99
|
-
color: var(--feedback-tooltip-close-color);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
38
|
}
|
|
103
39
|
</style>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
test-id="user-preferences-modal"
|
|
5
5
|
width="580px"
|
|
6
6
|
height="345px"
|
|
7
|
+
:modal-loading="isLoading"
|
|
7
8
|
:title="localization.common.preferences"
|
|
8
9
|
@hide="onHide"
|
|
9
10
|
>
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
id="user-preferences-apply-button"
|
|
66
67
|
data-id="user-preferences-apply-button"
|
|
67
68
|
class="btn btn-primary"
|
|
68
|
-
@click="
|
|
69
|
+
@click="onSubmit"
|
|
69
70
|
>
|
|
70
71
|
{{ localization.common.save }}
|
|
71
72
|
</button>
|
|
@@ -105,6 +106,8 @@ const emits = defineEmits<{
|
|
|
105
106
|
|
|
106
107
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
107
108
|
|
|
109
|
+
const isLoading = ref<boolean>(false)
|
|
110
|
+
|
|
108
111
|
const isSphere = ref<boolean>(props.project === 'sphere')
|
|
109
112
|
const selectedTab = ref<UI_T_UserPreferenceTab>('time-tab')
|
|
110
113
|
|
|
@@ -112,6 +115,11 @@ const tabsItems = computed<UI_I_CollapseNavItem[]>(() =>
|
|
|
112
115
|
preferencesTabs(localization.value, props.project)
|
|
113
116
|
)
|
|
114
117
|
|
|
118
|
+
const onSubmit = (): void => {
|
|
119
|
+
isLoading.value = true
|
|
120
|
+
emits('submit')
|
|
121
|
+
}
|
|
122
|
+
|
|
115
123
|
const onHide = (): void => {
|
|
116
124
|
emits('hide')
|
|
117
125
|
|
|
@@ -38,13 +38,18 @@
|
|
|
38
38
|
{{ item.text }}
|
|
39
39
|
</ui-chip>
|
|
40
40
|
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
<div v-if="item.data.error" class="task-table__tooltip">
|
|
42
|
+
<common-tooltip-help
|
|
43
|
+
:test-id="item.data.testId"
|
|
44
|
+
:help-id="item.data.testId + 'icon'"
|
|
45
|
+
:title="localization.common.failureReason"
|
|
46
|
+
:help-text="item.data.error"
|
|
47
|
+
status="error"
|
|
48
|
+
dropdown-width="232px"
|
|
49
|
+
dropdown-left
|
|
50
|
+
dropdown-top
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
48
53
|
</template>
|
|
49
54
|
|
|
50
55
|
<template #default-actions="{ item }">
|
|
@@ -331,6 +336,9 @@ const onSelectNodeOfTree = (
|
|
|
331
336
|
margin-left: 8px;
|
|
332
337
|
}
|
|
333
338
|
}
|
|
339
|
+
&__tooltip {
|
|
340
|
+
margin-left: 8px;
|
|
341
|
+
}
|
|
334
342
|
}
|
|
335
343
|
|
|
336
344
|
.skeleton-header {
|
|
@@ -30,15 +30,18 @@
|
|
|
30
30
|
{{ normalizedTaskDetails[2].text }}
|
|
31
31
|
</ui-chip>
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
<div v-if="normalizedTaskDetails[2].data.error" class="expand-details__tooltip">
|
|
34
|
+
<common-tooltip-help
|
|
35
|
+
:test-id="normalizedTaskDetails[2].data.testId"
|
|
36
|
+
:help-id="`${normalizedTaskDetails[2].data.testId}-expand-icon`"
|
|
37
|
+
:title="localization.common.failureReason"
|
|
38
|
+
:help-text="normalizedTaskDetails[2].data.error"
|
|
39
|
+
status="error"
|
|
40
|
+
dropdown-width="232px"
|
|
41
|
+
dropdown-left
|
|
42
|
+
dropdown-top
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
42
45
|
</span>
|
|
43
46
|
</div>
|
|
44
47
|
|
|
@@ -182,5 +185,8 @@ const onSelectNodeOfTree = (data: any): void => {
|
|
|
182
185
|
width: max-content;
|
|
183
186
|
}
|
|
184
187
|
}
|
|
188
|
+
&__tooltip {
|
|
189
|
+
margin-left: 6px;
|
|
190
|
+
}
|
|
185
191
|
}
|
|
186
192
|
</style>
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-align-center relative">
|
|
3
|
+
<ui-icon
|
|
4
|
+
:id="`${props.helpId}`"
|
|
5
|
+
:data-id="`${props.testId}-show-help-icon`"
|
|
6
|
+
name="info"
|
|
7
|
+
:width="props.iconWidth || '16'"
|
|
8
|
+
:height="props.iconHeight || '16'"
|
|
9
|
+
:class="['help-icon cursor-pointer', {active: isShowHelp}, {disabled: props.isDisabled}]"
|
|
10
|
+
@click.stop="isShowHelp = !isShowHelp"
|
|
11
|
+
/>
|
|
12
|
+
<ui-popup-window
|
|
13
|
+
v-model="isShowHelp"
|
|
14
|
+
:left="props.dropdownLeft"
|
|
15
|
+
:right="props.dropdownRight"
|
|
16
|
+
:top="props.dropdownTop"
|
|
17
|
+
:elem-id="props.helpId"
|
|
18
|
+
:width="props.dropdownWidth || 'max-content'"
|
|
19
|
+
:max-height="props.dropdownMaxHeight || 'unset'"
|
|
20
|
+
|
|
21
|
+
>
|
|
22
|
+
<div class="help-content" :style="{ width: props.dropdownWidth }">
|
|
23
|
+
<div class="headline">
|
|
24
|
+
<ui-icon :name="tooltipStatus" width="16" height="16" />
|
|
25
|
+
<h3 class="help-title">
|
|
26
|
+
{{ props.title || localization.mainNavigation.help }}
|
|
27
|
+
</h3>
|
|
28
|
+
<ui-icon
|
|
29
|
+
name="close"
|
|
30
|
+
width="16"
|
|
31
|
+
height="16"
|
|
32
|
+
class="help-close-icon cursor-pointer"
|
|
33
|
+
@click.stop="isShowHelp = false"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<slot />
|
|
38
|
+
|
|
39
|
+
<p v-if="props.helpText" class="help-text">
|
|
40
|
+
{{ props.helpText }}
|
|
41
|
+
</p>
|
|
42
|
+
</div>
|
|
43
|
+
</ui-popup-window>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
<script setup lang="ts">
|
|
47
|
+
|
|
48
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
49
|
+
import { T_TooltipHelpStatus } from '~/components/common/tooltip/lib/models/types'
|
|
50
|
+
|
|
51
|
+
const props = defineProps<{
|
|
52
|
+
testId: string,
|
|
53
|
+
helpId: string,
|
|
54
|
+
dropdownWidth?: string
|
|
55
|
+
helpText?: string,
|
|
56
|
+
iconWidth?: string,
|
|
57
|
+
iconHeight?: string,
|
|
58
|
+
dropdownMaxHeight?: string,
|
|
59
|
+
dropdownLeft?: boolean,
|
|
60
|
+
dropdownRight?: boolean,
|
|
61
|
+
dropdownTop?: boolean,
|
|
62
|
+
isDisabled?: boolean,
|
|
63
|
+
title?: string,
|
|
64
|
+
status?: T_TooltipHelpStatus
|
|
65
|
+
}>()
|
|
66
|
+
|
|
67
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
68
|
+
|
|
69
|
+
const isShowHelp = ref<boolean>(false)
|
|
70
|
+
|
|
71
|
+
const tooltipStatus = computed<string>(() => props.status === 'error' ? 'error' : 'info-2')
|
|
72
|
+
|
|
73
|
+
</script>
|
|
74
|
+
<style>
|
|
75
|
+
:root {
|
|
76
|
+
--help-color: #4d5d69;
|
|
77
|
+
--help-icon-hover-color: #4d5d69;
|
|
78
|
+
--help-icon-active-color: #008fd6;
|
|
79
|
+
--help-close-icon-color: #182531;
|
|
80
|
+
}
|
|
81
|
+
:root.dark-theme {
|
|
82
|
+
--help-color: #e9eaec;
|
|
83
|
+
--help-icon-hover-color: #e9eaec;
|
|
84
|
+
--help-icon-active-color: #2ba2de;
|
|
85
|
+
--help-close-icon-color: #e9eaec;
|
|
86
|
+
}
|
|
87
|
+
</style>
|
|
88
|
+
<style scoped lang="scss">
|
|
89
|
+
.help-icon {
|
|
90
|
+
color: #9da6ad; // for light and dark
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
color: var(--help-icon-hover-color);
|
|
94
|
+
}
|
|
95
|
+
&.active {
|
|
96
|
+
color: var(--help-icon-active-color);
|
|
97
|
+
}
|
|
98
|
+
&.disabled {
|
|
99
|
+
color: #bdc3c7;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.help-content {
|
|
104
|
+
padding: 16px;
|
|
105
|
+
|
|
106
|
+
.headline {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 8px;
|
|
110
|
+
margin-bottom: 12px;
|
|
111
|
+
|
|
112
|
+
.help-title {
|
|
113
|
+
flex: 1;
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
font-weight: 500;
|
|
116
|
+
line-height: 16.94px;
|
|
117
|
+
color: var(--help-color);
|
|
118
|
+
}
|
|
119
|
+
.help-close-icon {
|
|
120
|
+
color: var(--help-close-icon-color)
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:deep(.help-text) {
|
|
125
|
+
font-size: 13px;
|
|
126
|
+
line-height: 15.73px;
|
|
127
|
+
color: var(--help-color);
|
|
128
|
+
word-break: break-word;
|
|
129
|
+
white-space: normal;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type T_TooltipHelpStatus = 'info' | 'error'
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue
CHANGED
|
@@ -17,52 +17,16 @@
|
|
|
17
17
|
size="sm"
|
|
18
18
|
/>
|
|
19
19
|
|
|
20
|
-
<div
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
name="info"
|
|
30
|
-
:class="['bus-help-icon cursor-pointer', {active: isShowHelp}]"
|
|
31
|
-
@click.stop="isShowHelp = !isShowHelp"
|
|
20
|
+
<div v-if="props.helpText">
|
|
21
|
+
<common-tooltip-help
|
|
22
|
+
:test-id="`${props.testId}`"
|
|
23
|
+
:help-id="`${props.helpId}`"
|
|
24
|
+
:help-text="props.helpText"
|
|
25
|
+
:dropdown-left="true"
|
|
26
|
+
dropdown-width="480px"
|
|
27
|
+
icon-width="20"
|
|
28
|
+
icon-height="20"
|
|
32
29
|
/>
|
|
33
|
-
<Teleport to="body">
|
|
34
|
-
<ui-dropdown
|
|
35
|
-
:show="isShowHelp"
|
|
36
|
-
:elem-id="props.helpId"
|
|
37
|
-
:items="[]"
|
|
38
|
-
test-id=""
|
|
39
|
-
width="480px"
|
|
40
|
-
left
|
|
41
|
-
@hide="isShowHelp = false"
|
|
42
|
-
>
|
|
43
|
-
<template #content>
|
|
44
|
-
<div class="help-content">
|
|
45
|
-
<div class="headline">
|
|
46
|
-
<ui-icon name="info-2" width="16" height="16" />
|
|
47
|
-
<h3 class="help-title">
|
|
48
|
-
{{ localization.mainNavigation.help }}
|
|
49
|
-
</h3>
|
|
50
|
-
<ui-icon
|
|
51
|
-
name="close"
|
|
52
|
-
width="16"
|
|
53
|
-
height="16"
|
|
54
|
-
class="bus-help-close-icon cursor-pointer"
|
|
55
|
-
@click="isShowHelp = false"
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
<p class="help-text">
|
|
60
|
-
{{ props.helpText }}
|
|
61
|
-
</p>
|
|
62
|
-
</div>
|
|
63
|
-
</template>
|
|
64
|
-
</ui-dropdown>
|
|
65
|
-
</Teleport>
|
|
66
30
|
</div>
|
|
67
31
|
</div>
|
|
68
32
|
</template>
|
|
@@ -74,7 +38,6 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
74
38
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
75
39
|
|
|
76
40
|
const bus = defineModel<string>('bus')
|
|
77
|
-
const isShowHelp = defineModel<boolean>('isShowHelp')
|
|
78
41
|
|
|
79
42
|
const props = defineProps<{
|
|
80
43
|
index: number
|
|
@@ -93,56 +56,4 @@ const props = defineProps<{
|
|
|
93
56
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
94
57
|
</script>
|
|
95
58
|
|
|
96
|
-
<style>
|
|
97
|
-
:root {
|
|
98
|
-
--bus-help-color: #4d5d69;
|
|
99
|
-
--bus-help-icon-hover-color: #4d5d69;
|
|
100
|
-
--bus-help-icon-active-color: #008fd6;
|
|
101
|
-
--bus-help-close-icon-color: #182531;
|
|
102
|
-
}
|
|
103
|
-
:root.dark-theme {
|
|
104
|
-
--bus-help-color: #e9eaec;
|
|
105
|
-
--bus-help-icon-hover-color: #e9eaec;
|
|
106
|
-
--bus-help-icon-active-color: #2ba2de;
|
|
107
|
-
--bus-help-close-icon-color: #e9eaec;
|
|
108
|
-
}
|
|
109
|
-
</style>
|
|
110
|
-
<style lang="scss" scoped>
|
|
111
|
-
.bus-help-icon {
|
|
112
|
-
color: #9da6ad; // for light and dark
|
|
113
|
-
|
|
114
|
-
&:hover {
|
|
115
|
-
color: var(--bus-help-icon-hover-color);
|
|
116
|
-
}
|
|
117
|
-
&.active {
|
|
118
|
-
color: var(--bus-help-icon-active-color);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
.help-content {
|
|
122
|
-
padding: 16px;
|
|
123
|
-
|
|
124
|
-
.headline {
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 8px;
|
|
128
|
-
margin-bottom: 12px;
|
|
129
|
-
|
|
130
|
-
.help-title {
|
|
131
|
-
flex: 1;
|
|
132
|
-
font-size: 14px;
|
|
133
|
-
font-weight: 500;
|
|
134
|
-
line-height: 16.94px;
|
|
135
|
-
color: var(--bus-help-color);
|
|
136
|
-
}
|
|
137
|
-
.bus-help-close-icon {
|
|
138
|
-
color: var(--bus-help-close-icon-color)
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.help-text {
|
|
143
|
-
font-size: 13px;
|
|
144
|
-
line-height: 15.73px;
|
|
145
|
-
color: var(--bus-help-color);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
</style>
|
|
59
|
+
<style lang="scss" scoped></style>
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue
CHANGED
|
@@ -34,9 +34,38 @@
|
|
|
34
34
|
width="auto"
|
|
35
35
|
/>
|
|
36
36
|
|
|
37
|
-
<common-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
<common-tooltip-help
|
|
38
|
+
test-id="cpu-help-tooltip"
|
|
39
|
+
help-id="cpu-help-tooltip-icon"
|
|
40
|
+
icon-width="20"
|
|
41
|
+
icon-height="20"
|
|
42
|
+
:title="localization.common.cpu"
|
|
43
|
+
:dropdown-left="true"
|
|
44
|
+
dropdown-width="480px"
|
|
45
|
+
>
|
|
46
|
+
<div class="cpu-info-block">
|
|
47
|
+
<p class="help-text">
|
|
48
|
+
{{ localization.common.vmCpuHelpText1 }}
|
|
49
|
+
</p>
|
|
50
|
+
<p class="help-text">
|
|
51
|
+
{{ props.vmCpuHelpTextSecond }}
|
|
52
|
+
</p>
|
|
53
|
+
<p class="help-text">
|
|
54
|
+
{{ localization.common.vmCpuHelpText3 }}
|
|
55
|
+
</p>
|
|
56
|
+
<p class="help-text">
|
|
57
|
+
{{ localization.common.vmCpuHelpText4 }}
|
|
58
|
+
</p>
|
|
59
|
+
<div>
|
|
60
|
+
<a
|
|
61
|
+
id="cpu-more-info-link"
|
|
62
|
+
href="javascript:void(0)"
|
|
63
|
+
class="cpu-more-info"
|
|
64
|
+
>{{ localization.common.moreInformation }}</a
|
|
65
|
+
>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</common-tooltip-help>
|
|
40
69
|
</div>
|
|
41
70
|
</template>
|
|
42
71
|
<template #stackChildren>
|
|
@@ -173,6 +202,14 @@ const emits = defineEmits<{
|
|
|
173
202
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
174
203
|
</script>
|
|
175
204
|
|
|
205
|
+
<style>
|
|
206
|
+
:root {
|
|
207
|
+
--cpu-help-more-info-color: #008fd6;
|
|
208
|
+
}
|
|
209
|
+
:root.dark-theme {
|
|
210
|
+
--cpu-help-more-info-color: #2ba2de;
|
|
211
|
+
}
|
|
212
|
+
</style>
|
|
176
213
|
<style scoped lang="scss">
|
|
177
214
|
:deep(.ui-main-select-toggle) {
|
|
178
215
|
display: flex;
|
|
@@ -191,4 +228,16 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
191
228
|
:deep(.unit .ui-main-select-toggle) {
|
|
192
229
|
width: 80px;
|
|
193
230
|
}
|
|
231
|
+
.cpu-info-block {
|
|
232
|
+
:deep(.help-text) {
|
|
233
|
+
margin-bottom: 12px;
|
|
234
|
+
}
|
|
235
|
+
:deep(.cpu-more-info) {
|
|
236
|
+
font-size: 13px;
|
|
237
|
+
font-weight: 500;
|
|
238
|
+
line-height: 15.73px;
|
|
239
|
+
color: var(--cpu-help-more-info-color);
|
|
240
|
+
text-decoration: none;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
194
243
|
</style>
|