progressspinner.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. "use strict";
  2. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  3. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  4. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  5. 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;
  6. return c > 3 && r && Object.defineProperty(target, key, r), r;
  7. };
  8. var __metadata = (this && this.__metadata) || function (k, v) {
  9. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  10. };
  11. Object.defineProperty(exports, "__esModule", { value: true });
  12. var core_1 = require("@angular/core");
  13. var common_1 = require("@angular/common");
  14. var ProgressSpinner = /** @class */ (function () {
  15. function ProgressSpinner() {
  16. this.strokeWidth = "2";
  17. this.fill = "none";
  18. this.animationDuration = "2s";
  19. }
  20. __decorate([
  21. core_1.Input(),
  22. __metadata("design:type", Object)
  23. ], ProgressSpinner.prototype, "style", void 0);
  24. __decorate([
  25. core_1.Input(),
  26. __metadata("design:type", String)
  27. ], ProgressSpinner.prototype, "styleClass", void 0);
  28. __decorate([
  29. core_1.Input(),
  30. __metadata("design:type", String)
  31. ], ProgressSpinner.prototype, "strokeWidth", void 0);
  32. __decorate([
  33. core_1.Input(),
  34. __metadata("design:type", String)
  35. ], ProgressSpinner.prototype, "fill", void 0);
  36. __decorate([
  37. core_1.Input(),
  38. __metadata("design:type", String)
  39. ], ProgressSpinner.prototype, "animationDuration", void 0);
  40. ProgressSpinner = __decorate([
  41. core_1.Component({
  42. selector: 'p-progressSpinner',
  43. template: "\n <div class=\"ui-progress-spinner\" [ngStyle]=\"style\" [ngClass]=\"styleClass\">\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 "
  44. })
  45. ], ProgressSpinner);
  46. return ProgressSpinner;
  47. }());
  48. exports.ProgressSpinner = ProgressSpinner;
  49. var ProgressSpinnerModule = /** @class */ (function () {
  50. function ProgressSpinnerModule() {
  51. }
  52. ProgressSpinnerModule = __decorate([
  53. core_1.NgModule({
  54. imports: [common_1.CommonModule],
  55. exports: [ProgressSpinner],
  56. declarations: [ProgressSpinner]
  57. })
  58. ], ProgressSpinnerModule);
  59. return ProgressSpinnerModule;
  60. }());
  61. exports.ProgressSpinnerModule = ProgressSpinnerModule;
  62. //# sourceMappingURL=progressspinner.js.map