@descope/web-components-ui 1.0.404 → 1.0.405
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 +8 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-hybrid-field/HybridFieldClass.js +8 -6
package/dist/cjs/index.cjs.js
CHANGED
@@ -16853,8 +16853,6 @@ const componentName$2 = getComponentName('hybrid-field');
|
|
16853
16853
|
|
16854
16854
|
const attrs = {
|
16855
16855
|
shared: [
|
16856
|
-
'label',
|
16857
|
-
'placeholder',
|
16858
16856
|
'bordered',
|
16859
16857
|
'full-width',
|
16860
16858
|
'label-type',
|
@@ -16865,12 +16863,15 @@ const attrs = {
|
|
16865
16863
|
'st-host-direction',
|
16866
16864
|
],
|
16867
16865
|
email: [
|
16866
|
+
'label',
|
16867
|
+
'placeholder',
|
16868
16868
|
'data-errormessage-value-missing-email',
|
16869
16869
|
'data-errormessage-pattern-mismatch-email',
|
16870
16870
|
'external-input',
|
16871
16871
|
],
|
16872
16872
|
phone: {
|
16873
16873
|
countryCode: [
|
16874
|
+
'phone-input-label',
|
16874
16875
|
'country-input-label',
|
16875
16876
|
'country-input-placeholder',
|
16876
16877
|
'restrict-countries',
|
@@ -16879,6 +16880,7 @@ const attrs = {
|
|
16879
16880
|
'data-errormessage-value-missing-phone',
|
16880
16881
|
],
|
16881
16882
|
inputBox: [
|
16883
|
+
'label',
|
16882
16884
|
'restrict-countries',
|
16883
16885
|
'default-code',
|
16884
16886
|
'phone-minlength',
|
@@ -16893,7 +16895,7 @@ const attrMap = {
|
|
16893
16895
|
'data-errormessage-pattern-mismatch-email': 'data-errormessage-pattern-mismatch',
|
16894
16896
|
},
|
16895
16897
|
phone: {
|
16896
|
-
|
16898
|
+
'phone-input-label': 'label',
|
16897
16899
|
'phone-minlength': 'minlength',
|
16898
16900
|
'data-errormessage-value-missing-phone': 'data-errormessage-value-missing',
|
16899
16901
|
},
|
@@ -16926,7 +16928,7 @@ class RawHybridField extends BaseClass$1 {
|
|
16926
16928
|
}
|
16927
16929
|
.wrapper {
|
16928
16930
|
display: grid;
|
16929
|
-
|
16931
|
+
width: 100%;
|
16930
16932
|
}
|
16931
16933
|
descope-email-field,
|
16932
16934
|
descope-phone-field,
|
@@ -17053,8 +17055,6 @@ class RawHybridField extends BaseClass$1 {
|
|
17053
17055
|
}
|
17054
17056
|
|
17055
17057
|
updateAttrs() {
|
17056
|
-
this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
|
17057
|
-
|
17058
17058
|
forwardAttrs(this, this.emailInput, { includeAttrs: attrs.email, mapAttrs: attrMap.email });
|
17059
17059
|
|
17060
17060
|
forwardAttrs(this, this.phoneCountryCodeInput, {
|
@@ -17067,6 +17067,8 @@ class RawHybridField extends BaseClass$1 {
|
|
17067
17067
|
mapAttrs: attrMap.phone,
|
17068
17068
|
});
|
17069
17069
|
|
17070
|
+
this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
|
17071
|
+
|
17070
17072
|
setTimeout(() => this.phoneCountryCodeInput.setAttribute('default-code', this.defaultCode));
|
17071
17073
|
}
|
17072
17074
|
|