123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- "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. 2018, 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @private
- * @typedef {Object} DefaultFromSlot
- * @property {String} id - Slot ID to use for defaults
- */
- /**
- * @interface SlotDefinitionAPI
- * @classdesc API class that is used to control slot definitions.
- * @example slot.getDefinition()
- */
- define([], function () {
- var SlotDefinitionAPI = function () {
- function SlotDefinitionAPI() {
- _classCallCheck(this, SlotDefinitionAPI);
- }
- /**
- * @function SlotDefinitionAPI#getProperty
- * @description Gets a property value from the slot definition.
- * @private
- * @param {String} id
- * @returns {Object} Property value
- */
- SlotDefinitionAPI.prototype.getProperty = function getProperty() {};
- /**
- * @function SlotDefinitionAPI#getDatasetIdList
- * @description Gets the data set ID list.
- * @private
- *
- * @return {Array} Data set ID string array representation
- */
- SlotDefinitionAPI.prototype.getDatasetIdList = function getDatasetIdList() {};
- /**
- * @function SlotDefinitionAPI#getId
- * @description Gets the slot ID.
- * @public
- *
- * @return {String} Slot ID
- */
- SlotDefinitionAPI.prototype.getId = function getId() {};
- /**
- * @function SlotDefinitionAPI#getCaption
- * @description Gets the slot caption.
- * @public
- *
- * @return {String} Slot caption
- */
- SlotDefinitionAPI.prototype.getCaption = function getCaption() {};
- /**
- * @function SlotDefinitionAPI#getIcon
- * @description Gets the slot icon name.
- * @private
- *
- * @return {String} Slot CSS icon name
- */
- SlotDefinitionAPI.prototype.getIcon = function getIcon() {};
- /**
- * @function SlotDefinitionAPI#getType
- * @description Gets the slot type.
- * @public
- *
- * @return {String} Slot type
- */
- SlotDefinitionAPI.prototype.getType = function getType() {};
- /**
- * @function SlotDefinitionAPI#getSubType
- * @description Gets the slot sub type, such as location, latitude, longitude, etc.
- * @private
- *
- * @return {String} Slot sub type
- */
- SlotDefinitionAPI.prototype.getSubType = function getSubType() {};
- /**
- * @function SlotDefinitionAPI#getGroupId
- * @description Gets the slot group ID.
- * @private
- *
- * @return {String} Slot group ID
- */
- SlotDefinitionAPI.prototype.getGroupId = function getGroupId() {};
- /**
- * @function SlotDefinitionAPI#getRole
- * @description Gets the slot role.
- * @private
- *
- * @return {String} Slot role
- */
- SlotDefinitionAPI.prototype.getRole = function getRole() {};
- /**
- * @function SlotDefinitionAPI#isHiden
- * @description Checks whether the slot is hidden or not.
- * @private
- *
- * @return {boolean} Returns true if slot is hidden, otherwise false.
- */
- SlotDefinitionAPI.prototype.isHidden = function isHidden() {};
- /**
- * @function SlotDefinitionAPI#isOptional
- * @description Checks whether the slot is optional or not.
- * @private
- *
- * @return {boolean} Returns true if slot is optional, otherwise false.
- */
- SlotDefinitionAPI.prototype.isOptional = function isOptional() {};
- /**
- * @function SlotDefinitionAPI#getSort
- * @description Gets the slot sort.
- * @private
- *
- * @return {String} Slot sort
- */
- SlotDefinitionAPI.prototype.getSort = function getSort() {};
- /**
- * @function SlotDefinitionAPI#getSortOrder
- * @description Gets the slot sort order.
- * @private
- *
- * @return {Number} Slot sort order represented by number
- */
- SlotDefinitionAPI.prototype.getSortOrder = function getSortOrder() {};
- /**
- * @function SlotDefinitionAPI#getAggregatedSortInfo
- * @description Gets aggregated and sort info used when sort on aggregated fact values.
- * @private
- *
- * @return {Object} clientSideAggregatedAndSortInfo object in slot definition
- * @example
- * {
- * clientSideAggregatedAndSortInfo:{
- * mappedSlotCondition:[
- * 'series'
- * ],
- * groupOnColumnId :'categories'
- * }
- * }
- */
- SlotDefinitionAPI.prototype.getAggregatedSortInfo = function getAggregatedSortInfo() {};
- /**
- * @function SlotDefinitionAPI#isSortable
- * @description Checks whether the slot is sortable or not.
- * @private
- *
- * @return {boolean} Returns true if slot is sortable, otherwise false.
- */
- SlotDefinitionAPI.prototype.isSortable = function isSortable() {};
- /**
- * @function SlotDefinitionAPI#isStackItems
- * @description Checks whether the slot can be have stacked items.
- * @private
- *
- * @return {boolean} Returns true if slot can have stacked items, otherwise false.
- */
- SlotDefinitionAPI.prototype.isStackItems = function isStackItems() {};
- /**
- * @function SlotDefinitionAPI#getMaxItems
- * @description Gets the maximum number of items allowed on a slot.
- * @private
- *
- * @return {Number} Maximum number of items allowed on slot
- */
- SlotDefinitionAPI.prototype.getMaxItems = function getMaxItems() {};
- /**
- * @function SlotDefinitionAPI#isMultiMeasureSupported
- * @description Checks whether the slot can have multiple measures.
- * @private
- *
- * @return {boolean} Returns true if the slot supports multiple measures, otherwise false.
- */
- SlotDefinitionAPI.prototype.isMultiMeasureSupported = function isMultiMeasureSupported() {};
- /**
- * @function SlotDefinitionAPI#isShapable
- * @description Check whether the slot can support graphical shapes.
- * @private
- *
- * @return {boolean} Returns true if the slot supports shapes, otherwise false.
- */
- SlotDefinitionAPI.prototype.isShapable = function isShapable() {};
- /**
- * @function SlotDefinitionAPI#getCoachMark
- * @description Gets the coach mark object for the slot.
- * @private
- *
- * @return {Object} Coach mark object
- * @example
- * {
- * titleResource: 'coachMarkTitleSpiralTarget',
- * contentResource: 'coachMarkContentSpiralTarget',
- * mappedOnly: true, // show only when the slot is mapped
- * showPopover: true // show popover with the coach mark
- * }
- */
- SlotDefinitionAPI.prototype.getCoachMark = function getCoachMark() {};
- /**
- * @function SlotDefinitionAPI#getFormat
- * @description Gets the slot format.
- * @private
- *
- * @return {Object} Slot formatting
- */
- SlotDefinitionAPI.prototype.getFormat = function getFormat() {};
- /**
- * @function SlotDefinitionAPI#getTags
- * @description Gets the slot tags.
- * Tags identify special uses for slots in a visualization and include:
- * 'badge' - this slot can be marked with a badge (and badge information must be requested for its items)
- * 'ca.dashboard.repeatHere' - This slot is the default where multiMeasure series are assigned (eg: color for a barchart).
- * @private
- *
- * @return {String[]} Slot tags
- */
- SlotDefinitionAPI.prototype.getTags = function getTags() {};
- /**
- * @function SlotDefinitionAPI#getDefaultFromSlot
- * @description Gets the slot information that should be used to default this slot.
- * @private
- * @return {DefaultFromSlot}
- */
- SlotDefinitionAPI.prototype.getDefaultFromSlot = function getDefaultFromSlot() {};
- /**
- * @function SlotDefinitionAPI#getShowRequiredMarker
- * @description Should the required marker be shown in the UI
- * @private
- * @returns {Boolean}
- */
- SlotDefinitionAPI.prototype.getShowRequiredMarker = function getShowRequiredMarker() {};
- return SlotDefinitionAPI;
- }();
- return SlotDefinitionAPI;
- });
- //# sourceMappingURL=SlotDefinitionAPI.js.map
|