123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- '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 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 DashboardContentProvider
- * @hideconstructor
- * @classdesc API provider class to create Dashboard ContentAPI instances
- */
- define(['../../../../../canvas/DashboardContent', '../../../../../lib/@waca/dashboard-common/dist/core/APIFactory', '../../../../../lib/@waca/dashboard-common/dist/api/ContentProviderAPI'], function (DashboardContent, APIFactory, ContentProviderAPI) {
- var DashboardContentProvider = function () {
- function DashboardContentProvider(_ref) {
- var features = _ref.features;
- _classCallCheck(this, DashboardContentProvider);
- this._api = APIFactory.createAPI(this, [ContentProviderAPI]);
- features['ContentFactory'].registerProvider(this._api);
- }
- DashboardContentProvider.prototype.getAPI = function getAPI() {
- return this._api;
- };
- DashboardContentProvider.prototype.getTypeList = function getTypeList() {
- return ['dashboard'];
- };
- DashboardContentProvider.prototype.addModel = function addModel() {
- throw new Error('Not supported.');
- };
- DashboardContentProvider.prototype.createContent = function createContent(options) {
- return new DashboardContent(options);
- };
- return DashboardContentProvider;
- }();
- return DashboardContentProvider;
- });
- //# sourceMappingURL=DashboardContentProvider.js.map
|