@descope/web-components-ui 3.3.0 → 3.3.1
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 +6 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +25 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +2 -2
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js.map +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-descope-phone-input-box-internal-index-js.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.map +1 -1
- package/package.json +32 -32
- package/src/components/descope-hybrid-field/HybridFieldClass.js +4 -2
- package/src/components/phone-fields/descope-phone-field/PhoneFieldClass.js +1 -0
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +12 -2
- package/src/components/phone-fields/descope-phone-input-box-field/PhoneFieldInputBoxClass.js +1 -0
- package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +7 -0
package/dist/index.esm.js
CHANGED
|
@@ -11075,12 +11075,19 @@ const componentName$$ = getComponentName('phone-field-internal');
|
|
|
11075
11075
|
|
|
11076
11076
|
const commonAttrs$2 = ['disabled', 'size', 'bordered', 'readonly'];
|
|
11077
11077
|
const countryAttrs = ['country-input-placeholder', 'default-code', 'restrict-countries'];
|
|
11078
|
-
const phoneAttrs = [
|
|
11078
|
+
const phoneAttrs = [
|
|
11079
|
+
'phone-input-placeholder',
|
|
11080
|
+
'maxlength',
|
|
11081
|
+
'autocomplete',
|
|
11082
|
+
'name',
|
|
11083
|
+
'phone-input-type',
|
|
11084
|
+
];
|
|
11079
11085
|
const labelTypeAttrs$1 = ['label-type', 'country-input-label', 'label'];
|
|
11080
11086
|
const mapAttrs$1 = {
|
|
11081
11087
|
'country-input-label': 'label',
|
|
11082
11088
|
'country-input-placeholder': 'placeholder',
|
|
11083
11089
|
'phone-input-placeholder': 'placeholder',
|
|
11090
|
+
'phone-input-type': 'type',
|
|
11084
11091
|
};
|
|
11085
11092
|
|
|
11086
11093
|
const inputRelatedAttrs$1 = [].concat(commonAttrs$2, countryAttrs, phoneAttrs, labelTypeAttrs$1);
|
|
@@ -11116,7 +11123,10 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$a {
|
|
|
11116
11123
|
this.inputs = [this.comboBox, this.textField];
|
|
11117
11124
|
|
|
11118
11125
|
forwardAttrs(this, this.comboBox, { includeAttrs: ['label-type'] });
|
|
11119
|
-
forwardAttrs(this, this.textField, {
|
|
11126
|
+
forwardAttrs(this, this.textField, {
|
|
11127
|
+
includeAttrs: ['label-type', 'required', 'phone-input-type'],
|
|
11128
|
+
mapAttrs: { 'phone-input-type': 'type' },
|
|
11129
|
+
});
|
|
11120
11130
|
|
|
11121
11131
|
// override combo box setter to display dialCode value in input
|
|
11122
11132
|
this.comboBox.customValueTransformFn = (val) => {
|
|
@@ -11486,6 +11496,7 @@ const customMixin$b = (superclass) =>
|
|
|
11486
11496
|
'allow-alphanumeric-input',
|
|
11487
11497
|
'format-value',
|
|
11488
11498
|
'strict-validation',
|
|
11499
|
+
'phone-input-type',
|
|
11489
11500
|
],
|
|
11490
11501
|
});
|
|
11491
11502
|
}
|
|
@@ -11765,9 +11776,11 @@ const observedAttributes$4 = [
|
|
|
11765
11776
|
'maxlength',
|
|
11766
11777
|
'autocomplete',
|
|
11767
11778
|
'label-type',
|
|
11779
|
+
'phone-input-type',
|
|
11768
11780
|
];
|
|
11769
11781
|
const mapAttrs = {
|
|
11770
11782
|
'phone-input-placeholder': 'placeholder',
|
|
11783
|
+
'phone-input-type': 'type',
|
|
11771
11784
|
};
|
|
11772
11785
|
|
|
11773
11786
|
const BaseInputClass$9 = createBaseInputClass({ componentName: componentName$Z, baseSelector: 'div' });
|
|
@@ -11861,6 +11874,11 @@ class PhoneFieldInternal extends BaseInputClass$9 {
|
|
|
11861
11874
|
this.handleFocusEventsDispatching([this.textField]);
|
|
11862
11875
|
|
|
11863
11876
|
forwardAttrs$1(this.textField, this, { includeAttrs: ['has-value'] });
|
|
11877
|
+
|
|
11878
|
+
forwardAttrs$1(this, this.textField, {
|
|
11879
|
+
includeAttrs: ['phone-input-type'],
|
|
11880
|
+
mapAttrs: { 'phone-input-type': 'type' },
|
|
11881
|
+
});
|
|
11864
11882
|
}
|
|
11865
11883
|
|
|
11866
11884
|
getValidity() {
|
|
@@ -12063,6 +12081,7 @@ const customMixin$a = (superclass) =>
|
|
|
12063
12081
|
'format-value',
|
|
12064
12082
|
'strict-validation',
|
|
12065
12083
|
'data-errormessage-type-mismatch',
|
|
12084
|
+
'phone-input-type',
|
|
12066
12085
|
],
|
|
12067
12086
|
});
|
|
12068
12087
|
}
|
|
@@ -19025,6 +19044,7 @@ const attrs = {
|
|
|
19025
19044
|
'phone-minlength',
|
|
19026
19045
|
'phone-format-value',
|
|
19027
19046
|
'phone-strict-validation',
|
|
19047
|
+
'phone-input-type',
|
|
19028
19048
|
'data-errormessage-value-missing-phone',
|
|
19029
19049
|
],
|
|
19030
19050
|
inputBox: [
|
|
@@ -19033,6 +19053,7 @@ const attrs = {
|
|
|
19033
19053
|
'phone-minlength',
|
|
19034
19054
|
'phone-format-value',
|
|
19035
19055
|
'phone-strict-validation',
|
|
19056
|
+
'phone-input-type',
|
|
19036
19057
|
'data-errormessage-value-missing-phone',
|
|
19037
19058
|
],
|
|
19038
19059
|
},
|
|
@@ -19072,8 +19093,8 @@ class RawHybridField extends BaseClass$6 {
|
|
|
19072
19093
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
19073
19094
|
<div class="wrapper">
|
|
19074
19095
|
<descope-email-field external-input="${this.isExternalInput}"></descope-email-field>
|
|
19075
|
-
<descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>
|
|
19076
|
-
<descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>
|
|
19096
|
+
<descope-phone-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-field>
|
|
19097
|
+
<descope-phone-input-box-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-input-box-field>
|
|
19077
19098
|
</div>
|
|
19078
19099
|
`;
|
|
19079
19100
|
|