@descope/web-components-ui 1.0.164 → 1.0.166
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 +19 -12
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +18 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-phone-field-index-js.js +1 -1
- package/package.json +20 -2
- package/src/baseClasses/createBaseClass.js +3 -3
- package/src/components/boolean-fields/descope-checkbox/CheckboxClass.js +1 -1
- package/src/components/descope-combo-box/ComboBoxClass.js +2 -2
- package/src/components/descope-email-field/EmailFieldClass.js +9 -1
- package/src/components/descope-passcode/descope-passcode-internal/helpers.js +1 -1
- package/src/components/descope-phone-field/PhoneFieldClass.js +1 -0
- package/src/components/descope-recaptcha/RecaptchaClass.js +1 -3
package/dist/cjs/index.cjs.js
CHANGED
@@ -949,9 +949,9 @@ const createBaseClass = ({ componentName, baseSelector = '' }) => {
|
|
949
949
|
return this.shadowRoot || this;
|
950
950
|
}
|
951
951
|
|
952
|
-
get name
|
953
|
-
|
954
|
-
|
952
|
+
get name() {
|
953
|
+
return this.getAttribute('name');
|
954
|
+
}
|
955
955
|
|
956
956
|
connectedCallback() {
|
957
957
|
super.connectedCallback?.();
|
@@ -1906,7 +1906,7 @@ const componentName$q = getComponentName('text-field');
|
|
1906
1906
|
|
1907
1907
|
const observedAttrs = ['type'];
|
1908
1908
|
|
1909
|
-
const customMixin$
|
1909
|
+
const customMixin$4 = (superclass) =>
|
1910
1910
|
class TextFieldClass extends superclass {
|
1911
1911
|
static get observedAttributes() {
|
1912
1912
|
return observedAttrs.concat(superclass.observedAttributes || []);
|
@@ -1933,7 +1933,7 @@ const TextFieldClass = compose(
|
|
1933
1933
|
draggableMixin,
|
1934
1934
|
composedProxyInputMixin,
|
1935
1935
|
componentNameValidationMixin,
|
1936
|
-
customMixin$
|
1936
|
+
customMixin$4
|
1937
1937
|
)(
|
1938
1938
|
createProxy({
|
1939
1939
|
slots: ['prefix', 'suffix'],
|
@@ -2322,13 +2322,21 @@ var numberField$1 = /*#__PURE__*/Object.freeze({
|
|
2322
2322
|
|
2323
2323
|
const componentName$m = getComponentName('email-field');
|
2324
2324
|
|
2325
|
+
const customMixin$3 = (superclass) =>
|
2326
|
+
class EmailFieldMixinClass extends superclass {
|
2327
|
+
init() {
|
2328
|
+
super.init?.();
|
2329
|
+
this.baseElement.setAttribute('pattern', '^[\\w\\.\\%\\+\\-]+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$');
|
2330
|
+
}
|
2331
|
+
};
|
2325
2332
|
const EmailFieldClass = compose(
|
2326
2333
|
createStyleMixin({
|
2327
2334
|
mappings: textFieldMappings,
|
2328
2335
|
}),
|
2329
2336
|
draggableMixin,
|
2330
2337
|
composedProxyInputMixin,
|
2331
|
-
componentNameValidationMixin
|
2338
|
+
componentNameValidationMixin,
|
2339
|
+
customMixin$3
|
2332
2340
|
)(
|
2333
2341
|
createProxy({
|
2334
2342
|
slots: ['suffix'],
|
@@ -2684,7 +2692,7 @@ const CheckboxClass = compose(
|
|
2684
2692
|
wrappedEleName: 'vaadin-text-field',
|
2685
2693
|
style: () => `
|
2686
2694
|
${commonStyles}
|
2687
|
-
|
2695
|
+
vaadin-checkbox::part(checkbox)::after {
|
2688
2696
|
top: 0;
|
2689
2697
|
left: 0;
|
2690
2698
|
}
|
@@ -4011,8 +4019,8 @@ const ComboBoxMixin = (superclass) =>
|
|
4011
4019
|
overlay._attachOverlay = () => {
|
4012
4020
|
overlay.bringToFront();
|
4013
4021
|
};
|
4014
|
-
overlay._detachOverlay = () => {
|
4015
|
-
overlay._enterModalState = () => {
|
4022
|
+
overlay._detachOverlay = () => {};
|
4023
|
+
overlay._enterModalState = () => {};
|
4016
4024
|
}
|
4017
4025
|
|
4018
4026
|
init() {
|
@@ -5512,6 +5520,7 @@ const customMixin$1 = (superclass) =>
|
|
5512
5520
|
'default-code',
|
5513
5521
|
'country-input-placeholder',
|
5514
5522
|
'phone-input-placeholder',
|
5523
|
+
'disabled',
|
5515
5524
|
],
|
5516
5525
|
});
|
5517
5526
|
}
|
@@ -6370,9 +6379,7 @@ class RawRecaptcha extends BaseClass {
|
|
6370
6379
|
}
|
6371
6380
|
}
|
6372
6381
|
|
6373
|
-
const RecaptchaClass = compose(
|
6374
|
-
draggableMixin
|
6375
|
-
)(RawRecaptcha);
|
6382
|
+
const RecaptchaClass = compose(draggableMixin)(RawRecaptcha);
|
6376
6383
|
|
6377
6384
|
exports.ButtonClass = ButtonClass;
|
6378
6385
|
exports.CheckboxClass = CheckboxClass;
|