@descope/web-components-ui 1.0.404 → 1.0.406
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 +16 -10
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/4619.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-hybrid-field/HybridFieldClass.js +8 -6
- package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +0 -1
- package/src/mixins/inputEventsDispatchingMixin.js +8 -4
package/dist/cjs/index.cjs.js
CHANGED
@@ -2663,10 +2663,14 @@ const inputEventsDispatchingMixin = (superclass) =>
|
|
2663
2663
|
// we are comparing the previous value to the new one,
|
2664
2664
|
// and if they have the same value, we are blocking the input event
|
2665
2665
|
this.addEventListener('input', (e) => {
|
2666
|
-
|
2667
|
-
if (
|
2668
|
-
|
2669
|
-
|
2666
|
+
// We don't want to block our own event that we fire from handleInputEventDispatching
|
2667
|
+
if (this !== e.target) {
|
2668
|
+
e.stopImmediatePropagation();
|
2669
|
+
|
2670
|
+
if (previousRootComponentValue !== this.value) {
|
2671
|
+
previousRootComponentValue = this.value;
|
2672
|
+
createDispatchEvent.call(this, 'input', { bubbles: true, composed: true });
|
2673
|
+
}
|
2670
2674
|
}
|
2671
2675
|
});
|
2672
2676
|
}
|
@@ -16853,8 +16857,6 @@ const componentName$2 = getComponentName('hybrid-field');
|
|
16853
16857
|
|
16854
16858
|
const attrs = {
|
16855
16859
|
shared: [
|
16856
|
-
'label',
|
16857
|
-
'placeholder',
|
16858
16860
|
'bordered',
|
16859
16861
|
'full-width',
|
16860
16862
|
'label-type',
|
@@ -16865,12 +16867,15 @@ const attrs = {
|
|
16865
16867
|
'st-host-direction',
|
16866
16868
|
],
|
16867
16869
|
email: [
|
16870
|
+
'label',
|
16871
|
+
'placeholder',
|
16868
16872
|
'data-errormessage-value-missing-email',
|
16869
16873
|
'data-errormessage-pattern-mismatch-email',
|
16870
16874
|
'external-input',
|
16871
16875
|
],
|
16872
16876
|
phone: {
|
16873
16877
|
countryCode: [
|
16878
|
+
'phone-input-label',
|
16874
16879
|
'country-input-label',
|
16875
16880
|
'country-input-placeholder',
|
16876
16881
|
'restrict-countries',
|
@@ -16879,6 +16884,7 @@ const attrs = {
|
|
16879
16884
|
'data-errormessage-value-missing-phone',
|
16880
16885
|
],
|
16881
16886
|
inputBox: [
|
16887
|
+
'label',
|
16882
16888
|
'restrict-countries',
|
16883
16889
|
'default-code',
|
16884
16890
|
'phone-minlength',
|
@@ -16893,7 +16899,7 @@ const attrMap = {
|
|
16893
16899
|
'data-errormessage-pattern-mismatch-email': 'data-errormessage-pattern-mismatch',
|
16894
16900
|
},
|
16895
16901
|
phone: {
|
16896
|
-
|
16902
|
+
'phone-input-label': 'label',
|
16897
16903
|
'phone-minlength': 'minlength',
|
16898
16904
|
'data-errormessage-value-missing-phone': 'data-errormessage-value-missing',
|
16899
16905
|
},
|
@@ -16926,7 +16932,7 @@ class RawHybridField extends BaseClass$1 {
|
|
16926
16932
|
}
|
16927
16933
|
.wrapper {
|
16928
16934
|
display: grid;
|
16929
|
-
|
16935
|
+
width: 100%;
|
16930
16936
|
}
|
16931
16937
|
descope-email-field,
|
16932
16938
|
descope-phone-field,
|
@@ -17053,8 +17059,6 @@ class RawHybridField extends BaseClass$1 {
|
|
17053
17059
|
}
|
17054
17060
|
|
17055
17061
|
updateAttrs() {
|
17056
|
-
this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
|
17057
|
-
|
17058
17062
|
forwardAttrs(this, this.emailInput, { includeAttrs: attrs.email, mapAttrs: attrMap.email });
|
17059
17063
|
|
17060
17064
|
forwardAttrs(this, this.phoneCountryCodeInput, {
|
@@ -17067,6 +17071,8 @@ class RawHybridField extends BaseClass$1 {
|
|
17067
17071
|
mapAttrs: attrMap.phone,
|
17068
17072
|
});
|
17069
17073
|
|
17074
|
+
this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
|
17075
|
+
|
17070
17076
|
setTimeout(() => this.phoneCountryCodeInput.setAttribute('default-code', this.defaultCode));
|
17071
17077
|
}
|
17072
17078
|
|