a zip code crypto-currency system good for red ONLY

toolbar-title.js 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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", "./navbar", "./toolbar"], 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. var navbar_1 = require("./navbar");
  26. var toolbar_1 = require("./toolbar");
  27. /**
  28. * @name Title
  29. * @description
  30. * `ion-title` is a component that sets the title of the `Toolbar` or `Navbar`
  31. *
  32. * @usage
  33. *
  34. * ```html
  35. * <ion-header>
  36. *
  37. * <ion-navbar>
  38. * <ion-title>Settings</ion-title>
  39. * </ion-navbar>
  40. *
  41. * </ion-header>
  42. * ```
  43. *
  44. * Or to create a navbar with a toolbar as a subheader:
  45. *
  46. * ```html
  47. * <ion-header>
  48. *
  49. * <ion-navbar>
  50. * <ion-title>Main Header</ion-title>
  51. * </ion-navbar>
  52. *
  53. * <ion-toolbar>
  54. * <ion-title>Subheader</ion-title>
  55. * </ion-toolbar>
  56. *
  57. * </ion-header>
  58. * ```
  59. *
  60. * @demo /docs/demos/src/title/
  61. */
  62. var ToolbarTitle = (function (_super) {
  63. __extends(ToolbarTitle, _super);
  64. function ToolbarTitle(config, elementRef, renderer, toolbar, navbar) {
  65. var _this = _super.call(this, config, elementRef, renderer, 'title') || this;
  66. toolbar && toolbar._setTitle(_this);
  67. navbar && navbar._setTitle(_this);
  68. return _this;
  69. }
  70. /**
  71. * @hidden
  72. */
  73. ToolbarTitle.prototype.getTitleText = function () {
  74. return this._elementRef.nativeElement.textContent;
  75. };
  76. ToolbarTitle.decorators = [
  77. { type: core_1.Component, args: [{
  78. selector: 'ion-title',
  79. template: '<div class="toolbar-title" [ngClass]="\'toolbar-title-\' + _mode">' +
  80. '<ng-content></ng-content>' +
  81. '</div>',
  82. changeDetection: core_1.ChangeDetectionStrategy.OnPush,
  83. encapsulation: core_1.ViewEncapsulation.None,
  84. },] },
  85. ];
  86. /** @nocollapse */
  87. ToolbarTitle.ctorParameters = function () { return [
  88. { type: config_1.Config, },
  89. { type: core_1.ElementRef, },
  90. { type: core_1.Renderer, },
  91. { type: toolbar_1.Toolbar, decorators: [{ type: core_1.Optional },] },
  92. { type: navbar_1.Navbar, decorators: [{ type: core_1.Optional }, { type: core_1.Inject, args: [core_1.forwardRef(function () { return navbar_1.Navbar; }),] },] },
  93. ]; };
  94. return ToolbarTitle;
  95. }(ion_1.Ion));
  96. exports.ToolbarTitle = ToolbarTitle;
  97. });
  98. //# sourceMappingURL=toolbar-title.js.map