'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: BI Cloud (C) Copyright IBM Corp. 2019 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['underscore', 'gemini/lib/@waca/dashboard-common/dist/core/APIFactory', 'gemini/lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI'], function (_, APIFactory, PropertiesProviderAPI) { var BLACKLISTED_PROPERTIES = ['fitPage']; var GuidedJourneyLayoutPropertiesProvider = function () { function GuidedJourneyLayoutPropertiesProvider(options) { _classCallCheck(this, GuidedJourneyLayoutPropertiesProvider); this.dashboardApi = options.dashboardAPI; this.content = options.content; this.stringResources = this.dashboardApi.getFeature('.StringResources'); this._api = APIFactory.createAPI(this, [PropertiesProviderAPI]); // register self as a properties provider contributing storytelling GuidedJourneyLayoutPropertiesProvider properties this.content.getFeature('Properties').registerProvider(this.getAPI()); } GuidedJourneyLayoutPropertiesProvider.prototype.getAPI = function getAPI() { return this._api; }; GuidedJourneyLayoutPropertiesProvider.prototype.getPropertyLayoutList = function getPropertyLayoutList() { return [{ id: 'canvas', type: 'Section', label: this.stringResources.get('sectionName_canvas'), position: 1 }]; }; GuidedJourneyLayoutPropertiesProvider.prototype.getPropertyList = function getPropertyList() { return this._getBlackListedPropertiesList(BLACKLISTED_PROPERTIES); }; GuidedJourneyLayoutPropertiesProvider.prototype._getBlackListedPropertiesList = function _getBlackListedPropertiesList(list) { return list.map(function (propertyName) { return { id: propertyName, getPropertyValue: function getPropertyValue() {}, editor: { hidden: true } }; }); }; return GuidedJourneyLayoutPropertiesProvider; }(); return GuidedJourneyLayoutPropertiesProvider; }); //# sourceMappingURL=GuidedJourneyLayoutPropertiesProvider.js.map