@spectrum-web-components/icon
Advanced tools
Comparing version 1.1.0-beta.37 to 1.1.0-beta.38
{ | ||
"name": "@spectrum-web-components/icon", | ||
"version": "1.1.0-beta.37", | ||
"version": "1.1.0-beta.38", | ||
"publishConfig": { | ||
@@ -84,4 +84,4 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^1.1.0-beta.37", | ||
"@spectrum-web-components/iconset": "^1.1.0-beta.37" | ||
"@spectrum-web-components/base": "^1.1.0-beta.38", | ||
"@spectrum-web-components/iconset": "^1.1.0-beta.38" | ||
}, | ||
@@ -97,3 +97,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "4a227c67c5030086fad53eac3292a857a009b42b" | ||
"gitHead": "0857cc4af7c23d15a7236f18795a3a6dc977855d" | ||
} |
@@ -69,3 +69,3 @@ "use strict"; | ||
__decorateClass([ | ||
property() | ||
property({ reflect: true }) | ||
], IconBase.prototype, "label", 2); | ||
@@ -72,0 +72,0 @@ __decorateClass([ |
"use strict";var c=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var l=(i,r,e,s)=>{for(var t=s>1?void 0:s?m(r,e):r,o=i.length-1,u;o>=0;o--)(u=i[o])&&(t=(s?u(r,e,t):u(t))||t);return s&&t&&c(r,e,t),t};import{html as n,SpectrumElement as a}from"@spectrum-web-components/base";import{SystemResolutionController as d,systemResolverUpdatedSymbol as b}from"@spectrum-web-components/reactive-controllers/src/SystemContextResolution.js";import{property as p,state as y}from"@spectrum-web-components/base/src/decorators.js";import v from"./icon.css.js";export class IconBase extends a{constructor(){super(...arguments);this.unsubscribeSystemContext=null;this.spectrumVersion=1;this.label="";this.systemResolver=new d(this)}static get styles(){return[v]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeSystemContext&&(this.unsubscribeSystemContext(),this.unsubscribeSystemContext=null)}update(e){e.has("label")&&(this.label?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")),e.has(b)&&(this.spectrumVersion=this.systemResolver.system==="spectrum-two"?2:1),super.update(e)}render(){return n` | ||
<slot></slot> | ||
`}}l([y()],IconBase.prototype,"spectrumVersion",2),l([p()],IconBase.prototype,"label",2),l([p({reflect:!0})],IconBase.prototype,"size",2); | ||
`}}l([y()],IconBase.prototype,"spectrumVersion",2),l([p({reflect:!0})],IconBase.prototype,"label",2),l([p({reflect:!0})],IconBase.prototype,"size",2); | ||
//# sourceMappingURL=IconBase.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
209146