@descope/web-components-ui 3.3.2 → 3.3.3
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 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/9582.js +1 -1
- package/dist/umd/9582.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js.map +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-alert-index-js.js.map +1 -1
- package/dist/umd/descope-enriched-text.js +1 -1
- package/dist/umd/descope-enriched-text.js.map +1 -1
- package/dist/umd/descope-link.js +1 -1
- package/dist/umd/descope-link.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -1
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/descope-trusted-devices.js +1 -1
- package/dist/umd/descope-trusted-devices.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +32 -32
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3946,7 +3946,16 @@ const EnrichedTextClass = compose(
|
|
|
3946
3946
|
|
|
3947
3947
|
const componentName$1f = getComponentName('link');
|
|
3948
3948
|
|
|
3949
|
-
|
|
3949
|
+
const observedAttrs$6 = ['href', 'readonly'];
|
|
3950
|
+
|
|
3951
|
+
class RawLink extends createBaseClass$1({
|
|
3952
|
+
componentName: componentName$1f,
|
|
3953
|
+
baseSelector: ':host a',
|
|
3954
|
+
}) {
|
|
3955
|
+
static get observedAttributes() {
|
|
3956
|
+
return observedAttrs$6.concat(super.observedAttributes || []);
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3950
3959
|
constructor() {
|
|
3951
3960
|
super();
|
|
3952
3961
|
|
|
@@ -3979,10 +3988,12 @@ class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseS
|
|
|
3979
3988
|
white-space: nowrap;
|
|
3980
3989
|
}
|
|
3981
3990
|
`,
|
|
3982
|
-
this
|
|
3991
|
+
this,
|
|
3983
3992
|
);
|
|
3984
3993
|
|
|
3985
|
-
|
|
3994
|
+
this.anchor = this.shadowRoot.querySelector('a');
|
|
3995
|
+
|
|
3996
|
+
forwardAttrs(this, this.anchor, {
|
|
3986
3997
|
includeAttrs: ['href', 'target', 'tooltip'],
|
|
3987
3998
|
mapAttrs: {
|
|
3988
3999
|
tooltip: 'title',
|
|
@@ -3992,6 +4003,16 @@ class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseS
|
|
|
3992
4003
|
forwardAttrs(this, this.shadowRoot.querySelector('descope-text'), {
|
|
3993
4004
|
includeAttrs: ['mode', 'variant'],
|
|
3994
4005
|
});
|
|
4006
|
+
|
|
4007
|
+
this.anchor.addEventListener('click', (e) => {
|
|
4008
|
+
if (this.readOnly) {
|
|
4009
|
+
e.preventDefault();
|
|
4010
|
+
}
|
|
4011
|
+
});
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
get readOnly() {
|
|
4015
|
+
return this.getAttribute('readonly') === 'true';
|
|
3995
4016
|
}
|
|
3996
4017
|
}
|
|
3997
4018
|
|
|
@@ -4011,7 +4032,11 @@ const LinkClass = compose(
|
|
|
4011
4032
|
hostWidth: { ...host$v, property: 'width' },
|
|
4012
4033
|
hostDirection: { ...text$2, property: 'direction' },
|
|
4013
4034
|
textAlign: wrapper$1,
|
|
4014
|
-
textDecoration: {
|
|
4035
|
+
textDecoration: {
|
|
4036
|
+
...link$3,
|
|
4037
|
+
property: 'text-decoration',
|
|
4038
|
+
fallback: 'none',
|
|
4039
|
+
},
|
|
4015
4040
|
textColor: [
|
|
4016
4041
|
{ ...anchor, property: 'color' },
|
|
4017
4042
|
{ ...text$2, property: TextClass.cssVarList.textColor },
|
|
@@ -4020,7 +4045,7 @@ const LinkClass = compose(
|
|
|
4020
4045
|
},
|
|
4021
4046
|
}),
|
|
4022
4047
|
draggableMixin$1,
|
|
4023
|
-
componentNameValidationMixin$1
|
|
4048
|
+
componentNameValidationMixin$1,
|
|
4024
4049
|
)(RawLink);
|
|
4025
4050
|
|
|
4026
4051
|
const globalRefs$F = getThemeRefs$1(globals);
|