a zip code crypto-currency system good for red ONLY

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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", "../../util/util"], 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 util_1 = require("../../util/util");
  14. /**
  15. * @name Scroll
  16. * @description
  17. * Scroll is a non-flexboxed scroll area that can scroll horizontally or vertically. `ion-Scroll` Can be used in places where you may not need a full page scroller, but a highly customized one, such as image scubber or comment scroller.
  18. * @usage
  19. * ```html
  20. * <ion-scroll scrollX="true">
  21. * </ion-scroll>
  22. *
  23. * <ion-scroll scrollY="true">
  24. * </ion-scroll>
  25. *
  26. * <ion-scroll scrollX="true" scrollY="true">
  27. * </ion-scroll>
  28. * ```
  29. * @demo /docs/demos/src/scroll/
  30. */
  31. var Scroll = (function () {
  32. function Scroll() {
  33. this._scrollX = false;
  34. this._scrollY = false;
  35. this._zoom = false;
  36. this._maxZoom = 1;
  37. /**
  38. * @hidden
  39. */
  40. this.maxScale = 3;
  41. /**
  42. * @hidden
  43. */
  44. this.zoomDuration = 250;
  45. }
  46. Object.defineProperty(Scroll.prototype, "scrollX", {
  47. /**
  48. * @input {boolean} If true, scrolling along the X axis is enabled.
  49. */
  50. get: function () {
  51. return this._scrollX;
  52. },
  53. set: function (val) {
  54. this._scrollX = util_1.isTrueProperty(val);
  55. },
  56. enumerable: true,
  57. configurable: true
  58. });
  59. Object.defineProperty(Scroll.prototype, "scrollY", {
  60. /**
  61. * @input {boolean} If true, scrolling along the Y axis is enabled; requires the following CSS declaration: ion-scroll { white-space: nowrap; }
  62. */
  63. get: function () {
  64. return this._scrollY;
  65. },
  66. set: function (val) {
  67. this._scrollY = util_1.isTrueProperty(val);
  68. },
  69. enumerable: true,
  70. configurable: true
  71. });
  72. Object.defineProperty(Scroll.prototype, "zoom", {
  73. /**
  74. * @input {boolean} If true, zooming is enabled.
  75. */
  76. get: function () {
  77. return this._zoom;
  78. },
  79. set: function (val) {
  80. this._zoom = util_1.isTrueProperty(val);
  81. },
  82. enumerable: true,
  83. configurable: true
  84. });
  85. Object.defineProperty(Scroll.prototype, "maxZoom", {
  86. /**
  87. * @input {number} Set the max zoom amount.
  88. */
  89. get: function () {
  90. return this._maxZoom;
  91. },
  92. set: function (val) {
  93. this._maxZoom = val;
  94. },
  95. enumerable: true,
  96. configurable: true
  97. });
  98. /**
  99. * @hidden
  100. * Add a scroll event handler to the scroll element if it exists.
  101. * @param {Function} handler The scroll handler to add to the scroll element.
  102. * @returns {?Function} a function to remove the specified handler, otherwise
  103. * undefined if the scroll element doesn't exist.
  104. */
  105. Scroll.prototype.addScrollEventListener = function (handler) {
  106. (void 0) /* assert */;
  107. var ele = this._scrollContent.nativeElement;
  108. ele.addEventListener('scroll', handler);
  109. return function () {
  110. ele.removeEventListener('scroll', handler);
  111. };
  112. };
  113. Scroll.decorators = [
  114. { type: core_1.Component, args: [{
  115. selector: 'ion-scroll',
  116. template: '<div class="scroll-content" #scrollContent>' +
  117. '<div class="scroll-zoom-wrapper">' +
  118. '<ng-content></ng-content>' +
  119. '</div>' +
  120. '</div>',
  121. host: {
  122. '[class.scroll-x]': 'scrollX',
  123. '[class.scroll-y]': 'scrollY'
  124. },
  125. changeDetection: core_1.ChangeDetectionStrategy.OnPush,
  126. encapsulation: core_1.ViewEncapsulation.None,
  127. },] },
  128. ];
  129. /** @nocollapse */
  130. Scroll.ctorParameters = function () { return []; };
  131. Scroll.propDecorators = {
  132. 'scrollX': [{ type: core_1.Input },],
  133. 'scrollY': [{ type: core_1.Input },],
  134. 'zoom': [{ type: core_1.Input },],
  135. 'maxZoom': [{ type: core_1.Input },],
  136. '_scrollContent': [{ type: core_1.ViewChild, args: ['scrollContent', { read: core_1.ElementRef },] },],
  137. };
  138. return Scroll;
  139. }());
  140. exports.Scroll = Scroll;
  141. });
  142. //# sourceMappingURL=scroll.js.map