CrosstabActions.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. define(['./crosstab/SwapRowColumnAction', './crosstab/HideShowSummariesAction'], function (SwapRowColumnAction, HideShowSummariesAction) {
  9. var CrosstabActions = function () {
  10. function CrosstabActions(_ref) {
  11. var features = _ref.features;
  12. _classCallCheck(this, CrosstabActions);
  13. this._dashboard = features.API;
  14. this._dashboardState = features.DashboardState;
  15. this._contentActions = features.ContentActions;
  16. this._icons = features.Icons;
  17. }
  18. CrosstabActions.prototype.initialize = function initialize() {
  19. var swapAction = new SwapRowColumnAction(this._dashboard, this._dashboardState, this._icons);
  20. this._contentActions.registerProvider('crosstabSwap', swapAction.getAPI());
  21. var hideShowSummariesAction = new HideShowSummariesAction(this._dashboard, this._dashboardState, this._icons);
  22. this._contentActions.registerProvider('crosstabHideShowSummaries', hideShowSummariesAction.getAPI());
  23. };
  24. return CrosstabActions;
  25. }();
  26. return CrosstabActions;
  27. });
  28. //# sourceMappingURL=CrosstabActions.js.map