@descope/web-components-ui 1.0.423 → 1.0.425
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 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +19 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1402.js +1 -1
- package/dist/umd/1484.js +1 -1
- package/dist/umd/2159.js +1 -1
- package/dist/umd/3110.js +1 -1
- package/dist/umd/3191.js +9 -62
- package/dist/umd/404.js +1 -1
- package/dist/umd/4127.js +1 -1
- package/dist/umd/507.js +1 -1
- package/dist/umd/5563.js +2 -2
- package/dist/umd/731.js +1 -1
- package/dist/umd/7979.js +1 -1
- package/dist/umd/9030.js +1 -1
- package/dist/umd/9243.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/bcdfe87ae253c2cf789c9a737f8d8c22.woff +0 -0
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-combo-box-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.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-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-alert/AlertClass.js +3 -1
- package/src/components/descope-new-password/descope-new-password-internal/NewPasswordInternal.js +1 -1
- package/src/components/descope-passcode/PasscodeClass.js +1 -0
- package/src/components/descope-passcode/descope-passcode-internal/PasscodeInternal.js +9 -1
- package/src/components/descope-upload-file/UploadFileClass.js +2 -2
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +3 -0
package/dist/index.esm.js
CHANGED
@@ -6679,7 +6679,14 @@ const componentName$O = getComponentName$1('passcode-internal');
|
|
6679
6679
|
|
6680
6680
|
const observedAttributes$5 = ['digits', 'loading'];
|
6681
6681
|
|
6682
|
-
const forwardAttributes = [
|
6682
|
+
const forwardAttributes = [
|
6683
|
+
'disabled',
|
6684
|
+
'bordered',
|
6685
|
+
'size',
|
6686
|
+
'invalid',
|
6687
|
+
'readonly',
|
6688
|
+
'aria-labelledby',
|
6689
|
+
];
|
6683
6690
|
|
6684
6691
|
const BaseInputClass$7 = createBaseInputClass({ componentName: componentName$O, baseSelector: 'div' });
|
6685
6692
|
|
@@ -6872,6 +6879,7 @@ class PasscodeInternal extends BaseInputClass$7 {
|
|
6872
6879
|
};
|
6873
6880
|
|
6874
6881
|
forwardAttrs$1(this, input, { includeAttrs: forwardAttributes });
|
6882
|
+
input.shadowRoot.querySelector('input').setAttribute('aria-label', 'passcode digit');
|
6875
6883
|
});
|
6876
6884
|
|
6877
6885
|
this.handleFocusEventsDispatching(this.inputs);
|
@@ -6923,6 +6931,7 @@ const customMixin$a = (superclass) =>
|
|
6923
6931
|
name="code"
|
6924
6932
|
tabindex="-1"
|
6925
6933
|
slot="input"
|
6934
|
+
role="textbox"
|
6926
6935
|
><slot></slot></${componentName$O}>
|
6927
6936
|
`;
|
6928
6937
|
|
@@ -9226,6 +9235,9 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$6 {
|
|
9226
9235
|
initInputs() {
|
9227
9236
|
// Sanitize phone input value to filter everything but digits
|
9228
9237
|
this.phoneNumberInput.addEventListener('input', (e) => {
|
9238
|
+
// we want to update only phoneNumberInput, and avoid triggering `set value`
|
9239
|
+
e.stopPropagation();
|
9240
|
+
|
9229
9241
|
if (!this.allowAlphanumericInput) {
|
9230
9242
|
const telDigitsRegExp = /^\d$/;
|
9231
9243
|
const sanitizedInput = e.target.value
|
@@ -10489,7 +10501,7 @@ class NewPasswordInternal extends BaseInputClass$4 {
|
|
10489
10501
|
|
10490
10502
|
set value(val) {
|
10491
10503
|
if (val === this.value) return;
|
10492
|
-
this.value = val;
|
10504
|
+
this.passwordInput.value = val;
|
10493
10505
|
}
|
10494
10506
|
|
10495
10507
|
get hasConfirm() {
|
@@ -10976,8 +10988,8 @@ class RawUploadFile extends BaseInputClass$3 {
|
|
10976
10988
|
</div>
|
10977
10989
|
<div class="description"></div>
|
10978
10990
|
<div class="button-wrapper">
|
10979
|
-
<input type="file" tabindex="-1" />
|
10980
|
-
<descope-button></descope-button>
|
10991
|
+
<input type="file" tabindex="-1" aria-labelledby="button"/>
|
10992
|
+
<descope-button id="button"></descope-button>
|
10981
10993
|
</div>
|
10982
10994
|
</div>
|
10983
10995
|
`;
|
@@ -16826,7 +16838,9 @@ class RawAlert extends createBaseClass$1({ componentName: componentName$1, baseS
|
|
16826
16838
|
|
16827
16839
|
this.slotEle.addEventListener('slotchange', this.handleSlotChange.bind(this));
|
16828
16840
|
|
16829
|
-
forwardAttrs$1(this, this.textComp,
|
16841
|
+
forwardAttrs$1(this, this.textComp, {
|
16842
|
+
includeAttrs: ['variant', 'full-width', 'link-target-blank'],
|
16843
|
+
});
|
16830
16844
|
}
|
16831
16845
|
|
16832
16846
|
handleSlotChange() {
|