UNPKG

2.13 kBJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("primeng/progressbar",["exports","@angular/core","@angular/common"],t):t(((e=e||self).primeng=e.primeng||{},e.primeng.progressbar={}),e.ng.core,e.ng.common)}(this,(function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=function(){function e(){this.showValue=!0,this.unit="%",this.mode="determinate"}return o([t.Input()],e.prototype,"value",void 0),o([t.Input()],e.prototype,"showValue",void 0),o([t.Input()],e.prototype,"style",void 0),o([t.Input()],e.prototype,"styleClass",void 0),o([t.Input()],e.prototype,"unit",void 0),o([t.Input()],e.prototype,"mode",void 0),e=o([t.Component({selector:"p-progressBar",template:'\n <div [class]="styleClass" [ngStyle]="style" role="progressbar" aria-valuemin="0" [attr.aria-valuenow]="value" aria-valuemax="100"\n [ngClass]="{\'ui-progressbar ui-widget ui-widget-content ui-corner-all\': true, \'ui-progressbar-determinate\': (mode === \'determinate\'), \'ui-progressbar-indeterminate\': (mode === \'indeterminate\')}">\n <div class="ui-progressbar-value ui-progressbar-value-animate ui-widget-header ui-corner-all" [style.width]="value + \'%\'" style="display:block"></div>\n <div class="ui-progressbar-label" [style.display]="value != null ? \'block\' : \'none\'" *ngIf="showValue">{{value}}{{unit}}</div>\n </div>\n ',changeDetection:t.ChangeDetectionStrategy.Default})],e)}(),i=function(){function e(){}return e=o([t.NgModule({imports:[r.CommonModule],exports:[n],declarations:[n]})],e)}();e.ProgressBar=n,e.ProgressBarModule=i,Object.defineProperty(e,"__esModule",{value:!0})}));
2//# sourceMappingURL=primeng-progressbar.umd.min.js.map
\No newline at end of file