123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- "use strict";
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /**
- * Licensed Materials - Property of IBM
- * IBM Business Analytics (C) Copyright IBM Corp. 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @class InAppSlideoutAPI
- * @hideconstructor
- * @classdesc Internal API class that is used to manage the InAppSlideout view.
- */
- define([], function () {
- var InAppSlideoutAPI = function () {
- function InAppSlideoutAPI() {
- _classCallCheck(this, InAppSlideoutAPI);
- }
- /**
- * @function InAppSlideoutStateAPI#registerContribution
- * @description register a slideout contribution
- * @param {string} id - id of the contribution
- * @param {Object} contentContribution - content contribution
- * @return {Promise} Promise resolved when the contributor is registered
- */
- InAppSlideoutAPI.prototype.registerContribution = function registerContribution() {};
- /**
- * @function InAppSlideoutStateAPI#removeContribution
- * @description remove a slideout contribution
- * @param {string} id - id of contribution to remove
- */
- InAppSlideoutAPI.prototype.removeContribution = function removeContribution() {};
- /**
- * @function InAppSlideoutStateAPI#getContributions
- * @description get the list of contributions
- * @return {Object[]} list of contributions
- */
- InAppSlideoutAPI.prototype.getContributions = function getContributions() {};
- /**
- * @function InAppSlideoutStateAPI#getContribution
- * @description get a single contribution by id
- * @param {string} id - id of the contribution
- * @return {Object} contribution object
- */
- InAppSlideoutAPI.prototype.getContribution = function getContribution() {};
- /**
- * @function InAppSlideoutStateAPI#getCurrent
- * @description get current contribution
- * @return {Object} object containing `item` (contribution instance) and `data` (additional data to pass the contribution upon render)
- */
- InAppSlideoutAPI.prototype.getCurrent = function getCurrent() {};
- /**
- * @function InAppSlideoutStateAPI#getUiState
- * @description get the current ui state
- * @return {Object}
- */
- InAppSlideoutAPI.prototype.getUiState = function getUiState() {};
- /**
- * @function InAppSlideoutStateAPI#onStateChange
- * @description register a on state change callback, to be called when the state is changed
- * @param {Function} fn - function to be called when the state changes
- * @return {Function} function returned to destroy remove the listener
- */
- InAppSlideoutAPI.prototype.onStateChange = function onStateChange() {};
- /**
- * @function InAppSlideoutStateAPI#isOpen
- * @description Check whether the in app slideout is open or not
- * @return {Boolean} TRUE if the slideout is open and FALSE if the slideout is not
- */
- InAppSlideoutAPI.prototype.isOpen = function isOpen() {};
- /**
- * @function InAppSlideoutStateAPI#open
- * @description Open the slideout
- */
- InAppSlideoutAPI.prototype.open = function open() {};
- /**
- * @function InAppSlideoutStateAPI#close
- * @description Close the slideout
- */
- InAppSlideoutAPI.prototype.close = function close() {};
- return InAppSlideoutAPI;
- }();
- return InAppSlideoutAPI;
- });
- //# sourceMappingURL=InAppSlideoutStateAPI.js.map
|