@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/index.esm.js CHANGED
@@ -1436,10 +1436,14 @@ const inputEventsDispatchingMixin = (superclass) =>
1436
1436
  // we are comparing the previous value to the new one,
1437
1437
  // and if they have the same value, we are blocking the input event
1438
1438
  this.addEventListener('input', (e) => {
1439
- e.stopImmediatePropagation();
1440
- if (previousRootComponentValue !== this.value) {
1441
- previousRootComponentValue = this.value;
1442
- createDispatchEvent.call(this, 'input', { bubbles: true });
1439
+ // We don't want to block our own event that we fire from handleInputEventDispatching
1440
+ if (this !== e.target) {
1441
+ e.stopImmediatePropagation();
1442
+
1443
+ if (previousRootComponentValue !== this.value) {
1444
+ previousRootComponentValue = this.value;
1445
+ createDispatchEvent.call(this, 'input', { bubbles: true, composed: true });
1446
+ }
1443
1447
  }
1444
1448
  });
1445
1449
  }
@@ -8768,7 +8772,6 @@ class PhoneFieldInternal extends BaseInputClass$5 {
8768
8772
  });
8769
8773
 
8770
8774
  this.handleFocusEventsDispatching([this.phoneNumberInput]);
8771
- this.handleInputEventDispatching();
8772
8775
  }
8773
8776
 
8774
8777
  attributeChangedCallback(attrName, oldValue, newValue) {
@@ -15319,8 +15322,6 @@ const componentName$1 = getComponentName('hybrid-field');
15319
15322
 
15320
15323
  const attrs = {
15321
15324
  shared: [
15322
- 'label',
15323
- 'placeholder',
15324
15325
  'bordered',
15325
15326
  'full-width',
15326
15327
  'label-type',
@@ -15331,12 +15332,15 @@ const attrs = {
15331
15332
  'st-host-direction',
15332
15333
  ],
15333
15334
  email: [
15335
+ 'label',
15336
+ 'placeholder',
15334
15337
  'data-errormessage-value-missing-email',
15335
15338
  'data-errormessage-pattern-mismatch-email',
15336
15339
  'external-input',
15337
15340
  ],
15338
15341
  phone: {
15339
15342
  countryCode: [
15343
+ 'phone-input-label',
15340
15344
  'country-input-label',
15341
15345
  'country-input-placeholder',
15342
15346
  'restrict-countries',
@@ -15345,6 +15349,7 @@ const attrs = {
15345
15349
  'data-errormessage-value-missing-phone',
15346
15350
  ],
15347
15351
  inputBox: [
15352
+ 'label',
15348
15353
  'restrict-countries',
15349
15354
  'default-code',
15350
15355
  'phone-minlength',
@@ -15359,7 +15364,7 @@ const attrMap = {
15359
15364
  'data-errormessage-pattern-mismatch-email': 'data-errormessage-pattern-mismatch',
15360
15365
  },
15361
15366
  phone: {
15362
- placeholder: 'phone-input-placeholder',
15367
+ 'phone-input-label': 'label',
15363
15368
  'phone-minlength': 'minlength',
15364
15369
  'data-errormessage-value-missing-phone': 'data-errormessage-value-missing',
15365
15370
  },
@@ -15392,7 +15397,7 @@ class RawHybridField extends BaseClass {
15392
15397
  }
15393
15398
  .wrapper {
15394
15399
  display: grid;
15395
- place-content: center;
15400
+ width: 100%;
15396
15401
  }
15397
15402
  descope-email-field,
15398
15403
  descope-phone-field,
@@ -15519,8 +15524,6 @@ class RawHybridField extends BaseClass {
15519
15524
  }
15520
15525
 
15521
15526
  updateAttrs() {
15522
- this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
15523
-
15524
15527
  forwardAttrs(this, this.emailInput, { includeAttrs: attrs.email, mapAttrs: attrMap.email });
15525
15528
 
15526
15529
  forwardAttrs(this, this.phoneCountryCodeInput, {
@@ -15533,6 +15536,8 @@ class RawHybridField extends BaseClass {
15533
15536
  mapAttrs: attrMap.phone,
15534
15537
  });
15535
15538
 
15539
+ this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
15540
+
15536
15541
  setTimeout(() => this.phoneCountryCodeInput.setAttribute('default-code', this.defaultCode));
15537
15542
  }
15538
15543