bfg-common 1.2.63 → 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.
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
<!-- />-->
|
|
22
22
|
|
|
23
23
|
<atoms-tooltip-error
|
|
24
|
+
class="tooltip-error"
|
|
24
25
|
:has-error="isInvalidEmail"
|
|
25
26
|
selector="#vm-wizard-vcpus-field input"
|
|
26
27
|
>
|
|
@@ -29,8 +30,9 @@
|
|
|
29
30
|
id="feedback-email-input"
|
|
30
31
|
v-model="emailLocal"
|
|
31
32
|
type="email"
|
|
32
|
-
:class="['email', {'has-error': isInvalidEmail}]"
|
|
33
|
+
:class="['email', { 'has-error': isInvalidEmail }]"
|
|
33
34
|
:placeholder="localization.optionalInCaseWeNeed"
|
|
35
|
+
@blur="isStartEmailValidation = true"
|
|
34
36
|
/>
|
|
35
37
|
</template>
|
|
36
38
|
<template #content>{{ localization.emailErrorText }}</template>
|
|
@@ -181,8 +183,9 @@ const emailLocal = computed<string>({
|
|
|
181
183
|
},
|
|
182
184
|
})
|
|
183
185
|
const isInvalidEmail = computed<boolean>(
|
|
184
|
-
() => !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailLocal.value)
|
|
186
|
+
() => isStartEmailValidation.value && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailLocal.value)
|
|
185
187
|
)
|
|
188
|
+
const isStartEmailValidation = ref<boolean>(false)
|
|
186
189
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
187
190
|
// const drawingPanel = computed(() => drawingPanelFunc(localization.value))
|
|
188
191
|
|
|
@@ -461,6 +464,11 @@ onBeforeUnmount(() => {
|
|
|
461
464
|
width: 100%;
|
|
462
465
|
}
|
|
463
466
|
|
|
467
|
+
.tooltip-error {
|
|
468
|
+
:deep(.element-content) {
|
|
469
|
+
width: 100%;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
464
472
|
.has-error {
|
|
465
473
|
border: 1px solid #db2100;
|
|
466
474
|
}
|