a zip code crypto-currency system good for red ONLY

fab.js 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = Object.setPrototypeOf ||
  3. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5. return function (d, b) {
  6. extendStatics(d, b);
  7. function __() { this.constructor = d; }
  8. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9. };
  10. })();
  11. (function (factory) {
  12. if (typeof module === "object" && typeof module.exports === "object") {
  13. var v = factory(require, exports);
  14. if (v !== undefined) module.exports = v;
  15. }
  16. else if (typeof define === "function" && define.amd) {
  17. define(["require", "exports", "@angular/core", "../../config/config", "../ion"], factory);
  18. }
  19. })(function (require, exports) {
  20. "use strict";
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var core_1 = require("@angular/core");
  23. var config_1 = require("../../config/config");
  24. var ion_1 = require("../ion");
  25. /**
  26. * @name FabButton
  27. * @module ionic
  28. *
  29. * @description
  30. * FABs (Floating Action Buttons) are standard material design components. They are shaped as a circle that represents a promoted action. When pressed, it may contain more related actions.
  31. * FABs as its name suggests are floating over the content in a fixed position. This is not achieved exclusively with `<button ion-fab>Button</button>` but it has to wrapped with the `<ion-fab>` component, like this:
  32. *
  33. * ```html
  34. * <ion-content>
  35. * <!-- Real floating action button, fixed. It will not scroll with the content -->
  36. * <ion-fab>
  37. * <button ion-fab>Button</button>
  38. * </ion-fab>
  39. *
  40. * <!-- Button shaped as a circle that just like a normal button scrolls with the content -->
  41. * <button ion-fab>Button</button>
  42. * </ion-content>
  43. *
  44. * ```
  45. *
  46. * In case the button is not wrapped with `<ion-fab>`, the fab button will behave like a normal button, scrolling with the content.
  47. *
  48. * See [ion-fab] to learn more information about how to position the fab button.
  49. *
  50. * @property [mini] - Makes a fab button with a reduced size.
  51. *
  52. * @usage
  53. *
  54. * ```html
  55. *
  56. * <!-- Colors -->
  57. * <ion-fab>
  58. * <button ion-fab color="primary">Button</button>
  59. * </ion-fab>
  60. *
  61. * <!-- Mini -->
  62. * <ion-fab>
  63. * <button ion-fab mini>Small</button>
  64. * </ion-fab>
  65. * ```
  66. *
  67. * @demo /docs/demos/src/fab/
  68. * @see {@link /docs/components#fabs FAB Component Docs}
  69. */
  70. var FabButton = (function (_super) {
  71. __extends(FabButton, _super);
  72. function FabButton(config, elementRef, renderer) {
  73. return _super.call(this, config, elementRef, renderer, 'fab') || this;
  74. }
  75. /**
  76. * @hidden
  77. */
  78. FabButton.prototype.setActiveClose = function (closeVisible) {
  79. this.setElementClass('fab-close-active', closeVisible);
  80. };
  81. FabButton.decorators = [
  82. { type: core_1.Component, args: [{
  83. selector: '[ion-fab]',
  84. template: '<ion-icon name="close" class="fab-close-icon"></ion-icon>' +
  85. '<span class="button-inner">' +
  86. '<ng-content></ng-content>' +
  87. '</span>' +
  88. '<div class="button-effect"></div>',
  89. changeDetection: core_1.ChangeDetectionStrategy.OnPush,
  90. encapsulation: core_1.ViewEncapsulation.None,
  91. },] },
  92. ];
  93. /** @nocollapse */
  94. FabButton.ctorParameters = function () { return [
  95. { type: config_1.Config, },
  96. { type: core_1.ElementRef, },
  97. { type: core_1.Renderer, },
  98. ]; };
  99. return FabButton;
  100. }(ion_1.Ion));
  101. exports.FabButton = FabButton;
  102. });
  103. //# sourceMappingURL=fab.js.map