a zip code crypto-currency system good for red ONLY

chip.js 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. import { Directive, ElementRef, Renderer } from '@angular/core';
  12. import { Config } from '../../config/config';
  13. import { Ion } from '../ion';
  14. /**
  15. * @name Chip
  16. * @module ionic
  17. * @description
  18. * Chips represent complex entities in small blocks, such as a contact.
  19. *
  20. *
  21. * @usage
  22. *
  23. * ```html
  24. * <ion-chip>
  25. * <ion-label>Default</ion-label>
  26. * </ion-chip>
  27. *
  28. * <ion-chip>
  29. * <ion-label color="secondary">Secondary Label</ion-label>
  30. * </ion-chip>
  31. *
  32. * <ion-chip color="secondary">
  33. * <ion-label color="dark">Secondary w/ Dark label</ion-label>
  34. * </ion-chip>
  35. *
  36. * <ion-chip color="danger">
  37. * <ion-label>Danger</ion-label>
  38. * </ion-chip>
  39. *
  40. * <ion-chip>
  41. * <ion-icon name="pin"></ion-icon>
  42. * <ion-label>Default</ion-label>
  43. * </ion-chip>
  44. *
  45. * <ion-chip>
  46. * <ion-icon name="heart" color="dark"></ion-icon>
  47. * <ion-label>Default</ion-label>
  48. * </ion-chip>
  49. *
  50. * <ion-chip>
  51. * <ion-avatar>
  52. * <img src="assets/img/my-img.png">
  53. * </ion-avatar>
  54. * <ion-label>Default</ion-label>
  55. * </ion-chip>
  56. * ```
  57. *
  58. *
  59. * @advanced
  60. *
  61. * ```html
  62. * <ion-chip #chip1>
  63. * <ion-label>Default</ion-label>
  64. * <button ion-button clear color="light" (click)="delete(chip1)">
  65. * <ion-icon name="close-circle"></ion-icon>
  66. * </button>
  67. * </ion-chip>
  68. *
  69. * <ion-chip #chip2>
  70. * <ion-icon name="pin" color="primary"></ion-icon>
  71. * <ion-label>With Icon</ion-label>
  72. * <button ion-button (click)="delete(chip2)">
  73. * <ion-icon name="close"></ion-icon>
  74. * </button>
  75. * </ion-chip>
  76. *
  77. * <ion-chip #chip3>
  78. * <ion-avatar>
  79. * <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAAAAAAALAAAAAABAAEAAAICTAEAOw==">
  80. * </ion-avatar>
  81. * <ion-label>With Avatar</ion-label>
  82. * <button ion-button clear color="dark" (click)="delete(chip3)">
  83. * <ion-icon name="close-circle"></ion-icon>
  84. * </button>
  85. * </ion-chip>
  86. * ```
  87. *
  88. * ```ts
  89. * @Component({
  90. * templateUrl: 'main.html'
  91. * })
  92. * class E2EPage {
  93. * delete(chip: Element) {
  94. * chip.remove();
  95. * }
  96. * }
  97. * ```
  98. *
  99. * @demo /docs/demos/src/chip/
  100. **/
  101. var Chip = (function (_super) {
  102. __extends(Chip, _super);
  103. function Chip(config, elementRef, renderer) {
  104. return _super.call(this, config, elementRef, renderer, 'chip') || this;
  105. }
  106. Chip.decorators = [
  107. { type: Directive, args: [{
  108. selector: 'ion-chip'
  109. },] },
  110. ];
  111. /** @nocollapse */
  112. Chip.ctorParameters = function () { return [
  113. { type: Config, },
  114. { type: ElementRef, },
  115. { type: Renderer, },
  116. ]; };
  117. return Chip;
  118. }(Ion));
  119. export { Chip };
  120. //# sourceMappingURL=chip.js.map