bfg-common 1.4.325 → 1.4.327
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/components/common/layout/theHeader/feedback/Feedback.vue +0 -2
- package/components/common/layout/theHeader/feedback/FeedbackNew.vue +80 -40
- package/components/common/layout/theHeader/helpMenu/About.vue +91 -23
- package/components/common/layout/theHeader/helpMenu/HelpMenu.vue +1 -1
- package/package.json +1 -1
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +0 -114
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +0 -110
|
@@ -1,27 +1,90 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
<ui-modal
|
|
3
|
+
show
|
|
4
|
+
width="560px"
|
|
5
|
+
test-id="feedback-modal"
|
|
6
|
+
:title="localization.common.sendFeedback"
|
|
7
|
+
:texts="texts"
|
|
8
|
+
class="feedback"
|
|
9
|
+
@submit="onSubmit"
|
|
10
|
+
@hide="onHideModal"
|
|
11
|
+
>
|
|
12
|
+
<template #content>
|
|
13
|
+
<ui-modal-block-standard>
|
|
14
|
+
<div class="description">
|
|
15
|
+
<span class="description-label text-ellipsis">
|
|
16
|
+
{{ localization.common.helpUsImprove }}
|
|
17
|
+
</span>
|
|
18
|
+
<ui-icon
|
|
19
|
+
id="feedback-description-info-icon"
|
|
20
|
+
name="info"
|
|
21
|
+
width="18"
|
|
22
|
+
height="18"
|
|
23
|
+
:color="isShowInfo ? '#008FD6' : '#9DA6AD'"
|
|
24
|
+
class="info-icon pointer"
|
|
25
|
+
@click="isShowInfo = !isShowInfo"
|
|
26
|
+
/>
|
|
27
|
+
<ui-popup-window
|
|
28
|
+
v-model="isShowInfo"
|
|
29
|
+
width="232px"
|
|
30
|
+
:elem-id="'feedback-description-info-icon'"
|
|
31
|
+
>
|
|
32
|
+
<div class="common-widget-info">
|
|
33
|
+
<div class="headline justify-between flex-align-center">
|
|
34
|
+
<div class="flex-align-center">
|
|
35
|
+
<ui-icon-icon3 name="info-2" width="16px" height="16px" />
|
|
36
|
+
<span class="title">{{ title }}</span>
|
|
37
|
+
</div>
|
|
38
|
+
<ui-icon
|
|
39
|
+
name="close"
|
|
40
|
+
class="pointer hide-icon"
|
|
41
|
+
width="16px"
|
|
42
|
+
height="16px"
|
|
43
|
+
@click="isShowInfo = false"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div class="common-widget-info-description">
|
|
48
|
+
{{ infoDescription }}
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</ui-popup-window>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</ui-modal-block-standard>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<template #footerLeftContent><span /></template>
|
|
58
|
+
</ui-modal>
|
|
11
59
|
</template>
|
|
12
60
|
|
|
13
61
|
<script setup lang="ts">
|
|
62
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
14
63
|
import type { UI_I_FeedbackForm } from '~/components/common/feedback/lib/models/interfaces'
|
|
15
64
|
|
|
16
|
-
const props = defineProps<{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
65
|
+
// const props = defineProps<{
|
|
66
|
+
// title: string
|
|
67
|
+
// }>()
|
|
68
|
+
// console.log(props)
|
|
69
|
+
// const emits = defineEmits<{
|
|
70
|
+
// (event: 'hide'): void
|
|
71
|
+
// (event: 'submit', value: UI_I_FeedbackForm): void
|
|
72
|
+
// }>()
|
|
73
|
+
|
|
74
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
75
|
+
|
|
76
|
+
const isShowInfo = ref<boolean>(false)
|
|
20
77
|
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
78
|
+
const infoDescription = ref('')
|
|
79
|
+
|
|
80
|
+
const texts = {
|
|
81
|
+
button1: localization.value.common.send,
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const onHideModal = (): void => {
|
|
85
|
+
// emits('hide')
|
|
86
|
+
}
|
|
87
|
+
const onSubmit = (): void => {}
|
|
25
88
|
</script>
|
|
26
89
|
|
|
27
90
|
<style lang="scss">
|
|
@@ -36,28 +99,5 @@ const emits = defineEmits<{
|
|
|
36
99
|
}
|
|
37
100
|
|
|
38
101
|
.feedback {
|
|
39
|
-
width: 60px;
|
|
40
|
-
height: 60px;
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
align-items: center;
|
|
45
|
-
fill: #fafafa;
|
|
46
|
-
|
|
47
|
-
&-icon {
|
|
48
|
-
width: 24px;
|
|
49
|
-
height: 24px;
|
|
50
|
-
opacity: 0.65;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
|
-
&-icon:hover {
|
|
54
|
-
opacity: 1;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
.about-vsphere-dialog-legal-section {
|
|
58
|
-
color: var(--description-color);
|
|
59
|
-
a {
|
|
60
|
-
color: var(--link-visited-color);
|
|
61
|
-
}
|
|
62
102
|
}
|
|
63
103
|
</style>
|
|
@@ -1,42 +1,110 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport to="body">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
:
|
|
6
|
-
:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
<atoms-modal
|
|
4
|
+
width="864px"
|
|
5
|
+
:show="true"
|
|
6
|
+
:title="`${brandName}® ${props.projectName}`"
|
|
7
|
+
test-id="about-modal"
|
|
8
|
+
>
|
|
9
|
+
<template #modalHeader>
|
|
10
|
+
<div class="flex-align-center">
|
|
11
|
+
<h3 class="modal-title">{{ brandName }}® {{ props.projectName }}</h3>
|
|
12
|
+
<span class="separator" />
|
|
13
|
+
<h4 class="secondary-title">
|
|
14
|
+
{{ props.projectName }} Web Client, version: {{ version }}
|
|
15
|
+
</h4>
|
|
16
|
+
<span
|
|
17
|
+
v-if="props.isBetaVersion"
|
|
18
|
+
class="beta-version badge badge-info"
|
|
19
|
+
>{{ localization.common.beta }}</span
|
|
20
|
+
>
|
|
21
|
+
<span v-else-if="isDev" class="beta-version badge badge-info"
|
|
22
|
+
>Dev</span
|
|
23
|
+
>
|
|
24
|
+
</div>
|
|
25
|
+
<button id="about-modal-button-close" class="close">
|
|
26
|
+
<atoms-the-icon
|
|
27
|
+
data-id="about-modal-button-close-icon"
|
|
28
|
+
class="close-icon"
|
|
29
|
+
name="close"
|
|
30
|
+
@click="() => emits('hide')"
|
|
31
|
+
/>
|
|
32
|
+
</button>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<template #modalBody>
|
|
36
|
+
<div class="about-vsphere-dialog-legal-section">
|
|
37
|
+
<p>{{ aboutHeadingText }}</p>
|
|
38
|
+
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="about-vsphere-dialog-legal-section description">
|
|
42
|
+
{{ aboutDesc1 }}
|
|
43
|
+
(<a
|
|
44
|
+
id="about-description-link"
|
|
45
|
+
data-id="about-description-link"
|
|
46
|
+
:href="url"
|
|
47
|
+
target="_blank"
|
|
48
|
+
>{{ url }}</a
|
|
49
|
+
>){{ aboutDesc2 }}
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<template #modalFooter>
|
|
54
|
+
<span></span>
|
|
55
|
+
</template>
|
|
56
|
+
</atoms-modal>
|
|
22
57
|
</Teleport>
|
|
23
58
|
</template>
|
|
24
59
|
|
|
25
60
|
<script lang="ts" setup>
|
|
61
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
62
|
+
|
|
26
63
|
const props = defineProps<{
|
|
27
64
|
version: string
|
|
28
|
-
|
|
65
|
+
isBetaVersion: boolean
|
|
29
66
|
isDev: boolean
|
|
30
67
|
projectName: string
|
|
31
68
|
}>()
|
|
69
|
+
|
|
32
70
|
const emits = defineEmits<{
|
|
33
71
|
(event: 'hide'): void
|
|
34
72
|
}>()
|
|
35
73
|
|
|
36
|
-
const
|
|
74
|
+
const config = useRuntimeConfig()
|
|
37
75
|
|
|
76
|
+
const brandName = computed<string>(
|
|
77
|
+
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
78
|
+
)
|
|
79
|
+
const companyName = computed<string>(
|
|
80
|
+
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
81
|
+
)
|
|
82
|
+
const aboutHeadingText = computed<string>(() =>
|
|
83
|
+
localization.value.layout.aboutHeading.replaceAll('{companyName}', companyName.value)
|
|
84
|
+
)
|
|
85
|
+
const aboutDesc1 = computed<string>(() =>
|
|
86
|
+
localization.value.layout.aboutDesc1
|
|
87
|
+
.replaceAll('{companyName}', companyName.value)
|
|
88
|
+
.replaceAll('{trademark}', brandName.value)
|
|
89
|
+
)
|
|
90
|
+
const aboutDesc2 = computed<string>(() =>
|
|
91
|
+
localization.value.layout.aboutDesc2
|
|
92
|
+
.replaceAll('{companyName}', companyName.value)
|
|
93
|
+
.replaceAll('{trademark}', brandName.value)
|
|
94
|
+
)
|
|
38
95
|
|
|
39
|
-
const
|
|
96
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
40
97
|
|
|
41
|
-
const
|
|
98
|
+
const url = ref<string>('https://iridium-soft.com/')
|
|
42
99
|
</script>
|
|
100
|
+
|
|
101
|
+
<style lang="scss" scoped>
|
|
102
|
+
.modal-title {
|
|
103
|
+
color: var(--main-color-mode);
|
|
104
|
+
}
|
|
105
|
+
.description {
|
|
106
|
+
padding-top: 10px;
|
|
107
|
+
font-size: 13px;
|
|
108
|
+
line-height: 19px;
|
|
109
|
+
}
|
|
110
|
+
</style>
|
package/package.json
CHANGED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-modal
|
|
3
|
-
test-id="about-modal"
|
|
4
|
-
width="720px"
|
|
5
|
-
:title="`${brandName}® ${props.projectName}`"
|
|
6
|
-
:subtitle="`${props.projectName} Web Client, version: ${props.version}`"
|
|
7
|
-
class="about-modal"
|
|
8
|
-
@hide="onHideModal"
|
|
9
|
-
>
|
|
10
|
-
<template #content>
|
|
11
|
-
<ui-modal-block-standard>
|
|
12
|
-
<div class="about-modal__text">
|
|
13
|
-
<p>{{ aboutHeadingText }}</p>
|
|
14
|
-
|
|
15
|
-
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="about-modal__description">
|
|
19
|
-
{{ aboutDesc1 }}
|
|
20
|
-
|
|
21
|
-
(<a
|
|
22
|
-
id="about-description-link"
|
|
23
|
-
data-id="about-description-link"
|
|
24
|
-
:href="url"
|
|
25
|
-
target="_blank"
|
|
26
|
-
class="about-modal__description-link"
|
|
27
|
-
>
|
|
28
|
-
{{ props.url }} </a
|
|
29
|
-
>)
|
|
30
|
-
|
|
31
|
-
{{ aboutDesc2 }}
|
|
32
|
-
</div>
|
|
33
|
-
</ui-modal-block-standard>
|
|
34
|
-
</template>
|
|
35
|
-
<template #footerContent><span /></template>
|
|
36
|
-
<template #footerLeftContent><span /></template>
|
|
37
|
-
</ui-modal>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script lang="ts" setup>
|
|
41
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
42
|
-
|
|
43
|
-
const props = defineProps<{
|
|
44
|
-
version: string
|
|
45
|
-
isBetaVersion: boolean
|
|
46
|
-
isDev: boolean
|
|
47
|
-
projectName: string
|
|
48
|
-
url: string
|
|
49
|
-
}>()
|
|
50
|
-
const emits = defineEmits<{
|
|
51
|
-
(event: 'hide'): void
|
|
52
|
-
}>()
|
|
53
|
-
|
|
54
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
-
const config = useRuntimeConfig()
|
|
56
|
-
|
|
57
|
-
const brandName = computed<string>(
|
|
58
|
-
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
59
|
-
)
|
|
60
|
-
const companyName = computed<string>(
|
|
61
|
-
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
const aboutHeadingText = computed<string>(() =>
|
|
65
|
-
localization.value.layout.aboutHeading.replaceAll(
|
|
66
|
-
'{companyName}',
|
|
67
|
-
companyName.value
|
|
68
|
-
)
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
const aboutDesc1 = computed<string>(() =>
|
|
72
|
-
localization.value.layout.aboutDesc1
|
|
73
|
-
.replaceAll('{companyName}', companyName.value)
|
|
74
|
-
.replaceAll('{trademark}', brandName.value)
|
|
75
|
-
)
|
|
76
|
-
const aboutDesc2 = computed<string>(() =>
|
|
77
|
-
localization.value.layout.aboutDesc2
|
|
78
|
-
.replaceAll('{companyName}', companyName.value)
|
|
79
|
-
.replaceAll('{trademark}', brandName.value)
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
const onHideModal = (): void => {
|
|
83
|
-
emits('hide')
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style lang="scss" scoped>
|
|
88
|
-
.about-modal {
|
|
89
|
-
:deep(.title-wrapper__subtitle) {
|
|
90
|
-
max-width: 400px;
|
|
91
|
-
}
|
|
92
|
-
&__text {
|
|
93
|
-
color: #4d5d69;
|
|
94
|
-
font-size: 13px;
|
|
95
|
-
font-weight: 400;
|
|
96
|
-
line-height: 15.73px;
|
|
97
|
-
&:last-child {
|
|
98
|
-
margin: 16px 0;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
&__description {
|
|
102
|
-
color: #4d5d69;
|
|
103
|
-
font-size: 13px;
|
|
104
|
-
font-weight: 400;
|
|
105
|
-
line-height: 15.73px;
|
|
106
|
-
&-link {
|
|
107
|
-
color: #0786d2;
|
|
108
|
-
&:hover {
|
|
109
|
-
color: #0081c1;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
</style>
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Teleport to="body">
|
|
3
|
-
<atoms-modal
|
|
4
|
-
width="864px"
|
|
5
|
-
:show="true"
|
|
6
|
-
:title="`${brandName}® ${props.projectName}`"
|
|
7
|
-
test-id="about-modal"
|
|
8
|
-
>
|
|
9
|
-
<template #modalHeader>
|
|
10
|
-
<div class="flex-align-center">
|
|
11
|
-
<h3 class="modal-title">{{ brandName }}® {{ props.projectName }}</h3>
|
|
12
|
-
<span class="separator" />
|
|
13
|
-
<h4 class="secondary-title">
|
|
14
|
-
{{ props.projectName }} Web Client, version: {{ version }}
|
|
15
|
-
</h4>
|
|
16
|
-
<span
|
|
17
|
-
v-if="props.isBetaVersion"
|
|
18
|
-
class="beta-version badge badge-info"
|
|
19
|
-
>{{ localization.common.beta }}</span
|
|
20
|
-
>
|
|
21
|
-
<span v-else-if="isDev" class="beta-version badge badge-info"
|
|
22
|
-
>Dev</span
|
|
23
|
-
>
|
|
24
|
-
</div>
|
|
25
|
-
<button id="about-modal-button-close" class="close">
|
|
26
|
-
<atoms-the-icon
|
|
27
|
-
data-id="about-modal-button-close-icon"
|
|
28
|
-
class="close-icon"
|
|
29
|
-
name="close"
|
|
30
|
-
@click="() => emits('hide')"
|
|
31
|
-
/>
|
|
32
|
-
</button>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<template #modalBody>
|
|
36
|
-
<div class="about-vsphere-dialog-legal-section">
|
|
37
|
-
<p>{{ aboutHeadingText }}</p>
|
|
38
|
-
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div class="about-vsphere-dialog-legal-section description">
|
|
42
|
-
{{ aboutDesc1 }}
|
|
43
|
-
(<a
|
|
44
|
-
id="about-description-link"
|
|
45
|
-
data-id="about-description-link"
|
|
46
|
-
:href="url"
|
|
47
|
-
target="_blank"
|
|
48
|
-
>{{ props.url }}</a
|
|
49
|
-
>){{ aboutDesc2 }}
|
|
50
|
-
</div>
|
|
51
|
-
</template>
|
|
52
|
-
|
|
53
|
-
<template #modalFooter>
|
|
54
|
-
<span></span>
|
|
55
|
-
</template>
|
|
56
|
-
</atoms-modal>
|
|
57
|
-
</Teleport>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script lang="ts" setup>
|
|
61
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
62
|
-
|
|
63
|
-
const props = defineProps<{
|
|
64
|
-
version: string
|
|
65
|
-
isBetaVersion: boolean
|
|
66
|
-
isDev: boolean
|
|
67
|
-
projectName: string
|
|
68
|
-
url: string
|
|
69
|
-
}>()
|
|
70
|
-
const emits = defineEmits<{
|
|
71
|
-
(event: 'hide'): void
|
|
72
|
-
}>()
|
|
73
|
-
|
|
74
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
75
|
-
const config = useRuntimeConfig()
|
|
76
|
-
|
|
77
|
-
const brandName = computed<string>(
|
|
78
|
-
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
79
|
-
)
|
|
80
|
-
const companyName = computed<string>(
|
|
81
|
-
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
82
|
-
)
|
|
83
|
-
const aboutHeadingText = computed<string>(() =>
|
|
84
|
-
localization.value.layout.aboutHeading.replaceAll(
|
|
85
|
-
'{companyName}',
|
|
86
|
-
companyName.value
|
|
87
|
-
)
|
|
88
|
-
)
|
|
89
|
-
const aboutDesc1 = computed<string>(() =>
|
|
90
|
-
localization.value.layout.aboutDesc1
|
|
91
|
-
.replaceAll('{companyName}', companyName.value)
|
|
92
|
-
.replaceAll('{trademark}', brandName.value)
|
|
93
|
-
)
|
|
94
|
-
const aboutDesc2 = computed<string>(() =>
|
|
95
|
-
localization.value.layout.aboutDesc2
|
|
96
|
-
.replaceAll('{companyName}', companyName.value)
|
|
97
|
-
.replaceAll('{trademark}', brandName.value)
|
|
98
|
-
)
|
|
99
|
-
</script>
|
|
100
|
-
|
|
101
|
-
<style lang="scss" scoped>
|
|
102
|
-
.modal-title {
|
|
103
|
-
color: var(--main-color-mode);
|
|
104
|
-
}
|
|
105
|
-
.description {
|
|
106
|
-
padding-top: 10px;
|
|
107
|
-
font-size: 13px;
|
|
108
|
-
line-height: 19px;
|
|
109
|
-
}
|
|
110
|
-
</style>
|