@descope/web-components-ui 2.2.16 → 2.2.18
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 +30 -13
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +36 -19
- 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-recovery-codes.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +4 -4
- package/dist/umd/descope-user-attribute-index-js.js.LICENSE.txt +0 -6
- 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/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +29 -29
- package/src/components/descope-user-attribute/UserAttributeClass.js +26 -8
- package/src/components/descope-user-attribute/delete.svg +2 -2
- package/src/components/descope-user-attribute/edit.svg +2 -2
- package/src/components/descope-user-attribute/index.js +1 -1
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +1 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -14640,9 +14640,9 @@ var mappingsField$1 = /*#__PURE__*/Object.freeze({
|
|
|
14640
14640
|
vars: vars$x
|
|
14641
14641
|
});
|
|
14642
14642
|
|
|
14643
|
-
var deleteIcon = "data:image/svg+xml;base64,
|
|
14643
|
+
var deleteIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE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yNzIyIDIuNjI0MTVMMTIuNjE2MiA0LjExMjE1TDcuNzIwMTkgOS42ODAxNkM3LjUwNDE5IDkuOTIwMTYgNi44MzIxOSAxMC4yMzIyIDUuNjgwMTkgMTAuNjE2MkM1LjY1NjE5IDEwLjY0MDIgNS42MDgxOSAxMC42NDAyIDUuNTYwMTkgMTAuNjE2MkM1LjQ2NDE5IDEwLjU5MjIgNS4zOTIxOSAxMC40NzIyIDUuNDQwMTkgMTAuMzc2MkM1Ljc1MjE5IDkuMjQ4MTYgNi4wNDAxOSA4LjU1MjE2IDYuMjU2MTkgOC4zMTIxNkwxMS4yNzIyIDIuNjI0MTVaTTExLjkyMDIgMS44NTYxNUwxMy4yODgyIDAuMzIwMTQ5QzEzLjY0ODIgLTAuMDg3ODUxNiAxNC4yNzIyIC0wLjExMTg1MiAxNC42ODAyIDAuMjcyMTQ5QzE1LjA4ODIgMC42MzIxNDkgMTUuMTEyMiAxLjI4MDE1IDE0Ljc1MjIgMS42ODgxNUwxMy4yNjQyIDMuMzY4MTVMMTEuOTIwMiAxLjg1NjE1WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPgo=";
|
|
14646
14646
|
|
|
14647
14647
|
const componentName$x = getComponentName$1('user-attribute');
|
|
14648
14648
|
class RawUserAttribute extends createBaseClass({
|
|
@@ -14660,10 +14660,10 @@ class RawUserAttribute extends createBaseClass({
|
|
|
14660
14660
|
<div class="btn-wrapper">
|
|
14661
14661
|
<descope-badge mode="default" bordered="true" size="xs"></descope-badge>
|
|
14662
14662
|
<descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
|
|
14663
|
-
<
|
|
14663
|
+
<slot name="edit-icon"></slot>
|
|
14664
14664
|
</descope-button>
|
|
14665
14665
|
<descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
|
|
14666
|
-
<
|
|
14666
|
+
<slot name="delete-icon"></slot>
|
|
14667
14667
|
</descope-button>
|
|
14668
14668
|
</div>
|
|
14669
14669
|
</div>
|
|
@@ -14677,16 +14677,18 @@ class RawUserAttribute extends createBaseClass({
|
|
|
14677
14677
|
container-type: inline-size;
|
|
14678
14678
|
}
|
|
14679
14679
|
|
|
14680
|
-
vaadin-icon {
|
|
14681
|
-
color: currentcolor;
|
|
14682
|
-
}
|
|
14683
|
-
|
|
14684
14680
|
.root {
|
|
14685
14681
|
display: flex;
|
|
14686
14682
|
width: 100%;
|
|
14687
14683
|
height: 100%;
|
|
14688
14684
|
align-items: center;
|
|
14689
14685
|
}
|
|
14686
|
+
|
|
14687
|
+
::slotted(*) {
|
|
14688
|
+
display: flex;
|
|
14689
|
+
align-items: center;
|
|
14690
|
+
justify-content: center;
|
|
14691
|
+
}
|
|
14690
14692
|
|
|
14691
14693
|
@container (max-width: 529px) {
|
|
14692
14694
|
.root {
|
|
@@ -14826,6 +14828,22 @@ class RawUserAttribute extends createBaseClass({
|
|
|
14826
14828
|
this.editButton.addEventListener('click', () =>
|
|
14827
14829
|
this.dispatchEvent(new CustomEvent('edit-clicked', { bubbles: true, composed: true }))
|
|
14828
14830
|
);
|
|
14831
|
+
|
|
14832
|
+
this.setDefaultChildren();
|
|
14833
|
+
}
|
|
14834
|
+
|
|
14835
|
+
#addIcon(src, slotName) {
|
|
14836
|
+
const icon = document.createElement('descope-icon');
|
|
14837
|
+
icon.setAttribute('src', src);
|
|
14838
|
+
icon.setAttribute('src-dark', src);
|
|
14839
|
+
icon.setAttribute('slot', slotName);
|
|
14840
|
+
this.appendChild(icon);
|
|
14841
|
+
}
|
|
14842
|
+
|
|
14843
|
+
setDefaultChildren() {
|
|
14844
|
+
if (this.children.length) return;
|
|
14845
|
+
this.#addIcon(deleteIcon, 'delete-icon');
|
|
14846
|
+
this.#addIcon(editIcon, 'edit-icon');
|
|
14829
14847
|
}
|
|
14830
14848
|
|
|
14831
14849
|
static get observedAttributes() {
|
|
@@ -22205,7 +22223,6 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
|
22205
22223
|
init() {
|
|
22206
22224
|
super.init();
|
|
22207
22225
|
|
|
22208
|
-
|
|
22209
22226
|
this.icon.addEventListener('click', this.onCopy.bind(this));
|
|
22210
22227
|
|
|
22211
22228
|
forwardAttrs(this, this.iconWrapper, { includeAttrs: ['variant', 'mode'] });
|
|
@@ -22230,7 +22247,7 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
|
22230
22247
|
onReadOnly(isReadOnly) {
|
|
22231
22248
|
this.icon.classList.toggle('readonly', isReadOnly);
|
|
22232
22249
|
}
|
|
22233
|
-
|
|
22250
|
+
|
|
22234
22251
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
22235
22252
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
|
22236
22253
|
|
|
@@ -22251,20 +22268,20 @@ const RecoveryCodesClass = compose(
|
|
|
22251
22268
|
{ selector: () => ':host', property: 'direction' },
|
|
22252
22269
|
{
|
|
22253
22270
|
selector: () => TextClass.componentName,
|
|
22254
|
-
property: TextClass.cssVarList.hostDirection
|
|
22271
|
+
property: TextClass.cssVarList.hostDirection,
|
|
22255
22272
|
},
|
|
22256
22273
|
],
|
|
22257
22274
|
textAlign: { selector: () => '.list', property: 'align-items' },
|
|
22258
22275
|
iconColor: { selector: () => 'vaadin-icon', property: 'color' },
|
|
22259
22276
|
iconSize: { selector: () => 'vaadin-icon', property: 'font-size' },
|
|
22260
22277
|
iconGap: { selector: () => '.wrapper', property: 'gap' },
|
|
22261
|
-
bulletGap: { selector: () => 'descope-text span', property: 'gap' }
|
|
22278
|
+
bulletGap: { selector: () => 'descope-text span', property: 'gap' },
|
|
22262
22279
|
},
|
|
22263
22280
|
}),
|
|
22264
22281
|
createDynamicDataMixin$1({
|
|
22265
22282
|
itemRenderer: itemRenderer$2,
|
|
22266
22283
|
rerenderAttrsList: ['variant', 'mode'],
|
|
22267
|
-
targetSelector: '.list'
|
|
22284
|
+
targetSelector: '.list',
|
|
22268
22285
|
}),
|
|
22269
22286
|
draggableMixin$1,
|
|
22270
22287
|
componentNameValidationMixin$1,
|