@descope/web-components-ui 1.0.298 → 1.0.299
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +9 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/text-components-descope-enriched-text-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/text-components/descope-enriched-text/EnrichedTextClass.js +9 -1
package/dist/index.esm.js
CHANGED
@@ -3392,7 +3392,7 @@ const BaseEnrichedTextClass = createBaseTextClass(componentName$z);
|
|
3392
3392
|
const EnrichedTextMixin = (superclass) =>
|
3393
3393
|
class EnrichedTextMixinClass extends superclass {
|
3394
3394
|
static get observedAttributes() {
|
3395
|
-
return ['disabled-rules', 'line-break'];
|
3395
|
+
return ['disabled-rules', 'line-break', 'readonly'];
|
3396
3396
|
}
|
3397
3397
|
|
3398
3398
|
get lineBreak() {
|
@@ -3418,6 +3418,10 @@ const EnrichedTextMixin = (superclass) =>
|
|
3418
3418
|
this.#parseChildren();
|
3419
3419
|
}
|
3420
3420
|
}
|
3421
|
+
|
3422
|
+
if (attrName === 'readonly') {
|
3423
|
+
this.onReadOnlyChange(newValue !== null);
|
3424
|
+
}
|
3421
3425
|
}
|
3422
3426
|
|
3423
3427
|
#initProcessor() {
|
@@ -3443,6 +3447,10 @@ const EnrichedTextMixin = (superclass) =>
|
|
3443
3447
|
}
|
3444
3448
|
}
|
3445
3449
|
}
|
3450
|
+
|
3451
|
+
onReadOnlyChange(val) {
|
3452
|
+
this.setAttribute('inert', val);
|
3453
|
+
}
|
3446
3454
|
};
|
3447
3455
|
|
3448
3456
|
const EnrichedTextClass = compose(
|