@descope/web-components-ui 1.0.332 → 1.0.333
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/dist/cjs/index.cjs.js +13 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +4 -4
- package/package.json +1 -1
- package/src/components/descope-email-field/EmailFieldClass.js +13 -5
package/dist/cjs/index.cjs.js
CHANGED
@@ -4060,11 +4060,19 @@ const customMixin$8 = (superclass) =>
|
|
4060
4060
|
|
4061
4061
|
this.baseElement.setAttribute('pattern', '^[\\w\\.\\%\\+\\-]+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$');
|
4062
4062
|
|
4063
|
-
|
4063
|
+
if (!this.isNoExternalInput) {
|
4064
|
+
this.externalInput = this.handleExternalInput();
|
4064
4065
|
|
4065
|
-
|
4066
|
-
|
4067
|
-
|
4066
|
+
this.addEventListener('focus', () => {
|
4067
|
+
this.externalInput.focus();
|
4068
|
+
});
|
4069
|
+
} else {
|
4070
|
+
this.setAttribute('autocomplete', this.getAutocompleteType());
|
4071
|
+
}
|
4072
|
+
}
|
4073
|
+
|
4074
|
+
get isNoExternalInput() {
|
4075
|
+
return this.getAttribute('no-external-input') === 'true';
|
4068
4076
|
}
|
4069
4077
|
|
4070
4078
|
forwardInputValue(source, target) {
|
@@ -4184,7 +4192,7 @@ const EmailFieldClass = compose(
|
|
4184
4192
|
opacity: 0;
|
4185
4193
|
}
|
4186
4194
|
|
4187
|
-
vaadin-email-field > input:not(:placeholder-shown) {
|
4195
|
+
vaadin-email-field:not([no-external-input="true"]) > input:not(:placeholder-shown) {
|
4188
4196
|
opacity: 0;
|
4189
4197
|
}
|
4190
4198
|
|