bfg-common 1.2.62 → 1.2.64
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.
|
@@ -12,13 +12,31 @@
|
|
|
12
12
|
</div>
|
|
13
13
|
<div class="main-block">
|
|
14
14
|
<span class="text">{{ localization.emailAddress }} </span>
|
|
15
|
-
<input
|
|
16
|
-
id="feedback-email-input"
|
|
17
|
-
v-model="emailLocal"
|
|
18
|
-
type="email"
|
|
19
|
-
class="email"
|
|
20
|
-
:placeholder="localization.optionalInCaseWeNeed"
|
|
21
|
-
|
|
15
|
+
<!-- <input-->
|
|
16
|
+
<!-- id="feedback-email-input"-->
|
|
17
|
+
<!-- v-model="emailLocal"-->
|
|
18
|
+
<!-- type="email"-->
|
|
19
|
+
<!-- class="email"-->
|
|
20
|
+
<!-- :placeholder="localization.optionalInCaseWeNeed"-->
|
|
21
|
+
<!-- />-->
|
|
22
|
+
|
|
23
|
+
<atoms-tooltip-error
|
|
24
|
+
class="tooltip-error"
|
|
25
|
+
:has-error="isInvalidEmail"
|
|
26
|
+
selector="#vm-wizard-vcpus-field input"
|
|
27
|
+
>
|
|
28
|
+
<template #elem>
|
|
29
|
+
<input
|
|
30
|
+
id="feedback-email-input"
|
|
31
|
+
v-model="emailLocal"
|
|
32
|
+
type="email"
|
|
33
|
+
:class="['email', { 'has-error': isInvalidEmail }]"
|
|
34
|
+
:placeholder="localization.optionalInCaseWeNeed"
|
|
35
|
+
@blur="isStartEmailValidation = true"
|
|
36
|
+
/>
|
|
37
|
+
</template>
|
|
38
|
+
<template #content>{{ localization.emailErrorText }}</template>
|
|
39
|
+
</atoms-tooltip-error>
|
|
22
40
|
</div>
|
|
23
41
|
<div class="main-block">
|
|
24
42
|
<span class="text">{{ localization.additionalDetails }} </span>
|
|
@@ -126,7 +144,7 @@
|
|
|
126
144
|
ref="feedbackImg"
|
|
127
145
|
:class="{ feedbackImg: !hasTakeScreenshot }"
|
|
128
146
|
></canvas>
|
|
129
|
-
<canvas id=
|
|
147
|
+
<canvas id="feedbackImgBlank" style="display: none"></canvas>
|
|
130
148
|
</div>
|
|
131
149
|
</div>
|
|
132
150
|
</template>
|
|
@@ -164,6 +182,10 @@ const emailLocal = computed<string>({
|
|
|
164
182
|
emits('update:email', value)
|
|
165
183
|
},
|
|
166
184
|
})
|
|
185
|
+
const isInvalidEmail = computed<boolean>(
|
|
186
|
+
() => isStartEmailValidation.value && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailLocal.value)
|
|
187
|
+
)
|
|
188
|
+
const isStartEmailValidation = ref<boolean>(false)
|
|
167
189
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
168
190
|
// const drawingPanel = computed(() => drawingPanelFunc(localization.value))
|
|
169
191
|
|
|
@@ -441,6 +463,15 @@ onBeforeUnmount(() => {
|
|
|
441
463
|
:deep(.alert.alert-info) {
|
|
442
464
|
width: 100%;
|
|
443
465
|
}
|
|
466
|
+
|
|
467
|
+
.tooltip-error {
|
|
468
|
+
:deep(.element-content) {
|
|
469
|
+
width: 100%;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
.has-error {
|
|
473
|
+
border: 1px solid #db2100;
|
|
474
|
+
}
|
|
444
475
|
}
|
|
445
476
|
}
|
|
446
477
|
.loadFile {
|