@patternfly/pfe-progress-indicator
Advanced tools
Comparing version 2.0.0-next.1 to 2.0.0-next.2
{ | ||
"name": "@patternfly/pfe-progress-indicator", | ||
"license": "MIT", | ||
"version": "2.0.0-next.1", | ||
"version": "2.0.0-next.2", | ||
"description": "Progress element for PatternFly Elements", | ||
@@ -70,5 +70,5 @@ "customElements": "custom-elements.json", | ||
"dependencies": { | ||
"@patternfly/pfe-core": "^2.0.0-next.3", | ||
"@patternfly/pfe-core": "^2.0.0-next.4", | ||
"lit": "^2.1.2" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
var h=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var r=(a,t,n,o)=>{for(var i=o>1?void 0:o?m(t,n):t,s=a.length-1,d;s>=0;s--)(d=a[s])&&(i=(o?d(t,n,i):d(i))||i);return o&&i&&h(t,n,i),i};import{LitElement as g,html as b}from"lit";import{customElement as v,property as l}from"lit/decorators.js";import{pfelement as w,initializer as x}from"@patternfly/pfe-core/decorators.js";import{css as c}from"lit";var f=c`:host([indeterminate]) span{position:absolute;overflow:hidden;clip:rect(0,0,0,0);height:1px;width:1px;margin:-1px;padding:0;border:0}:host([indeterminate]) span{position:absolute;overflow:hidden;clip:rect(0,0,0,0);height:1px;width:1px;margin:-1px;padding:0;border:0}:host([hidden]){display:none}:host([indeterminate]){animation:spin 1s linear infinite;-webkit-animation:spin 1s linear infinite;-moz-animation:spin 1s linear infinite;border-style:var(--pfe-theme--surface--border-style,solid);border-width:var(--pfe-theme--surface--border-width--heavy,4px);border-color:var(--pfe-progress-indicator--background-color,rgba(0,0,0,.25));border-top-color:var(--pfe-progress-indicator--foreground-color,rgba(0,0,0,.75));border-radius:100%;display:inline-block;height:var(--pfe-progress-indicator--Height,2rem);margin:0 auto;position:relative;width:var(--pfe-progress-indicator--Width,2rem);vertical-align:middle;visibility:visible}:host([size=sm]){height:1rem;width:1rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * .75)}:host([size=md]){height:2rem;width:2rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * 1)}:host([size=xl]){height:4rem;width:4rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * 1.5)}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}`,p=f;import{Logger as u}from"@patternfly/pfe-core/controllers/logger.js";var e=class extends g{constructor(){super(...arguments);this.logger=new u(this);this.indeterminate=!1;this.size="md"}render(){return b`<span><slot @slotchange="${this._init}"></slot></span>`}_init(){if(this.isConnected){let[t]=this.children;!t&&!this.textContent?.trim()&&this.logger.warn("You do not have a backup loading message.")}}};e.version="{{version}}",e.styles=[p],r([l({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),r([l({reflect:!0})],e.prototype,"size",2),r([x({observe:!1})],e.prototype,"_init",1),e=r([v("pfe-progress-indicator"),w()],e);export{e as PfeProgressIndicator}; | ||
var h=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var o=(n,t,r,a)=>{for(var i=a>1?void 0:a?m(t,r):t,s=n.length-1,d;s>=0;s--)(d=n[s])&&(i=(a?d(t,r,i):d(i))||i);return a&&i&&h(t,r,i),i};import{LitElement as g,html as b}from"lit";import{customElement as v,property as l}from"lit/decorators.js";import{pfelement as w,initializer as x}from"@patternfly/pfe-core/decorators.js";import{css as c}from"lit";var f=c`:host([indeterminate]) span{position:absolute;overflow:hidden;clip:rect(0,0,0,0);height:1px;width:1px;margin:-1px;padding:0;border:0}:host([indeterminate]) span{position:absolute;overflow:hidden;clip:rect(0,0,0,0);height:1px;width:1px;margin:-1px;padding:0;border:0}:host([hidden]){display:none}:host([indeterminate]){animation:spin 1s linear infinite;-webkit-animation:spin 1s linear infinite;-moz-animation:spin 1s linear infinite;border-style:var(--pfe-theme--surface--border-style,solid);border-width:var(--pfe-theme--surface--border-width--heavy,4px);border-color:var(--pfe-progress-indicator--background-color,rgba(0,0,0,.25));border-top-color:var(--pfe-progress-indicator--foreground-color,rgba(0,0,0,.75));border-radius:100%;display:inline-block;height:var(--pfe-progress-indicator--Height,2rem);margin:0 auto;position:relative;width:var(--pfe-progress-indicator--Width,2rem);vertical-align:middle;visibility:visible}:host([size=sm]){height:1rem;width:1rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * .75)}:host([size=md]){height:2rem;width:2rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * 1)}:host([size=xl]){height:4rem;width:4rem;border-width:calc(var(--pfe-theme--surface--border-width--heavy,4px) * 1.5)}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}`,p=f;import{Logger as u}from"@patternfly/pfe-core/controllers/logger.js";var e=class extends g{constructor(){super(...arguments);this.logger=new u(this);this.indeterminate=!1;this.size="md"}render(){return b`<span><slot @slotchange="${this._init}"></slot></span>`}_init(){if(this.isConnected){let[r]=this.children;!r&&!this.textContent?.trim()&&this.logger.warn("You do not have a backup loading message.")}}};e.version="{{version}}",e.styles=[p],o([l({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),o([l({reflect:!0})],e.prototype,"size",2),o([x({observe:!1})],e.prototype,"_init",1),e=o([v("pfe-progress-indicator"),w()],e);export{e as PfeProgressIndicator}; | ||
//# sourceMappingURL=pfe-progress-indicator.js.map |