@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/index.esm.js
CHANGED
@@ -15319,8 +15319,6 @@ const componentName$1 = getComponentName('hybrid-field');
|
|
15319
15319
|
|
15320
15320
|
const attrs = {
|
15321
15321
|
shared: [
|
15322
|
-
'label',
|
15323
|
-
'placeholder',
|
15324
15322
|
'bordered',
|
15325
15323
|
'full-width',
|
15326
15324
|
'label-type',
|
@@ -15331,12 +15329,15 @@ const attrs = {
|
|
15331
15329
|
'st-host-direction',
|
15332
15330
|
],
|
15333
15331
|
email: [
|
15332
|
+
'label',
|
15333
|
+
'placeholder',
|
15334
15334
|
'data-errormessage-value-missing-email',
|
15335
15335
|
'data-errormessage-pattern-mismatch-email',
|
15336
15336
|
'external-input',
|
15337
15337
|
],
|
15338
15338
|
phone: {
|
15339
15339
|
countryCode: [
|
15340
|
+
'phone-input-label',
|
15340
15341
|
'country-input-label',
|
15341
15342
|
'country-input-placeholder',
|
15342
15343
|
'restrict-countries',
|
@@ -15345,6 +15346,7 @@ const attrs = {
|
|
15345
15346
|
'data-errormessage-value-missing-phone',
|
15346
15347
|
],
|
15347
15348
|
inputBox: [
|
15349
|
+
'label',
|
15348
15350
|
'restrict-countries',
|
15349
15351
|
'default-code',
|
15350
15352
|
'phone-minlength',
|
@@ -15359,7 +15361,7 @@ const attrMap = {
|
|
15359
15361
|
'data-errormessage-pattern-mismatch-email': 'data-errormessage-pattern-mismatch',
|
15360
15362
|
},
|
15361
15363
|
phone: {
|
15362
|
-
|
15364
|
+
'phone-input-label': 'label',
|
15363
15365
|
'phone-minlength': 'minlength',
|
15364
15366
|
'data-errormessage-value-missing-phone': 'data-errormessage-value-missing',
|
15365
15367
|
},
|
@@ -15392,7 +15394,7 @@ class RawHybridField extends BaseClass {
|
|
15392
15394
|
}
|
15393
15395
|
.wrapper {
|
15394
15396
|
display: grid;
|
15395
|
-
|
15397
|
+
width: 100%;
|
15396
15398
|
}
|
15397
15399
|
descope-email-field,
|
15398
15400
|
descope-phone-field,
|
@@ -15519,8 +15521,6 @@ class RawHybridField extends BaseClass {
|
|
15519
15521
|
}
|
15520
15522
|
|
15521
15523
|
updateAttrs() {
|
15522
|
-
this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
|
15523
|
-
|
15524
15524
|
forwardAttrs(this, this.emailInput, { includeAttrs: attrs.email, mapAttrs: attrMap.email });
|
15525
15525
|
|
15526
15526
|
forwardAttrs(this, this.phoneCountryCodeInput, {
|
@@ -15533,6 +15533,8 @@ class RawHybridField extends BaseClass {
|
|
15533
15533
|
mapAttrs: attrMap.phone,
|
15534
15534
|
});
|
15535
15535
|
|
15536
|
+
this.inputs.forEach((input) => forwardAttrs(this, input, { includeAttrs: attrs.shared }));
|
15537
|
+
|
15536
15538
|
setTimeout(() => this.phoneCountryCodeInput.setAttribute('default-code', this.defaultCode));
|
15537
15539
|
}
|
15538
15540
|
|