@descope/web-components-ui 1.101.0 → 1.103.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 +31 -13
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +32 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/8961.js +1 -1
- package/dist/umd/8961.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/dist/umd/descope-recovery-codes.js +1 -1
- package/dist/umd/descope-recovery-codes.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.map +1 -1
- package/package.json +15 -15
- package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +1 -1
package/dist/cjs/index.cjs.js
CHANGED
@@ -2632,7 +2632,6 @@ const createDynamicDataMixin$1 =
|
|
2632
2632
|
slotName,
|
2633
2633
|
rerenderAttrsList = [],
|
2634
2634
|
targetSelector,
|
2635
|
-
sortFn
|
2636
2635
|
}) =>
|
2637
2636
|
(superclass) =>
|
2638
2637
|
class DynamicDataMixinClass extends superclass {
|
@@ -2672,7 +2671,7 @@ const createDynamicDataMixin$1 =
|
|
2672
2671
|
|
2673
2672
|
set data(value) {
|
2674
2673
|
if (this.#validateSchema(value)) {
|
2675
|
-
this.#data =
|
2674
|
+
this.#data = value;
|
2676
2675
|
this.#renderItems();
|
2677
2676
|
}
|
2678
2677
|
}
|
@@ -21325,8 +21324,6 @@ var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
|
|
21325
21324
|
vars: vars$2
|
21326
21325
|
});
|
21327
21326
|
|
21328
|
-
const sortData = (a, b) => a.value.localeCompare(b.value);
|
21329
|
-
|
21330
21327
|
const componentName$2 = getComponentName('recovery-codes');
|
21331
21328
|
|
21332
21329
|
const itemRenderer = ({ value }, _, ref) => {
|
@@ -21341,6 +21338,10 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
21341
21338
|
componentName: componentName$2,
|
21342
21339
|
baseSelector: ':host > div',
|
21343
21340
|
}) {
|
21341
|
+
static get observedAttributes() {
|
21342
|
+
return ['readonly'];
|
21343
|
+
}
|
21344
|
+
|
21344
21345
|
constructor() {
|
21345
21346
|
super();
|
21346
21347
|
|
@@ -21353,6 +21354,10 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
21353
21354
|
</div>
|
21354
21355
|
`;
|
21355
21356
|
|
21357
|
+
this.list = this.shadowRoot.querySelector('.list');
|
21358
|
+
this.icon = this.shadowRoot.querySelector('.icon');
|
21359
|
+
this.iconWrapper = this.shadowRoot.querySelector('.icon-wrapper');
|
21360
|
+
|
21356
21361
|
injectStyle(
|
21357
21362
|
`
|
21358
21363
|
:host {
|
@@ -21377,14 +21382,17 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
21377
21382
|
content: '\\02022';
|
21378
21383
|
transform: translateY(-0.06em);
|
21379
21384
|
}
|
21380
|
-
|
21385
|
+
.icon-wrapper {
|
21386
|
+
align-self: flex-start;
|
21387
|
+
}
|
21388
|
+
.icon {
|
21381
21389
|
cursor: pointer;
|
21382
21390
|
}
|
21383
|
-
.copied {
|
21391
|
+
.icon.copied {
|
21384
21392
|
cursor: initial;
|
21385
21393
|
}
|
21386
|
-
.icon
|
21387
|
-
|
21394
|
+
.icon.readonly {
|
21395
|
+
pointer-events: none;
|
21388
21396
|
}
|
21389
21397
|
`,
|
21390
21398
|
this,
|
@@ -21402,9 +21410,6 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
21402
21410
|
init() {
|
21403
21411
|
super.init();
|
21404
21412
|
|
21405
|
-
this.list = this.shadowRoot.querySelector('.list');
|
21406
|
-
this.icon = this.shadowRoot.querySelector('.icon');
|
21407
|
-
this.iconWrapper = this.shadowRoot.querySelector('.icon-wrapper');
|
21408
21413
|
|
21409
21414
|
this.icon.addEventListener('click', this.onCopy.bind(this));
|
21410
21415
|
|
@@ -21426,6 +21431,20 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
21426
21431
|
this.icon.classList.remove('copied');
|
21427
21432
|
}, 5000);
|
21428
21433
|
}
|
21434
|
+
|
21435
|
+
onReadOnly(isReadOnly) {
|
21436
|
+
this.icon.classList.toggle('readonly', isReadOnly);
|
21437
|
+
}
|
21438
|
+
|
21439
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
21440
|
+
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
21441
|
+
|
21442
|
+
if (newValue !== oldValue) {
|
21443
|
+
if (attrName === 'readonly') {
|
21444
|
+
this.onReadOnly(newValue === 'true');
|
21445
|
+
}
|
21446
|
+
}
|
21447
|
+
}
|
21429
21448
|
}
|
21430
21449
|
|
21431
21450
|
const RecoveryCodesClass = compose(
|
@@ -21450,8 +21469,7 @@ const RecoveryCodesClass = compose(
|
|
21450
21469
|
createDynamicDataMixin$1({
|
21451
21470
|
itemRenderer,
|
21452
21471
|
rerenderAttrsList: ['variant', 'mode'],
|
21453
|
-
targetSelector: '.list'
|
21454
|
-
sortFn: sortData
|
21472
|
+
targetSelector: '.list'
|
21455
21473
|
}),
|
21456
21474
|
draggableMixin$1,
|
21457
21475
|
componentNameValidationMixin$1,
|