a zip code crypto-currency system good for red ONLY

refresher-content.js 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. (function (factory) {
  2. if (typeof module === "object" && typeof module.exports === "object") {
  3. var v = factory(require, exports);
  4. if (v !== undefined) module.exports = v;
  5. }
  6. else if (typeof define === "function" && define.amd) {
  7. define(["require", "exports", "@angular/core", "../../config/config", "./refresher"], factory);
  8. }
  9. })(function (require, exports) {
  10. "use strict";
  11. Object.defineProperty(exports, "__esModule", { value: true });
  12. var core_1 = require("@angular/core");
  13. var config_1 = require("../../config/config");
  14. var refresher_1 = require("./refresher");
  15. /**
  16. * @hidden
  17. */
  18. var RefresherContent = (function () {
  19. function RefresherContent(r, _config) {
  20. this.r = r;
  21. this._config = _config;
  22. }
  23. /**
  24. * @hidden
  25. */
  26. RefresherContent.prototype.ngOnInit = function () {
  27. if (!this.pullingIcon) {
  28. this.pullingIcon = this._config.get('ionPullIcon', 'arrow-down');
  29. }
  30. if (!this.refreshingSpinner) {
  31. this.refreshingSpinner = this._config.get('ionRefreshingSpinner', this._config.get('spinner', 'ios'));
  32. }
  33. };
  34. RefresherContent.decorators = [
  35. { type: core_1.Component, args: [{
  36. selector: 'ion-refresher-content',
  37. template: '<div class="refresher-pulling">' +
  38. '<div class="refresher-pulling-icon" *ngIf="pullingIcon">' +
  39. '<ion-icon [name]="pullingIcon"></ion-icon>' +
  40. '</div>' +
  41. '<div class="refresher-pulling-text" [innerHTML]="pullingText" *ngIf="pullingText"></div>' +
  42. '</div>' +
  43. '<div class="refresher-refreshing">' +
  44. '<div class="refresher-refreshing-icon">' +
  45. '<ion-spinner [name]="refreshingSpinner"></ion-spinner>' +
  46. '</div>' +
  47. '<div class="refresher-refreshing-text" [innerHTML]="refreshingText" *ngIf="refreshingText"></div>' +
  48. '</div>',
  49. host: {
  50. '[attr.state]': 'r.state'
  51. },
  52. encapsulation: core_1.ViewEncapsulation.None,
  53. },] },
  54. ];
  55. /** @nocollapse */
  56. RefresherContent.ctorParameters = function () { return [
  57. { type: refresher_1.Refresher, },
  58. { type: config_1.Config, },
  59. ]; };
  60. RefresherContent.propDecorators = {
  61. 'pullingIcon': [{ type: core_1.Input },],
  62. 'pullingText': [{ type: core_1.Input },],
  63. 'refreshingSpinner': [{ type: core_1.Input },],
  64. 'refreshingText': [{ type: core_1.Input },],
  65. };
  66. return RefresherContent;
  67. }());
  68. exports.RefresherContent = RefresherContent;
  69. });
  70. //# sourceMappingURL=refresher-content.js.map