2018-03-14 16:57:22 -07:00
|
|
|
import Component from '@ember/component';
|
2019-08-31 20:51:14 -07:00
|
|
|
// @ts-ignore: Ignore import of compiled template
|
|
|
|
import template from '../templates/components/more-info';
|
|
|
|
import { tagName, classNames, layout } from '@ember-decorators/component';
|
2018-03-14 16:57:22 -07:00
|
|
|
|
2020-08-26 15:44:50 -07:00
|
|
|
// Block class for the component
|
|
|
|
const baseClass = 'more-info';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Linkable tooltip typically used to guide the user to a help resource if a link is provided, or a tooltip otherwise
|
|
|
|
* @export
|
|
|
|
* @class MoreInfo
|
|
|
|
* @extends {Component}
|
|
|
|
*/
|
2019-08-31 20:51:14 -07:00
|
|
|
@tagName('span')
|
|
|
|
@layout(template)
|
2020-08-26 15:44:50 -07:00
|
|
|
@classNames(baseClass)
|
2018-03-14 16:57:22 -07:00
|
|
|
export default class MoreInfo extends Component {
|
2020-08-26 15:44:50 -07:00
|
|
|
/**
|
|
|
|
* Component baseClass used as block for BEM
|
|
|
|
*/
|
|
|
|
baseClass = baseClass;
|
|
|
|
|
2018-03-14 16:57:22 -07:00
|
|
|
/**
|
|
|
|
* Proxies to anchor element target attribute
|
|
|
|
*/
|
2020-08-26 15:44:50 -07:00
|
|
|
target = '_blank';
|
2018-03-14 16:57:22 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Proxies to anchor element href attribute
|
|
|
|
*/
|
2020-08-26 15:44:50 -07:00
|
|
|
link = '#';
|
2018-03-14 16:57:22 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders the tool tip component, if present
|
|
|
|
*/
|
2019-08-31 20:51:14 -07:00
|
|
|
tooltip?: string;
|
2018-03-14 16:57:22 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Disables DOM event propagation
|
|
|
|
*/
|
2020-08-26 15:44:50 -07:00
|
|
|
click = (): false => false;
|
2018-03-14 16:57:22 -07:00
|
|
|
}
|