@descope/web-components-ui 1.111.0 → 1.113.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 +116 -50
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +124 -57
- 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/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
- package/dist/umd/descope-button.js +1 -1
- package/dist/umd/descope-button.js.map +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js.map +1 -1
- package/dist/umd/descope-outbound-apps.js +1 -1
- package/dist/umd/descope-outbound-apps.js.map +1 -1
- package/dist/umd/descope-timer-button.js +1 -1
- package/dist/umd/descope-timer-button.js.map +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +4 -4
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -1
- package/package.json +4 -4
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +72 -18
package/dist/index.esm.js
CHANGED
@@ -1385,7 +1385,7 @@ const createProxy$1 = ({
|
|
1385
1385
|
return ProxyClass;
|
1386
1386
|
};
|
1387
1387
|
|
1388
|
-
const observedAttributes$
|
1388
|
+
const observedAttributes$8 = ['required', 'pattern'];
|
1389
1389
|
|
1390
1390
|
const errorAttributes$1 = {
|
1391
1391
|
valueMissing: 'data-errormessage-value-missing',
|
@@ -1404,7 +1404,7 @@ const inputValidationMixin$1 = (superclass) =>
|
|
1404
1404
|
#validationTarget = validationTargetSymbol$1;
|
1405
1405
|
|
1406
1406
|
static get observedAttributes() {
|
1407
|
-
return [...(superclass.observedAttributes || []), ...observedAttributes$
|
1407
|
+
return [...(superclass.observedAttributes || []), ...observedAttributes$8];
|
1408
1408
|
}
|
1409
1409
|
|
1410
1410
|
static get formAssociated() {
|
@@ -1582,7 +1582,7 @@ const inputValidationMixin$1 = (superclass) =>
|
|
1582
1582
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
1583
1583
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
1584
1584
|
|
1585
|
-
if (observedAttributes$
|
1585
|
+
if (observedAttributes$8.includes(attrName)) {
|
1586
1586
|
this.#setValidity();
|
1587
1587
|
}
|
1588
1588
|
}
|
@@ -3661,7 +3661,7 @@ const inputEventsDispatchingMixin = (superclass) =>
|
|
3661
3661
|
}
|
3662
3662
|
};
|
3663
3663
|
|
3664
|
-
const observedAttributes$
|
3664
|
+
const observedAttributes$7 = ['required', 'pattern'];
|
3665
3665
|
|
3666
3666
|
const errorAttributes = {
|
3667
3667
|
valueMissing: 'data-errormessage-value-missing',
|
@@ -3680,7 +3680,7 @@ const inputValidationMixin = (superclass) =>
|
|
3680
3680
|
#validationTarget = validationTargetSymbol;
|
3681
3681
|
|
3682
3682
|
static get observedAttributes() {
|
3683
|
-
return [...(superclass.observedAttributes || []), ...observedAttributes$
|
3683
|
+
return [...(superclass.observedAttributes || []), ...observedAttributes$7];
|
3684
3684
|
}
|
3685
3685
|
|
3686
3686
|
static get formAssociated() {
|
@@ -3883,7 +3883,7 @@ const inputValidationMixin = (superclass) =>
|
|
3883
3883
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
3884
3884
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
3885
3885
|
|
3886
|
-
if (observedAttributes$
|
3886
|
+
if (observedAttributes$7.includes(attrName)) {
|
3887
3887
|
this.#setValidity();
|
3888
3888
|
}
|
3889
3889
|
}
|
@@ -5558,7 +5558,7 @@ const ButtonClass = compose(
|
|
5558
5558
|
padding: 0;
|
5559
5559
|
}
|
5560
5560
|
`,
|
5561
|
-
excludeAttrsSync: ['tabindex'],
|
5561
|
+
excludeAttrsSync: ['tabindex', 'class'],
|
5562
5562
|
componentName: componentName$19,
|
5563
5563
|
})
|
5564
5564
|
);
|
@@ -8271,7 +8271,7 @@ const toggleMaskVisibility = (input, value) => {
|
|
8271
8271
|
|
8272
8272
|
const componentName$_ = getComponentName$1('passcode-internal');
|
8273
8273
|
|
8274
|
-
const observedAttributes$
|
8274
|
+
const observedAttributes$6 = ['digits', 'loading'];
|
8275
8275
|
|
8276
8276
|
const forwardAttributes = [
|
8277
8277
|
'disabled',
|
@@ -8286,7 +8286,7 @@ const BaseInputClass$a = createBaseInputClass$1({ componentName: componentName$_
|
|
8286
8286
|
|
8287
8287
|
class PasscodeInternal extends BaseInputClass$a {
|
8288
8288
|
static get observedAttributes() {
|
8289
|
-
return observedAttributes$
|
8289
|
+
return observedAttributes$6.concat(BaseInputClass$a.observedAttributes || []);
|
8290
8290
|
}
|
8291
8291
|
|
8292
8292
|
constructor() {
|
@@ -8480,7 +8480,7 @@ class PasscodeInternal extends BaseInputClass$a {
|
|
8480
8480
|
|
8481
8481
|
// sync attributes to inputs
|
8482
8482
|
if (oldValue !== newValue) {
|
8483
|
-
if (observedAttributes$
|
8483
|
+
if (observedAttributes$6.includes(attrName)) {
|
8484
8484
|
if (attrName === 'digits') {
|
8485
8485
|
this.renderInputs();
|
8486
8486
|
}
|
@@ -8498,12 +8498,12 @@ class PasscodeInternal extends BaseInputClass$a {
|
|
8498
8498
|
|
8499
8499
|
const componentName$Z = getComponentName$1('passcode');
|
8500
8500
|
|
8501
|
-
const observedAttributes$
|
8501
|
+
const observedAttributes$5 = ['digits'];
|
8502
8502
|
|
8503
8503
|
const customMixin$c = (superclass) =>
|
8504
8504
|
class PasscodeMixinClass extends superclass {
|
8505
8505
|
static get observedAttributes() {
|
8506
|
-
return observedAttributes$
|
8506
|
+
return observedAttributes$5.concat(superclass.observedAttributes || []);
|
8507
8507
|
}
|
8508
8508
|
|
8509
8509
|
get digits() {
|
@@ -11083,7 +11083,7 @@ const matchingParenthesis = (val) => {
|
|
11083
11083
|
|
11084
11084
|
const componentName$U = getComponentName$1('phone-field-internal-input-box');
|
11085
11085
|
|
11086
|
-
const observedAttributes$
|
11086
|
+
const observedAttributes$4 = [
|
11087
11087
|
'disabled',
|
11088
11088
|
'size',
|
11089
11089
|
'readonly',
|
@@ -11101,7 +11101,7 @@ const BaseInputClass$8 = createBaseInputClass$1({ componentName: componentName$U
|
|
11101
11101
|
|
11102
11102
|
class PhoneFieldInternal extends BaseInputClass$8 {
|
11103
11103
|
static get observedAttributes() {
|
11104
|
-
return [].concat(BaseInputClass$8.observedAttributes || [], observedAttributes$
|
11104
|
+
return [].concat(BaseInputClass$8.observedAttributes || [], observedAttributes$4);
|
11105
11105
|
}
|
11106
11106
|
|
11107
11107
|
#ayt;
|
@@ -11221,7 +11221,7 @@ class PhoneFieldInternal extends BaseInputClass$8 {
|
|
11221
11221
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
11222
11222
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
11223
11223
|
|
11224
|
-
if (oldValue !== newValue && observedAttributes$
|
11224
|
+
if (oldValue !== newValue && observedAttributes$4.includes(attrName)) {
|
11225
11225
|
const attr = mapAttrs[attrName] || attrName;
|
11226
11226
|
this.textField.setAttribute(attr, newValue);
|
11227
11227
|
}
|
@@ -12373,7 +12373,7 @@ customElements.define(componentName$Q, NewPasswordClass);
|
|
12373
12373
|
|
12374
12374
|
const componentName$P = getComponentName$1('recaptcha');
|
12375
12375
|
|
12376
|
-
const observedAttributes$
|
12376
|
+
const observedAttributes$3 = ['enabled', 'site-key', 'action', 'enterprise'];
|
12377
12377
|
|
12378
12378
|
const BaseClass$4 = createBaseClass$1({
|
12379
12379
|
componentName: componentName$P,
|
@@ -12381,7 +12381,7 @@ const BaseClass$4 = createBaseClass$1({
|
|
12381
12381
|
});
|
12382
12382
|
class RawRecaptcha extends BaseClass$4 {
|
12383
12383
|
static get observedAttributes() {
|
12384
|
-
return observedAttributes$
|
12384
|
+
return observedAttributes$3.concat(BaseClass$4.observedAttributes || []);
|
12385
12385
|
}
|
12386
12386
|
|
12387
12387
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
@@ -12617,7 +12617,7 @@ const getFilename = (fileObj) => {
|
|
12617
12617
|
|
12618
12618
|
const componentName$O = getComponentName$1('upload-file');
|
12619
12619
|
|
12620
|
-
const observedAttributes$
|
12620
|
+
const observedAttributes$2 = [
|
12621
12621
|
'title',
|
12622
12622
|
'description',
|
12623
12623
|
'button-label',
|
@@ -12634,7 +12634,7 @@ const BaseInputClass$6 = createBaseInputClass$1({ componentName: componentName$O
|
|
12634
12634
|
|
12635
12635
|
class RawUploadFile extends BaseInputClass$6 {
|
12636
12636
|
static get observedAttributes() {
|
12637
|
-
return observedAttributes$
|
12637
|
+
return observedAttributes$2.concat(BaseInputClass$6.observedAttributes || []);
|
12638
12638
|
}
|
12639
12639
|
|
12640
12640
|
constructor() {
|
@@ -16308,10 +16308,13 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16308
16308
|
</div>
|
16309
16309
|
|
16310
16310
|
<div class="btn-wrapper">
|
16311
|
-
<descope-button size="sm" variant="link" mode="primary">
|
16311
|
+
<descope-button class="btn unfulfilled hidden" size="sm" variant="link" mode="primary">
|
16312
16312
|
<slot name="button-icon"></slot>
|
16313
16313
|
</descope-button>
|
16314
|
-
<
|
16314
|
+
<descope-button class="btn fulfilled hidden" size="sm" variant="link" mode="primary">
|
16315
|
+
<slot name="fulfilled-button-icon"></slot>
|
16316
|
+
</descope-button>
|
16317
|
+
<div class="status-indicator hidden">
|
16315
16318
|
<vaadin-icon src=${greenVIcon}></vaadin-icon>
|
16316
16319
|
</div>
|
16317
16320
|
<descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>
|
@@ -16360,7 +16363,7 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16360
16363
|
display: inline-flex;
|
16361
16364
|
}
|
16362
16365
|
|
16363
|
-
.
|
16366
|
+
.status-indicator {
|
16364
16367
|
width: 1em;
|
16365
16368
|
height: 1em;
|
16366
16369
|
display: flex;
|
@@ -16375,6 +16378,8 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16375
16378
|
.hidden-btn {
|
16376
16379
|
width: 0;
|
16377
16380
|
overflow: hidden;
|
16381
|
+
opacity: 0;
|
16382
|
+
pointer-events: none;
|
16378
16383
|
}
|
16379
16384
|
|
16380
16385
|
slot[name="method-icon"]{
|
@@ -16385,8 +16390,9 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16385
16390
|
this
|
16386
16391
|
);
|
16387
16392
|
|
16388
|
-
this.
|
16389
|
-
this.
|
16393
|
+
this.unfulfilledButton = this.shadowRoot.querySelector('.btn.unfulfilled');
|
16394
|
+
this.fulfilledButton = this.shadowRoot.querySelector('.btn.fulfilled');
|
16395
|
+
this.statusIndicator = this.shadowRoot.querySelector('.status-indicator');
|
16390
16396
|
this.labelText = this.shadowRoot.querySelector('descope-text[data-id="label-text"]');
|
16391
16397
|
}
|
16392
16398
|
|
@@ -16395,49 +16401,91 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16395
16401
|
this.labelText.setAttribute('title', this.label);
|
16396
16402
|
}
|
16397
16403
|
|
16398
|
-
|
16399
|
-
let textSpanEle =
|
16404
|
+
updateButtonLabel(btnRef, label) {
|
16405
|
+
let textSpanEle = btnRef.querySelector('span');
|
16400
16406
|
|
16401
|
-
if (
|
16407
|
+
if (label) {
|
16402
16408
|
if (!textSpanEle) {
|
16403
16409
|
textSpanEle = document.createElement('span');
|
16404
|
-
|
16410
|
+
btnRef.appendChild(textSpanEle);
|
16405
16411
|
}
|
16406
|
-
textSpanEle.innerText =
|
16412
|
+
textSpanEle.innerText = label;
|
16407
16413
|
} else if (textSpanEle) {
|
16408
|
-
|
16414
|
+
btnRef.removeChild(textSpanEle);
|
16409
16415
|
}
|
16410
16416
|
}
|
16411
16417
|
|
16412
16418
|
onFulfilledChange() {
|
16413
|
-
|
16414
|
-
|
16419
|
+
if (this.isFulfilled) {
|
16420
|
+
this.unfulfilledButton.classList.add('hidden');
|
16421
|
+
this.handleFulfilled();
|
16422
|
+
} else {
|
16423
|
+
this.fulfilledButton.classList.add('hidden');
|
16424
|
+
this.handleUnfulfilled();
|
16425
|
+
}
|
16426
|
+
}
|
16427
|
+
|
16428
|
+
handleFulfilled() {
|
16429
|
+
this.fulfilledButton.classList.toggle('hidden', !this.isFulfilledEditable);
|
16430
|
+
this.statusIndicator.classList.toggle('hidden', this.isFulfilledEditable);
|
16431
|
+
}
|
16432
|
+
|
16433
|
+
handleUnfulfilled() {
|
16434
|
+
this.unfulfilledButton.classList.toggle('hidden', !this.isUnfulfilledEditable);
|
16435
|
+
this.statusIndicator.classList.toggle('hidden', this.isUnfulfilledEditable);
|
16415
16436
|
}
|
16416
16437
|
|
16417
16438
|
get label() {
|
16418
16439
|
return this.getAttribute('label') || '';
|
16419
16440
|
}
|
16420
16441
|
|
16421
|
-
get
|
16442
|
+
get unfulfilledButtonLabel() {
|
16422
16443
|
return this.getAttribute('button-label') || '';
|
16423
16444
|
}
|
16424
16445
|
|
16446
|
+
get fulfilledButtonLabel() {
|
16447
|
+
return this.getAttribute('fulfilled-button-label') || '';
|
16448
|
+
}
|
16449
|
+
|
16425
16450
|
get isFulfilled() {
|
16426
16451
|
return this.getAttribute('fulfilled') === 'true';
|
16427
16452
|
}
|
16428
16453
|
|
16454
|
+
get isFulfilledEditable() {
|
16455
|
+
return this.getAttribute('fulfilled-editable') === 'true';
|
16456
|
+
}
|
16457
|
+
|
16458
|
+
get isUnfulfilledEditable() {
|
16459
|
+
// this is to keep backward compatibility with previous versions
|
16460
|
+
return this.getAttribute('unfulfilled-editable') !== 'false';
|
16461
|
+
}
|
16462
|
+
|
16429
16463
|
init() {
|
16430
16464
|
this.onLabelChange();
|
16431
|
-
this.
|
16465
|
+
this.updateButtonLabel(this.fulfilledButton, this.fulfilledButtonLabel);
|
16466
|
+
this.updateButtonLabel(this.unfulfilledButton, this.unfulfilledButtonLabel);
|
16432
16467
|
this.onFulfilledChange();
|
16433
16468
|
|
16434
|
-
this.
|
16469
|
+
this.unfulfilledButton.addEventListener('click', () =>
|
16435
16470
|
this.dispatchEvent(new CustomEvent('button-clicked', { bubbles: true, composed: true }))
|
16436
16471
|
);
|
16472
|
+
|
16473
|
+
this.fulfilledButton.addEventListener('click', () => {
|
16474
|
+
this.dispatchEvent(
|
16475
|
+
new CustomEvent('fulfilled-button-clicked', { bubbles: true, composed: true })
|
16476
|
+
);
|
16477
|
+
});
|
16437
16478
|
}
|
16438
16479
|
|
16439
16480
|
static get observedAttributes() {
|
16440
|
-
return [
|
16481
|
+
return [
|
16482
|
+
'label',
|
16483
|
+
'fulfilled',
|
16484
|
+
'button-label',
|
16485
|
+
'fulfilled-button-label',
|
16486
|
+
'fulfilled-editable',
|
16487
|
+
'unfulfilled-editable',
|
16488
|
+
].concat(super.observedAttributes);
|
16441
16489
|
}
|
16442
16490
|
|
16443
16491
|
attributeChangedCallback(name, oldValue, newValue) {
|
@@ -16451,7 +16499,13 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
16451
16499
|
} else if (name === 'fulfilled') {
|
16452
16500
|
this.onFulfilledChange();
|
16453
16501
|
} else if (name === 'button-label') {
|
16454
|
-
this.
|
16502
|
+
this.updateButtonLabel(this.unfulfilledButton, this.unfulfilledButtonLabel);
|
16503
|
+
} else if (name === 'fulfilled-button-label') {
|
16504
|
+
this.updateButtonLabel(this.fulfilledButton, this.fulfilledButtonLabel);
|
16505
|
+
} else if (name === 'fulfilled-editable' && this.isFulfilled) {
|
16506
|
+
this.handleFulfilled();
|
16507
|
+
} else if (name === 'unfulfilled-editable' && !this.isFulfilled) {
|
16508
|
+
this.handleUnfulfilled();
|
16455
16509
|
}
|
16456
16510
|
}
|
16457
16511
|
}
|
@@ -18795,12 +18849,12 @@ customElements.define(componentName$f, AlertClass);
|
|
18795
18849
|
|
18796
18850
|
const componentName$e = getComponentName$1('hcaptcha');
|
18797
18851
|
|
18798
|
-
const observedAttributes$
|
18852
|
+
const observedAttributes$1 = ['enabled', 'site-key'];
|
18799
18853
|
|
18800
18854
|
const BaseInputClass$2 = createBaseInputClass$1({ componentName: componentName$e, baseSelector: ':host > div' });
|
18801
18855
|
class RawHcaptcha extends BaseInputClass$2 {
|
18802
18856
|
static get observedAttributes() {
|
18803
|
-
return observedAttributes$
|
18857
|
+
return observedAttributes$1.concat(BaseInputClass$2.observedAttributes || []);
|
18804
18858
|
}
|
18805
18859
|
|
18806
18860
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
@@ -23363,7 +23417,7 @@ const formatTime = (ms = 0) => {
|
|
23363
23417
|
|
23364
23418
|
const componentName$5 = getComponentName('timer');
|
23365
23419
|
|
23366
|
-
const observedAttributes
|
23420
|
+
const observedAttributes = ['seconds', 'hide-icon', 'paused'];
|
23367
23421
|
|
23368
23422
|
const BaseClass$2 = createBaseClass({
|
23369
23423
|
componentName: componentName$5,
|
@@ -23378,7 +23432,7 @@ class RawTimer extends BaseClass$2 {
|
|
23378
23432
|
#intervalId;
|
23379
23433
|
|
23380
23434
|
static get observedAttributes() {
|
23381
|
-
return observedAttributes
|
23435
|
+
return observedAttributes.concat(BaseClass$2.observedAttributes || []);
|
23382
23436
|
}
|
23383
23437
|
|
23384
23438
|
constructor() {
|
@@ -24484,8 +24538,6 @@ var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
|
|
24484
24538
|
|
24485
24539
|
const componentName = getComponentName('outbound-apps');
|
24486
24540
|
|
24487
|
-
const observedAttributes = ['connect-button-label', 'disconnect-button-label', 'data'];
|
24488
|
-
|
24489
24541
|
const itemRenderer = (
|
24490
24542
|
{ name, description, logo, appId, isConnected },
|
24491
24543
|
_,
|
@@ -24500,22 +24552,21 @@ const itemRenderer = (
|
|
24500
24552
|
size=${ref.size}
|
24501
24553
|
class="app-logo"
|
24502
24554
|
></descope-avatar>
|
24503
|
-
|
24504
|
-
<div class="
|
24555
|
+
|
24556
|
+
<div class="content">
|
24505
24557
|
<descope-text
|
24558
|
+
class="app-title"
|
24506
24559
|
variant="subtitle1"
|
24507
24560
|
mode="primary"
|
24508
24561
|
>${name}</descope-text>
|
24509
|
-
</div>
|
24510
24562
|
${
|
24511
24563
|
description
|
24512
24564
|
? `
|
24513
|
-
<div class="app-description">
|
24514
24565
|
<descope-text
|
24566
|
+
class="app-description"
|
24515
24567
|
variant="body2"
|
24516
24568
|
mode="primary"
|
24517
24569
|
>${description}</descope-text>
|
24518
|
-
</div>
|
24519
24570
|
`
|
24520
24571
|
: ''
|
24521
24572
|
}
|
@@ -24535,15 +24586,13 @@ const BaseClass = createBaseClass({
|
|
24535
24586
|
});
|
24536
24587
|
|
24537
24588
|
class RawOutboundAppsClass extends BaseClass {
|
24538
|
-
static get observedAttributes() {
|
24539
|
-
return observedAttributes;
|
24540
|
-
}
|
24541
|
-
|
24542
24589
|
constructor() {
|
24543
24590
|
super();
|
24544
24591
|
|
24545
24592
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
24546
|
-
<descope-list
|
24593
|
+
<descope-list>
|
24594
|
+
<slot name="empty-state" slot="empty-state"></slot>
|
24595
|
+
</descope-list>
|
24547
24596
|
`;
|
24548
24597
|
|
24549
24598
|
this.appsList = this.shadowRoot.querySelector('descope-list');
|
@@ -24560,6 +24609,13 @@ class RawOutboundAppsClass extends BaseClass {
|
|
24560
24609
|
}
|
24561
24610
|
.content {
|
24562
24611
|
flex-grow: 1;
|
24612
|
+
display: flex;
|
24613
|
+
flex-direction: column;
|
24614
|
+
}
|
24615
|
+
.app-title,
|
24616
|
+
.app-description {
|
24617
|
+
display: flex;
|
24618
|
+
direction: inherit;
|
24563
24619
|
}
|
24564
24620
|
descope-list {
|
24565
24621
|
display: block;
|
@@ -24577,11 +24633,17 @@ class RawOutboundAppsClass extends BaseClass {
|
|
24577
24633
|
this.appsList.addEventListener('click', this.onAppsListClick.bind(this));
|
24578
24634
|
}
|
24579
24635
|
|
24636
|
+
get readonly() {
|
24637
|
+
return this.getAttribute('readonly') === 'true';
|
24638
|
+
}
|
24639
|
+
|
24580
24640
|
onAppsListClick(e) {
|
24581
|
-
|
24582
|
-
|
24583
|
-
|
24584
|
-
|
24641
|
+
if (!this.readonly) {
|
24642
|
+
const id = e.srcElement.getAttribute('data-outbound-app-id');
|
24643
|
+
const action = e.srcElement.getAttribute('data-action');
|
24644
|
+
if (id && action) {
|
24645
|
+
this.dispatchEvent(new CustomEvent(`${action}-clicked`, { bubbles: true, detail: { id, action } }));
|
24646
|
+
}
|
24585
24647
|
}
|
24586
24648
|
}
|
24587
24649
|
|
@@ -24632,6 +24694,10 @@ const OutboundAppsClass = compose(
|
|
24632
24694
|
selector: () => ' .app-logo',
|
24633
24695
|
property: 'margin-inline-end'
|
24634
24696
|
},
|
24697
|
+
contentGap: {
|
24698
|
+
selector: () => ' .content',
|
24699
|
+
property: 'gap'
|
24700
|
+
},
|
24635
24701
|
itemsTextAlign: {
|
24636
24702
|
selector: TextClass.componentName,
|
24637
24703
|
property: TextClass.cssVarList.textAlign,
|
@@ -24689,6 +24755,7 @@ const outboundApps = {
|
|
24689
24755
|
|
24690
24756
|
[vars$1.appLogoBackgroundColor]: 'none',
|
24691
24757
|
[vars$1.appLogoGap]: globals.spacing.md,
|
24758
|
+
[vars$1.contentGap]: globals.spacing.xs,
|
24692
24759
|
|
24693
24760
|
// list-item overrides
|
24694
24761
|
[vars$1.itemCursor]: 'default',
|