@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/index.esm.js CHANGED
@@ -2700,11 +2700,19 @@ const customMixin$a = (superclass) =>
2700
2700
 
2701
2701
  this.baseElement.setAttribute('pattern', '^[\\w\\.\\%\\+\\-]+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$');
2702
2702
 
2703
- this.externalInput = this.handleExternalInput();
2703
+ if (!this.isNoExternalInput) {
2704
+ this.externalInput = this.handleExternalInput();
2704
2705
 
2705
- this.addEventListener('focus', () => {
2706
- this.externalInput.focus();
2707
- });
2706
+ this.addEventListener('focus', () => {
2707
+ this.externalInput.focus();
2708
+ });
2709
+ } else {
2710
+ this.setAttribute('autocomplete', this.getAutocompleteType());
2711
+ }
2712
+ }
2713
+
2714
+ get isNoExternalInput() {
2715
+ return this.getAttribute('no-external-input') === 'true';
2708
2716
  }
2709
2717
 
2710
2718
  forwardInputValue(source, target) {
@@ -2824,7 +2832,7 @@ const EmailFieldClass = compose(
2824
2832
  opacity: 0;
2825
2833
  }
2826
2834
 
2827
- vaadin-email-field > input:not(:placeholder-shown) {
2835
+ vaadin-email-field:not([no-external-input="true"]) > input:not(:placeholder-shown) {
2828
2836
  opacity: 0;
2829
2837
  }
2830
2838