UNPKG

3.3 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
3 typeof define === 'function' && define.amd ? define('primeng/progressspinner', ['exports', '@angular/core', '@angular/common'], factory) :
4 (global = global || self, factory((global.primeng = global.primeng || {}, global.primeng.progressspinner = {}), global.ng.core, global.ng.common));
5}(this, (function (exports, core, common) { 'use strict';
6
7 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
8 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11 return c > 3 && r && Object.defineProperty(target, key, r), r;
12 };
13 var ProgressSpinner = /** @class */ (function () {
14 function ProgressSpinner() {
15 this.strokeWidth = "2";
16 this.fill = "none";
17 this.animationDuration = "2s";
18 }
19 __decorate([
20 core.Input()
21 ], ProgressSpinner.prototype, "style", void 0);
22 __decorate([
23 core.Input()
24 ], ProgressSpinner.prototype, "styleClass", void 0);
25 __decorate([
26 core.Input()
27 ], ProgressSpinner.prototype, "strokeWidth", void 0);
28 __decorate([
29 core.Input()
30 ], ProgressSpinner.prototype, "fill", void 0);
31 __decorate([
32 core.Input()
33 ], ProgressSpinner.prototype, "animationDuration", void 0);
34 ProgressSpinner = __decorate([
35 core.Component({
36 selector: 'p-progressSpinner',
37 template: "\n <div class=\"ui-progress-spinner\" [ngStyle]=\"style\" [ngClass]=\"styleClass\" role=\"alert\" aria-busy=\"true\">\n <svg class=\"ui-progress-spinner-svg\" viewBox=\"25 25 50 50\" [style.animation-duration]=\"animationDuration\">\n <circle class=\"ui-progress-spinner-circle\" cx=\"50\" cy=\"50\" r=\"20\" [attr.fill]=\"fill\" [attr.stroke-width]=\"strokeWidth\" stroke-miterlimit=\"10\"/>\n </svg>\n </div>\n ",
38 changeDetection: core.ChangeDetectionStrategy.Default
39 })
40 ], ProgressSpinner);
41 return ProgressSpinner;
42 }());
43 var ProgressSpinnerModule = /** @class */ (function () {
44 function ProgressSpinnerModule() {
45 }
46 ProgressSpinnerModule = __decorate([
47 core.NgModule({
48 imports: [common.CommonModule],
49 exports: [ProgressSpinner],
50 declarations: [ProgressSpinner]
51 })
52 ], ProgressSpinnerModule);
53 return ProgressSpinnerModule;
54 }());
55
56 exports.ProgressSpinner = ProgressSpinner;
57 exports.ProgressSpinnerModule = ProgressSpinnerModule;
58
59 Object.defineProperty(exports, '__esModule', { value: true });
60
61})));
62//# sourceMappingURL=primeng-progressspinner.umd.js.map