a zip code crypto-currency system good for red ONLY

label.js 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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 Label
  27. * @description
  28. * Labels are placed inside of an `ion-item` element and can be used
  29. * to describe an `ion-input`, `ion-toggle`, `ion-checkbox`, and more.
  30. *
  31. * @property [fixed] - A persistent label that sits next the input.
  32. * @property [floating] - A label that will float above the input if the input is empty or loses focus.
  33. * @property [stacked] - A stacked label will always appear on top of the input.
  34. *
  35. * @usage
  36. * ```html
  37. * <ion-item>
  38. * <ion-label>Username</ion-label>
  39. * <ion-input></ion-input>
  40. * </ion-item>
  41. *
  42. * <ion-item>
  43. * <ion-label fixed>Website</ion-label>
  44. * <ion-input type="url"></ion-input>
  45. * </ion-item>
  46. *
  47. * <ion-item>
  48. * <ion-label floating>Email</ion-label>
  49. * <ion-input type="email"></ion-input>
  50. * </ion-item>
  51. *
  52. * <ion-item>
  53. * <ion-label stacked>Phone</ion-label>
  54. * <ion-input type="tel"></ion-input>
  55. * </ion-item>
  56. *
  57. * <ion-item>
  58. * <ion-label>Toggle</ion-label>
  59. * <ion-toggle></ion-toggle>
  60. * </ion-item>
  61. *
  62. * <ion-item>
  63. * <ion-label>Checkbox</ion-label>
  64. * <ion-checkbox></ion-checkbox>
  65. * </ion-item>
  66. * ```
  67. *
  68. * @demo /docs/demos/src/label/
  69. * @see {@link ../../../../components#inputs Input Component Docs}
  70. * @see {@link ../../input/Input Input API Docs}
  71. *
  72. */
  73. var Label = (function (_super) {
  74. __extends(Label, _super);
  75. function Label(config, elementRef, renderer, isFloating, isStacked, isFixed, isInset) {
  76. var _this = _super.call(this, config, elementRef, renderer, 'label') || this;
  77. _this.type = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : (isInset === '' ? 'inset' : null))));
  78. return _this;
  79. }
  80. Object.defineProperty(Label.prototype, "id", {
  81. /**
  82. * @hidden
  83. */
  84. get: function () {
  85. return this._id;
  86. },
  87. set: function (val) {
  88. this._id = val;
  89. if (val) {
  90. this.setElementAttribute('id', val);
  91. }
  92. },
  93. enumerable: true,
  94. configurable: true
  95. });
  96. Object.defineProperty(Label.prototype, "text", {
  97. /**
  98. * @hidden
  99. */
  100. get: function () {
  101. return this.getNativeElement().textContent || '';
  102. },
  103. enumerable: true,
  104. configurable: true
  105. });
  106. Label.decorators = [
  107. { type: core_1.Directive, args: [{
  108. selector: 'ion-label'
  109. },] },
  110. ];
  111. /** @nocollapse */
  112. Label.ctorParameters = function () { return [
  113. { type: config_1.Config, },
  114. { type: core_1.ElementRef, },
  115. { type: core_1.Renderer, },
  116. { type: undefined, decorators: [{ type: core_1.Attribute, args: ['floating',] },] },
  117. { type: undefined, decorators: [{ type: core_1.Attribute, args: ['stacked',] },] },
  118. { type: undefined, decorators: [{ type: core_1.Attribute, args: ['fixed',] },] },
  119. { type: undefined, decorators: [{ type: core_1.Attribute, args: ['inset',] },] },
  120. ]; };
  121. Label.propDecorators = {
  122. 'id': [{ type: core_1.Input },],
  123. };
  124. return Label;
  125. }(ion_1.Ion));
  126. exports.Label = Label;
  127. });
  128. //# sourceMappingURL=label.js.map