@descope/web-components-ui 1.0.153 → 1.0.155
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 +4 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/9241.js +1 -1
- package/dist/umd/descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/package.json +1 -1
- package/src/baseClasses/createBaseClass.js +4 -0
- package/src/components/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +3 -0
- package/src/mixins/proxyInputMixin.js +0 -4
package/dist/index.esm.js
CHANGED
@@ -601,6 +601,10 @@ const createBaseClass = ({ componentName, baseSelector = '' }) => {
|
|
601
601
|
return this.shadowRoot || this;
|
602
602
|
}
|
603
603
|
|
604
|
+
get name () {
|
605
|
+
return this.getAttribute('name');
|
606
|
+
}
|
607
|
+
|
604
608
|
connectedCallback() {
|
605
609
|
super.connectedCallback?.();
|
606
610
|
|
@@ -898,10 +902,6 @@ const proxyInputMixin = (superclass) =>
|
|
898
902
|
}, 0);
|
899
903
|
}
|
900
904
|
|
901
|
-
get name() {
|
902
|
-
return this.getAttribute('name');
|
903
|
-
}
|
904
|
-
|
905
905
|
get inputElement() {
|
906
906
|
this.warnIfInputElementIsMissing();
|
907
907
|
|
@@ -4513,6 +4513,9 @@ class PhoneFieldInternal extends BaseInputClass$2 {
|
|
4513
4513
|
}
|
4514
4514
|
|
4515
4515
|
get value() {
|
4516
|
+
if (!this.countryCodeValue || !this.phoneNumberValue) {
|
4517
|
+
return '';
|
4518
|
+
}
|
4516
4519
|
return this.inputs.map(({ value }) => value).join('-');
|
4517
4520
|
}
|
4518
4521
|
|