@descope/web-components-ui 1.0.356 → 1.0.358
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +10 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-email-field/EmailFieldClass.js +10 -7
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +1 -1
package/dist/index.esm.js
CHANGED
@@ -2620,18 +2620,21 @@ var textFieldMappings = {
|
|
2620
2620
|
|
2621
2621
|
const componentName$N = getComponentName('email-field');
|
2622
2622
|
|
2623
|
+
const defaultPattern = "^[\\w\\.\\%\\+\\-']+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$";
|
2624
|
+
const defaultAutocomplete = 'username';
|
2625
|
+
|
2623
2626
|
const customMixin$a = (superclass) =>
|
2624
2627
|
class EmailFieldMixinClass extends superclass {
|
2625
2628
|
init() {
|
2626
2629
|
super.init?.();
|
2627
2630
|
|
2628
|
-
this.
|
2629
|
-
|
2630
|
-
|
2631
|
-
}
|
2631
|
+
if (!this.getAttribute('pattern')) {
|
2632
|
+
this.setAttribute('pattern', defaultPattern);
|
2633
|
+
}
|
2632
2634
|
|
2633
|
-
|
2634
|
-
|
2635
|
+
if (!this.getAttribute('autocomplete')) {
|
2636
|
+
this.setAttribute('autocomplete', defaultAutocomplete);
|
2637
|
+
}
|
2635
2638
|
}
|
2636
2639
|
};
|
2637
2640
|
|
@@ -2663,7 +2666,7 @@ const EmailFieldClass = compose(
|
|
2663
2666
|
|
2664
2667
|
vaadin-email-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {
|
2665
2668
|
opacity: 0;
|
2666
|
-
}
|
2669
|
+
}
|
2667
2670
|
vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {
|
2668
2671
|
opacity: 0;
|
2669
2672
|
}
|
@@ -5763,7 +5766,7 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$6 {
|
|
5763
5766
|
this.inputs = [this.countryCodeInput, this.phoneNumberInput];
|
5764
5767
|
|
5765
5768
|
forwardAttrs(this, this.countryCodeInput, { includeAttrs: ['label-type'] });
|
5766
|
-
forwardAttrs(this, this.phoneNumberInput, { includeAttrs: ['label-type'] });
|
5769
|
+
forwardAttrs(this, this.phoneNumberInput, { includeAttrs: ['label-type', 'required'] });
|
5767
5770
|
|
5768
5771
|
// override combo box setter to display dialCode value in input
|
5769
5772
|
this.countryCodeInput.customValueTransformFn = (val) => {
|