@patternfly/pfe-button
Advanced tools
Comparing version 2.0.0-next.0 to 2.0.0-next.1
{ | ||
"name": "@patternfly/pfe-button", | ||
"version": "2.0.0-next.1", | ||
"license": "MIT", | ||
"version": "2.0.0-next.0", | ||
"description": "Button element for PatternFly Elements", | ||
@@ -6,0 +6,0 @@ "customElements": "custom-elements.json", |
@@ -116,3 +116,3 @@ var b=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var o=(i,r,d,n)=>{for(var e=n>1?void 0:n?h(r,d):r,s=i.length-1,l;s>=0;s--)(l=i[s])&&(e=(n?l(r,d,e):l(e))||e);return n&&e&&b(r,d,e),e};import{LitElement as m,html as g}from"lit";import{customElement as y,property as a}from"lit/decorators.js";import{bound as u,observed as c,pfelement as C}from"@patternfly/pfe-core/decorators.js";import{deprecatedCustomEvent as _}from"@patternfly/pfe-core/functions/deprecatedCustomEvent.js";import{Logger as k}from"@patternfly/pfe-core/controllers/logger.js";import{css as f}from"lit";var v=f`:host { | ||
</span> | ||
`}_typeChanged(){this.button&&this.button.type!==this.type&&(this.type?this.button.type=this.type:this.button.removeAttribute("type"))}_disabledChanged(){this.button&&this.button.disabled!==this.disabled&&(this.button.disabled=this.disabled)}onSlotChange(){this.mo.disconnect(),this.button&&this.mo.observe(this.button,{attributes:!0,attributeFilter:["type","disabled"]})}onClick(r){r.target===this.button&&this.dispatchEvent(_("pfe-button:click"))}onMutation(){this.querySelector(":not(button)")?this.logger.warn("The only child in the light DOM must be a button tag"):this.button?(this.disabled=this.button.hasAttribute("disabled"),this.type=this.button.getAttribute("type")??void 0):this.logger.warn("You must have a button in the light DOM")}};t.version="2.0.0-next.0",t.styles=p,o([c,a({reflect:!0,type:Boolean})],t.prototype,"disabled",2),o([a({reflect:!0})],t.prototype,"variant",2),o([a({reflect:!0})],t.prototype,"size",2),o([c,a()],t.prototype,"type",2),o([u],t.prototype,"onClick",1),o([u],t.prototype,"onMutation",1),t=o([y("pfe-button"),C()],t);export{t as PfeButton}; | ||
`}_typeChanged(){this.button&&this.button.type!==this.type&&(this.type?this.button.type=this.type:this.button.removeAttribute("type"))}_disabledChanged(){this.button&&this.button.disabled!==this.disabled&&(this.button.disabled=this.disabled)}onSlotChange(){this.mo.disconnect(),this.button&&this.mo.observe(this.button,{attributes:!0,attributeFilter:["type","disabled"]})}onClick(r){r.target===this.button&&this.dispatchEvent(_("pfe-button:click"))}onMutation(){this.querySelector(":not(button)")?this.logger.warn("The only child in the light DOM must be a button tag"):this.button?(this.disabled=this.button.hasAttribute("disabled"),this.type=this.button.getAttribute("type")??void 0):this.logger.warn("You must have a button in the light DOM")}};t.version="2.0.0-next.1",t.styles=p,o([c,a({reflect:!0,type:Boolean})],t.prototype,"disabled",2),o([a({reflect:!0})],t.prototype,"variant",2),o([a({reflect:!0})],t.prototype,"size",2),o([c,a()],t.prototype,"type",2),o([u],t.prototype,"onClick",1),o([u],t.prototype,"onMutation",1),t=o([y("pfe-button"),C()],t);export{t as PfeButton}; | ||
//# sourceMappingURL=pfe-button.js.map |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0