import { html } from '@ni/fast-element';
import { MappingConfig } from './mapping-config';
const createIconTemplate = (icon) => {
    return html `
        <${icon}
            title="${x => (x.textHidden ? x.text : '')}"
            role="img"
            aria-label="${x => x.text}"
            aria-hidden="${x => (x.textHidden ? 'false' : 'true')}"
            severity="${x => x.severity}"
        >
        </${icon}>
    `;
};
/**
 * Mapping configuration corresponding to a icon mapping
 */
export class MappingIconConfig extends MappingConfig {
    constructor(resolvedIcon, severity, text, textHidden) {
        super(text);
        this.severity = severity;
        this.textHidden = textHidden;
        this.iconTemplate = createIconTemplate(resolvedIcon);
    }
}
//# sourceMappingURL=mapping-icon-config.js.map