1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- '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. 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['../../lib/@waca/dashboard-common/dist/core/APIFactory', '../DashboardCoreAPI'], function (APIFactory, DashboardCoreAPI) {
- /**
- * @implements DashboardCoreAPI
- * @hideconstructor
- */
- var DashboardCore = function () {
- function DashboardCore(_ref) {
- var dashboardAPI = _ref.dashboardAPI,
- internalDashboardAPI = _ref.internalDashboardAPI;
- _classCallCheck(this, DashboardCore);
- this._dashboardAPI = dashboardAPI;
- this._internalDashboardAPI = internalDashboardAPI;
- this._api = APIFactory.createAPI(this, [DashboardCoreAPI]);
- }
- DashboardCore.prototype.getAPI = function getAPI() {
- return this._api;
- };
- DashboardCore.prototype.getFeature = function getFeature(name) {
- return this._dashboardAPI.getFeature(name);
- };
- DashboardCore.prototype.destroy = function destroy() {
- var legacyViewControllers = this.getFeature('LegacyViewControllers');
- if (legacyViewControllers) {
- legacyViewControllers.destroy();
- }
- this._internalDashboardAPI.destroy();
- };
- return DashboardCore;
- }();
- return DashboardCore;
- });
- //# sourceMappingURL=DashboardCore.js.map
|