@descope/web-components-ui 1.119.0 → 1.121.0
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 +46 -29
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +46 -29
- 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-passcode-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +4 -4
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
- package/package.json +1 -1
- package/src/components/descope-passcode/PasscodeClass.js +3 -1
- package/src/components/descope-user-attribute/UserAttributeClass.js +30 -21
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +3 -1
- package/src/theme/components/userAttribute.js +12 -6
- package/src/theme/components/userAuthMethod.js +3 -2
package/dist/cjs/index.cjs.js
CHANGED
@@ -7658,7 +7658,9 @@ const customMixin$b = (superclass) =>
|
|
7658
7658
|
|
7659
7659
|
this.inputElement = this.shadowRoot.querySelector(componentName$V);
|
7660
7660
|
|
7661
|
-
forwardAttrs$1(this, this.inputElement, {
|
7661
|
+
forwardAttrs$1(this, this.inputElement, {
|
7662
|
+
includeAttrs: ['digits', 'size', 'loading', 'disabled'],
|
7663
|
+
});
|
7662
7664
|
}
|
7663
7665
|
|
7664
7666
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
@@ -14426,20 +14428,19 @@ class RawUserAttribute extends createBaseClass({
|
|
14426
14428
|
|
14427
14429
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
14428
14430
|
<div class="root">
|
14429
|
-
<
|
14430
|
-
|
14431
|
+
<descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
|
14432
|
+
<div class="content-wrapper">
|
14431
14433
|
<descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
|
14434
|
+
<div class="btn-wrapper">
|
14435
|
+
<descope-badge mode="default" bordered="true" size="xs"></descope-badge>
|
14436
|
+
<descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
|
14437
|
+
<vaadin-icon src=${editIcon}></vaadin-icon>
|
14438
|
+
</descope-button>
|
14439
|
+
<descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
|
14440
|
+
<vaadin-icon src=${deleteIcon}></vaadin-icon>
|
14441
|
+
</descope-button>
|
14442
|
+
</div>
|
14432
14443
|
</div>
|
14433
|
-
|
14434
|
-
<div class="btn-wrapper">
|
14435
|
-
<descope-badge mode="default" bordered="true" size="xs"></descope-badge>
|
14436
|
-
<descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
|
14437
|
-
<vaadin-icon src=${editIcon}></vaadin-icon>
|
14438
|
-
</descope-button>
|
14439
|
-
<descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
|
14440
|
-
<vaadin-icon src=${deleteIcon}></vaadin-icon>
|
14441
|
-
</descope-button>
|
14442
|
-
</div
|
14443
14444
|
</div>
|
14444
14445
|
`;
|
14445
14446
|
|
@@ -14447,6 +14448,7 @@ class RawUserAttribute extends createBaseClass({
|
|
14447
14448
|
`
|
14448
14449
|
:host {
|
14449
14450
|
display: inline-flex;
|
14451
|
+
container-type: inline-size;
|
14450
14452
|
}
|
14451
14453
|
|
14452
14454
|
vaadin-icon {
|
@@ -14460,6 +14462,12 @@ class RawUserAttribute extends createBaseClass({
|
|
14460
14462
|
align-items: center;
|
14461
14463
|
}
|
14462
14464
|
|
14465
|
+
@container (max-width: 529px) {
|
14466
|
+
.root {
|
14467
|
+
flex-wrap: wrap;
|
14468
|
+
}
|
14469
|
+
}
|
14470
|
+
|
14463
14471
|
.btn-wrapper {
|
14464
14472
|
display: flex;
|
14465
14473
|
justify-content: space-between;
|
@@ -14467,10 +14475,10 @@ class RawUserAttribute extends createBaseClass({
|
|
14467
14475
|
flex-grow: 0;
|
14468
14476
|
}
|
14469
14477
|
|
14470
|
-
.
|
14478
|
+
.content-wrapper {
|
14471
14479
|
display: flex;
|
14472
|
-
align-items: center;
|
14473
14480
|
flex-grow: 1;
|
14481
|
+
align-items: center;
|
14474
14482
|
}
|
14475
14483
|
|
14476
14484
|
descope-text::part(text-wrapper) {
|
@@ -14482,10 +14490,13 @@ class RawUserAttribute extends createBaseClass({
|
|
14482
14490
|
|
14483
14491
|
descope-text {
|
14484
14492
|
display: inline-flex;
|
14493
|
+
max-width: 100%;
|
14494
|
+
min-width: 0;
|
14485
14495
|
}
|
14486
14496
|
|
14487
14497
|
.label {
|
14488
|
-
flex-grow:
|
14498
|
+
flex-grow: 1;
|
14499
|
+
width: 100%;
|
14489
14500
|
}
|
14490
14501
|
|
14491
14502
|
.value {
|
@@ -14631,14 +14642,13 @@ class RawUserAttribute extends createBaseClass({
|
|
14631
14642
|
}
|
14632
14643
|
}
|
14633
14644
|
|
14634
|
-
const { host: host$9, textFields, buttons: buttons$1, badge: badge$1, labelText,
|
14645
|
+
const { host: host$9, textFields, buttons: buttons$1, badge: badge$1, labelText, contentWrapper } = {
|
14635
14646
|
host: { selector: () => ':host' },
|
14636
14647
|
textFields: { selector: 'descope-text' },
|
14637
|
-
valueText: { selector: 'descope-text[data-id="value-text"]' },
|
14638
14648
|
labelText: { selector: 'descope-text[data-id="label-text"]' },
|
14639
14649
|
buttons: { selector: 'descope-button' },
|
14640
14650
|
badge: { selector: 'descope-badge' },
|
14641
|
-
|
14651
|
+
contentWrapper: { selector: ' .content-wrapper' },
|
14642
14652
|
};
|
14643
14653
|
|
14644
14654
|
const UserAttributeClass = compose$1(
|
@@ -14646,16 +14656,17 @@ const UserAttributeClass = compose$1(
|
|
14646
14656
|
mappings: {
|
14647
14657
|
hostWidth: { ...host$9, property: 'width' },
|
14648
14658
|
hostMinWidth: { ...host$9, property: 'min-width' },
|
14659
|
+
hostMaxWidth: { ...host$9, property: 'max-width' },
|
14649
14660
|
hostDirection: [
|
14650
14661
|
{ ...host$9, property: 'direction' },
|
14651
14662
|
{ ...textFields, property: TextClass.cssVarList.hostDirection },
|
14652
14663
|
{ ...buttons$1, property: ButtonClass.cssVarList.hostDirection },
|
14653
14664
|
{ ...badge$1, property: BadgeClass.cssVarList.hostDirection },
|
14654
14665
|
],
|
14655
|
-
|
14656
|
-
|
14666
|
+
labelMinWidth: { ...labelText, property: 'min-width' },
|
14667
|
+
contentMinWidth: { ...contentWrapper, property: 'min-width' },
|
14657
14668
|
badgeMaxWidth: { ...badge$1, property: 'max-width' },
|
14658
|
-
itemsGap: [{ property: 'gap' }, { ...
|
14669
|
+
itemsGap: [{ property: 'gap' }, { ...contentWrapper, property: 'gap' }],
|
14659
14670
|
},
|
14660
14671
|
}),
|
14661
14672
|
draggableMixin,
|
@@ -14666,12 +14677,15 @@ const globalRefs$i = getThemeRefs(globals$1);
|
|
14666
14677
|
const vars$t = UserAttributeClass.cssVarList;
|
14667
14678
|
|
14668
14679
|
const userAttribute = {
|
14680
|
+
[vars$t.labelMinWidth]: '150px',
|
14669
14681
|
[vars$t.hostDirection]: globalRefs$i.direction,
|
14670
|
-
[vars$t.
|
14671
|
-
[vars$t.valueTextWidth]: '200px',
|
14682
|
+
[vars$t.contentMinWidth]: `calc(100% - ${useVar(vars$t.labelMinWidth)})`,
|
14672
14683
|
[vars$t.badgeMaxWidth]: '85px',
|
14673
|
-
[vars$t.itemsGap]: '
|
14674
|
-
[vars$t.hostMinWidth]: '
|
14684
|
+
[vars$t.itemsGap]: '4px',
|
14685
|
+
[vars$t.hostMinWidth]: '310px',
|
14686
|
+
[vars$t.hostWidth]: '530px',
|
14687
|
+
[vars$t.hostMaxWidth]: '100%',
|
14688
|
+
|
14675
14689
|
_fullWidth: {
|
14676
14690
|
[vars$t.hostWidth]: '100%',
|
14677
14691
|
},
|
@@ -14743,6 +14757,7 @@ class RawUserAuthMethod extends createBaseClass({
|
|
14743
14757
|
display: flex;
|
14744
14758
|
align-items: center;
|
14745
14759
|
flex-grow: 1;
|
14760
|
+
min-width: 0;
|
14746
14761
|
}
|
14747
14762
|
|
14748
14763
|
descope-text::part(text-wrapper) {
|
@@ -14754,6 +14769,7 @@ class RawUserAuthMethod extends createBaseClass({
|
|
14754
14769
|
|
14755
14770
|
descope-text {
|
14756
14771
|
display: inline-flex;
|
14772
|
+
min-width: 0;
|
14757
14773
|
}
|
14758
14774
|
|
14759
14775
|
.status-indicator {
|
@@ -14917,13 +14933,13 @@ const UserAuthMethodClass = compose$1(
|
|
14917
14933
|
mappings: {
|
14918
14934
|
hostWidth: { ...host$8, property: 'width' },
|
14919
14935
|
hostMinWidth: { ...host$8, property: 'min-width' },
|
14936
|
+
hostMaxWidth: { ...host$8, property: 'max-width' },
|
14920
14937
|
hostDirection: [
|
14921
14938
|
{ ...host$8, property: 'direction' },
|
14922
14939
|
{ ...textField, property: TextClass.cssVarList.hostDirection },
|
14923
14940
|
{ ...buttons, property: ButtonClass.cssVarList.hostDirection },
|
14924
14941
|
{ ...badge, property: BadgeClass.cssVarList.hostDirection },
|
14925
14942
|
],
|
14926
|
-
labelTextWidth: { ...textField, property: 'width' },
|
14927
14943
|
itemsGap: [{ property: 'gap' }, { ...textWrapper, property: 'gap' }],
|
14928
14944
|
iconSize: [
|
14929
14945
|
{ ...methodIconSlot, property: 'width' },
|
@@ -14941,9 +14957,10 @@ const vars$s = UserAuthMethodClass.cssVarList;
|
|
14941
14957
|
|
14942
14958
|
const userAuthMethod = {
|
14943
14959
|
[vars$s.hostDirection]: globalRefs$h.direction,
|
14944
|
-
[vars$s.labelTextWidth]: '200px',
|
14945
14960
|
[vars$s.itemsGap]: '16px',
|
14946
|
-
[vars$s.hostMinWidth]: '
|
14961
|
+
[vars$s.hostMinWidth]: '310px',
|
14962
|
+
[vars$s.hostWidth]: '530px',
|
14963
|
+
[vars$s.hostMaxWidth]: '100%',
|
14947
14964
|
[vars$s.iconSize]: '24px',
|
14948
14965
|
[vars$s.iconColor]: 'currentcolor',
|
14949
14966
|
_fullWidth: {
|