Front end of the Slack clone application.

index.js 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  12. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  13. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  14. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  15. return c > 3 && r && Object.defineProperty(target, key, r), r;
  16. };
  17. var __metadata = (this && this.__metadata) || function (k, v) {
  18. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  19. };
  20. import { Injectable } from '@angular/core';
  21. import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core';
  22. /**
  23. * @name Status Bar
  24. * @description
  25. * Manage the appearance of the native status bar.
  26. *
  27. * Requires Cordova plugin: `cordova-plugin-statusbar`. For more info, please see the [StatusBar plugin docs](https://github.com/apache/cordova-plugin-statusbar).
  28. *
  29. * @usage
  30. * ```typescript
  31. * import { StatusBar } from '@ionic-native/status-bar';
  32. *
  33. * constructor(private statusBar: StatusBar) { }
  34. *
  35. * ...
  36. *
  37. * // let status bar overlay webview
  38. * this.statusBar.overlaysWebView(true);
  39. *
  40. * // set status bar to white
  41. * this.statusBar.backgroundColorByHexString('#ffffff');
  42. * ```
  43. *
  44. */
  45. var StatusBar = (function (_super) {
  46. __extends(StatusBar, _super);
  47. function StatusBar() {
  48. return _super !== null && _super.apply(this, arguments) || this;
  49. }
  50. /**
  51. * Set whether the status bar overlays the main app view. The default
  52. * is true.
  53. *
  54. * @param {boolean} doesOverlay Whether the status bar overlays the main app view.
  55. */
  56. StatusBar.prototype.overlaysWebView = function (doesOverlay) { };
  57. ;
  58. /**
  59. * Use the default statusbar (dark text, for light backgrounds).
  60. */
  61. StatusBar.prototype.styleDefault = function () { };
  62. ;
  63. /**
  64. * Use the lightContent statusbar (light text, for dark backgrounds).
  65. */
  66. StatusBar.prototype.styleLightContent = function () { };
  67. ;
  68. /**
  69. * Use the blackTranslucent statusbar (light text, for dark backgrounds).
  70. */
  71. StatusBar.prototype.styleBlackTranslucent = function () { };
  72. ;
  73. /**
  74. * Use the blackOpaque statusbar (light text, for dark backgrounds).
  75. */
  76. StatusBar.prototype.styleBlackOpaque = function () { };
  77. ;
  78. /**
  79. * Set the status bar to a specific named color. Valid options:
  80. * black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown.
  81. *
  82. * iOS note: you must call StatusBar.overlaysWebView(false) to enable color changing.
  83. *
  84. * @param {string} colorName The name of the color (from above)
  85. */
  86. StatusBar.prototype.backgroundColorByName = function (colorName) { };
  87. ;
  88. /**
  89. * Set the status bar to a specific hex color (CSS shorthand supported!).
  90. *
  91. * iOS note: you must call StatusBar.overlaysWebView(false) to enable color changing.
  92. *
  93. * @param {string} hexString The hex value of the color.
  94. */
  95. StatusBar.prototype.backgroundColorByHexString = function (hexString) { };
  96. ;
  97. /**
  98. * Hide the StatusBar
  99. */
  100. StatusBar.prototype.hide = function () { };
  101. ;
  102. /**
  103. * Show the StatusBar
  104. */
  105. StatusBar.prototype.show = function () { };
  106. ;
  107. StatusBar.decorators = [
  108. { type: Injectable },
  109. ];
  110. /** @nocollapse */
  111. StatusBar.ctorParameters = function () { return []; };
  112. __decorate([
  113. Cordova({
  114. sync: true
  115. }),
  116. __metadata("design:type", Function),
  117. __metadata("design:paramtypes", [Boolean]),
  118. __metadata("design:returntype", void 0)
  119. ], StatusBar.prototype, "overlaysWebView", null);
  120. __decorate([
  121. Cordova({
  122. sync: true
  123. }),
  124. __metadata("design:type", Function),
  125. __metadata("design:paramtypes", []),
  126. __metadata("design:returntype", void 0)
  127. ], StatusBar.prototype, "styleDefault", null);
  128. __decorate([
  129. Cordova({
  130. sync: true
  131. }),
  132. __metadata("design:type", Function),
  133. __metadata("design:paramtypes", []),
  134. __metadata("design:returntype", void 0)
  135. ], StatusBar.prototype, "styleLightContent", null);
  136. __decorate([
  137. Cordova({
  138. sync: true
  139. }),
  140. __metadata("design:type", Function),
  141. __metadata("design:paramtypes", []),
  142. __metadata("design:returntype", void 0)
  143. ], StatusBar.prototype, "styleBlackTranslucent", null);
  144. __decorate([
  145. Cordova({
  146. sync: true
  147. }),
  148. __metadata("design:type", Function),
  149. __metadata("design:paramtypes", []),
  150. __metadata("design:returntype", void 0)
  151. ], StatusBar.prototype, "styleBlackOpaque", null);
  152. __decorate([
  153. Cordova({
  154. sync: true
  155. }),
  156. __metadata("design:type", Function),
  157. __metadata("design:paramtypes", [String]),
  158. __metadata("design:returntype", void 0)
  159. ], StatusBar.prototype, "backgroundColorByName", null);
  160. __decorate([
  161. Cordova({
  162. sync: true
  163. }),
  164. __metadata("design:type", Function),
  165. __metadata("design:paramtypes", [String]),
  166. __metadata("design:returntype", void 0)
  167. ], StatusBar.prototype, "backgroundColorByHexString", null);
  168. __decorate([
  169. Cordova({
  170. sync: true
  171. }),
  172. __metadata("design:type", Function),
  173. __metadata("design:paramtypes", []),
  174. __metadata("design:returntype", void 0)
  175. ], StatusBar.prototype, "hide", null);
  176. __decorate([
  177. Cordova({
  178. sync: true
  179. }),
  180. __metadata("design:type", Function),
  181. __metadata("design:paramtypes", []),
  182. __metadata("design:returntype", void 0)
  183. ], StatusBar.prototype, "show", null);
  184. __decorate([
  185. CordovaProperty,
  186. __metadata("design:type", Boolean)
  187. ], StatusBar.prototype, "isVisible", void 0);
  188. StatusBar = __decorate([
  189. Plugin({
  190. pluginName: 'StatusBar',
  191. plugin: 'cordova-plugin-statusbar',
  192. pluginRef: 'StatusBar',
  193. repo: 'https://github.com/apache/cordova-plugin-statusbar',
  194. platforms: ['Android', 'iOS', 'Windows']
  195. })
  196. ], StatusBar);
  197. return StatusBar;
  198. }(IonicNativePlugin));
  199. export { StatusBar };
  200. //# sourceMappingURL=index.js.map