1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Dashboard (C) Copyright IBM Corp. 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @class DashboardContent
- * @classdesc This Content child class provides content for the dashboard
- */
- define(['./Content'], function (Content) {
- var UNSUPPORTED_ERROR = 'Not supported.';
- var DashboardContent = function (_Content) {
- _inherits(DashboardContent, _Content);
- function DashboardContent() {
- _classCallCheck(this, DashboardContent);
- return _possibleConstructorReturn(this, _Content.apply(this, arguments));
- }
- DashboardContent.prototype.initialize = function initialize() {
- return Promise.resolve(this.getAPI());
- };
- DashboardContent.prototype.getType = function getType() {
- return 'dashboard';
- };
- DashboardContent.prototype.getContentInstance = function getContentInstance() {
- return undefined;
- };
- DashboardContent.prototype._getModel = function _getModel() {
- return this.boardModel;
- };
- DashboardContent.prototype._getModelItems = function _getModelItems() {
- // TODO: Once tied into the content hierarchy, this should return '[this.boardModel.layout]'
- return [];
- };
- DashboardContent.prototype.createFeatureLoader = function createFeatureLoader() {};
- DashboardContent.prototype.onAddItem = function onAddItem() /*payload*/{};
- DashboardContent.prototype.onRemoveItem = function onRemoveItem() /*payload*/{};
- DashboardContent.prototype.onChangeParent = function onChangeParent() /*payload*/{};
- DashboardContent.prototype.preRemoveItem = function preRemoveItem() /*payload*/{};
- // The following content api functions do not have an implementation yet, add as required
- DashboardContent.prototype.removeChildContent = function removeChildContent() /*id, transactionToken*/{
- throw new Error(UNSUPPORTED_ERROR);
- };
- DashboardContent.prototype.removeContentReference = function removeContentReference() /*content*/{
- throw new Error(UNSUPPORTED_ERROR);
- };
- DashboardContent.prototype.addContentReference = function addContentReference() /*content*/{
- throw new Error(UNSUPPORTED_ERROR);
- };
- DashboardContent.prototype.moveToContainer = function moveToContainer() /*newContainerInst*/{
- throw new Error(UNSUPPORTED_ERROR);
- };
- DashboardContent.prototype.moveContent = function moveContent() /*containerId, contentIdList, transactionToken, insertBeforeMap*/{
- throw new Error(UNSUPPORTED_ERROR);
- };
- DashboardContent.prototype.removeContent = function removeContent() /*id, transactionToken*/{
- throw new Error(UNSUPPORTED_ERROR);
- };
- return DashboardContent;
- }(Content);
- return DashboardContent;
- });
- //# sourceMappingURL=DashboardContent.js.map
|