DashboardServiceabilityAPI.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class DashboardServiceabilityAPI
  10. * @hideconstructor
  11. * @classdesc Internal API class that is used to manage the serviceability view.
  12. */
  13. define([], function () {
  14. var DashboardServiceabilityAPI = function () {
  15. function DashboardServiceabilityAPI() {
  16. _classCallCheck(this, DashboardServiceabilityAPI);
  17. }
  18. /**
  19. * @function DashboardServiceabilityAPI#openPanel
  20. * @description Open the s12y view
  21. * @param {object} contentInfo All information needed to display
  22. * @return {Promise<boolean>} promise resolved with a boolean that indicates that the state of pane (open or not)
  23. */
  24. DashboardServiceabilityAPI.prototype.openPanel = function openPanel() {};
  25. /**
  26. * @function DashboardServiceabilityAPI#closePanel
  27. * @description hide the s12y view
  28. * @return {Promise<boolean>} promise resolved whe the panel is completely hidden
  29. */
  30. DashboardServiceabilityAPI.prototype.closePanel = function closePanel() {};
  31. /**
  32. * @function DashboardServiceabilityAPI#getPanelState
  33. * @description return a promise that will be resolved with panel state
  34. * @return {Promise<Object>} panelState - {isOpen:true|false}
  35. *
  36. */
  37. DashboardServiceabilityAPI.prototype.getPanelState = function getPanelState() {};
  38. /**
  39. * @function DashboardServiceabilityAPI#showInfo
  40. * @description show info on all contents
  41. */
  42. DashboardServiceabilityAPI.prototype.showInfo = function showInfo() {};
  43. /**
  44. * @function DashboardServiceabilityAPI#hideInfo
  45. * @description hide info on all contents
  46. */
  47. DashboardServiceabilityAPI.prototype.hideInfo = function hideInfo() {};
  48. /**
  49. * @function DashboardServiceabilityAPI#isInfoVisible
  50. * @description return true if info is visiable on all contents, false otherwise
  51. * @returns {Boolean}
  52. */
  53. DashboardServiceabilityAPI.prototype.isInfoVisible = function isInfoVisible() {};
  54. return DashboardServiceabilityAPI;
  55. }();
  56. return DashboardServiceabilityAPI;
  57. });
  58. //# sourceMappingURL=DashboardServiceabilityAPI.js.map